Jump to content
This forum will be closing down. Please move to the respective dedicated project forums.

Rotating tower platform game


IKKYU
 Share

Recommended Posts

Hi

 

Im trying to build something like the the old school nebulus game with a rotating 2D tower.

But i can't figure out how to get the world (made with tiles) to "world wrap" the camera with the player always centered in the middle of the screen. 

 

Article describing the effect I'm trying to make in phaser:

http://codeincomplete.com/posts/2013/10/30/rotating_tower_rendering/

 

full source:

https://github.com/jakesgordon/javascript-tower-platformer/blob/master/js/tower.js

 

I would like to start by building exactly what he did in his game but with phaser instead.

Any tips?

Link to comment
Share on other sites

So if the player run to the right i want my player to always be centered in the screen.

The world should appear to continue endlessly but actually "wrap" onto it self. 

Redrawing the world from the beginning again.

 

I don't know if that made it clearer :)

 

I i also tried just moving the camera in the world, but it didnt seem to support game.world.wrap(); 

But i guess im going at it all wrong?

 

Any suggestions?

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...