Giter Site home page Giter Site logo

Switch to PhaserIO about opensc2k HOT 9 CLOSED

nicholas-ochoa avatar nicholas-ochoa commented on April 29, 2024 4
Switch to PhaserIO

from opensc2k.

Comments (9)

nicholas-ochoa avatar nicholas-ochoa commented on April 29, 2024 2

Switched from Pixi to Phaser once I realized how much Pixi is lacking (and what Phaser takes care of for you). Seeing some huge performance gains with frame rates at a solid 60fps with the entire map on screen. Still needs a lot of work specifically around z-order issues and getting animations working again, but it's progressing. Hoping to put a version up in the next day or so, eventually this will become the main branch.

from opensc2k.

nicholas-ochoa avatar nicholas-ochoa commented on April 29, 2024 2

It's coming along very well - I've finally got it back up and running to the point it was before switching to Phaser - just need to work out a few remaining bugs and hoping to post a commit tomorrow evening with the changes.

Solid 60fps will full animations, also have the game asset extraction / import / tile map generation completed - if a bit ugly. That'll be included as well.

Next steps after this will be removing the native SQLite dependency and restructuring the project to ES6 standards.

Side note: One nice thing about moving to Phaser, I'm already seeing some benefits of the framework in things such as Camera controls and instances - I've tested multiple cameras (similar to how the Tycoon series does it) and it works flawlessly with zero impact to the frame rate. Full zooming and controls in all cameras as well.

from opensc2k.

nicholas-ochoa avatar nicholas-ochoa commented on April 29, 2024

Agreed - I've already started looking in to PixiJS - after I've got the game importing assets this is my next large milestone. The canvas performance isn't terrible now, but there is a ton of room for improvement.

from opensc2k.

cursorial avatar cursorial commented on April 29, 2024

#8

I raised the same suggestion here. Phaser is also built on top of Pixi - depends how far we want to go with it.

from opensc2k.

cursorial avatar cursorial commented on April 29, 2024

from opensc2k.

cursorial avatar cursorial commented on April 29, 2024

You're probably good for now, but Phaser 3 has just been released.

It is bleeding edge at the moment so you've probably got a bit of time but it's there.

from opensc2k.

nicholas-ochoa avatar nicholas-ochoa commented on April 29, 2024

I’ve been working with the 3.x codebase, it’s given me some headaches (most examples are 2.x) and the docs are lacking, but it’s been worth it

from opensc2k.

 avatar commented on April 29, 2024

Any eta when the rewrite will be up? Was wanting to contribute, but have to wait till that's done.

from opensc2k.

nicholas-ochoa avatar nicholas-ochoa commented on April 29, 2024

@ntomsic now 😊

from opensc2k.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.