• Content Count

  • Joined

  • Last visited

  1. 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?
  2. 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?
  3. Well you explain pretty much what i was trying to ask, and you gave me some good new ideas, I grasp the concepts. But my problem is more on how to do that. As a beginner in programming / javascript without someone to explain i find it hard to learn how to do things like this. No books or tutorials iv'e find teach things like this. (closest i found was Rich typescript tutorial which was great and i learned alot from that. but i could not understand how to evolve it further.) That's why i asked if someone could make a tutorial explaining it. But maybe someone have an empty boilerplate project set up like this or similar way, that could teach the concepts with some comments? Thanks
  4. Btw, is this some of the topics the upcoming phaser book regarding statemanager will handle?
  5. Hi Let me start by saying I'm a real beginner at programming, and im using Phaser to learn more javascript. Iv'e gone thru alot of awesome tutorials from Lessmilk and Codevinsky among some. All with some different approaches. I have also managed to create some really simple games with only 1 level in phaser. Now i feel im missing some crucial parts that i dont understand. Like how to create new levels without copy pasting all code back into each state. It feels like i'm creating one game for each level. (I guess im doing something really wrong hehe.) What i think alot of people like me starting out in programming with js + phaser want to know is: How do you separate game logic from levelspecific code? Also show how to separate code into different files and reuse them. (if possible) So my request is: Can someone make a tutorial for say a really simple platformer (or any other game) with 2 players (with different spritesheets for anims etc )and explain how to break out the code for movement etc so both players can use it.(in a separate file if possible). how to add stuff like coins to collect (also in a separate file if possible.) And also how to keep track of each players score. And lastly add 2 levels and how to load new tilemap. for each level. Preferably as simple as possible... I know its a big request and not an easy task. But its stuff like this i cant seem to find any tutorials on. Anyone want to help? Thanks.
  6. @Biggerplay I already mentioned the phaser template, but like i said, id like it combined with toastedware.com's tutorial How to use the states in the phaser template together with some entities in separate .js files. Something that would take 1 minute to do for someone how know. But impossible for someone who dont grasp prototypes yet. (me) I find it easier to understand and learn if i see an example. @jcs Sorry then i misunderstood. I blame english not being my native language
  7. I have a request. Im a total javascript noob and i'm using phaser to try learn more. I think alot of people like me would like a boilerplate for a simple platformer. That includes states for preload, menu, endgame, pause, maingame etc, and using prototypes and separate files for some entities like players, hud, levels etc. So its easy to organize files and extend it. A combination of this guys exellent tutorial and the phaser example for states. It shouldnt really cointain a game. just alot of comments. and placeholders like the existing template. and no license except phasers. That would be a great start for many phaser games. PS. ( i know that someone made the plugin nagion which seem to do this. But i don't really want to rely on a plugin and the need to put license in all my sourcefiles where i use it puts me off. Sorry Nagion developer.)