Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to PhaserIO #29

Closed
ghost opened this issue Feb 8, 2018 · 9 comments
Closed

Switch to PhaserIO #29

ghost opened this issue Feb 8, 2018 · 9 comments
Assignees

Comments

@ghost
Copy link

ghost commented Feb 8, 2018

Both use webgl and are considerably better than handling canvas directly.

@nicholas-ochoa
Copy link
Owner

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.

@cursorial
Copy link

cursorial commented Feb 8, 2018

#8

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

@nicholas-ochoa
Copy link
Owner

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.

@nicholas-ochoa nicholas-ochoa changed the title Switch to PhaserIO or PixiJS Switch to PhaserIO Feb 12, 2018
@nicholas-ochoa nicholas-ochoa self-assigned this Feb 12, 2018
@cursorial
Copy link

cursorial commented Feb 12, 2018 via email

@nicholas-ochoa
Copy link
Owner

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.

@cursorial
Copy link

cursorial commented Feb 14, 2018

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.

@nicholas-ochoa
Copy link
Owner

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

@ghost
Copy link
Author

ghost commented Feb 25, 2018

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

@nicholas-ochoa
Copy link
Owner

@ntomsic now 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants