dojoVader Posted April 16, 2014 Share Posted April 16, 2014 Hi guys, always wanted to create a game cuz i love gaming to death and lucky blessed to know Programming, I have experience with JavaScript alot and Processing so i have an idea of Canvas and similar Immediate Mode type. And first of all Phaser is just awesome within few weeks i understand the States and love it, but my biggest issue is having an idea of how to create a Level like this. (Image is not mine)I have thought of having one large TileSprite and using the move camera, however I am bothered about the performance implication, rendering item not in the viewport. I won't mind pointers from experienced devs on how to go about it, My concept was to break the Maps into separate stages and change state when the users approach a certain point. Thanks all Link to comment Share on other sites More sharing options...
eugenioclrc Posted April 16, 2014 Share Posted April 16, 2014 Have you tried tiled to design yout maps? Example;http://www.mapeditor.org/img/screenshot-objects.png Intro tutorial;http://gamedevelopment.tutsplus.com/tutorials/introduction-to-tiled-map-editor-a-great-platform-agnostic-tool-for-making-level-maps--gamedev-2838 Link to comment Share on other sites More sharing options...
dojoVader Posted April 16, 2014 Author Share Posted April 16, 2014 Thanks for the reply, the reason i asked is because i was looking at which pattern was more suitable out of the options. 1. TileMap 2. or creating it like the PhotonStorm tutorialhttp://www.photonstorm.com/phaser/tutorial-making-your-first-phaser-game any there any memory implication from TileMap games ? sorry if this sounds n00bish . Link to comment Share on other sites More sharing options...
eugenioclrc Posted April 16, 2014 Share Posted April 16, 2014 I dont think so... The tiled map will export your map to a json file, is basically a array that represents layers, and each layer is an array of numbers that indicate which tile should use. The memory that you use depends in the size of your map, example; If you got a map of 100 tiles width and 100 tiles height, the framework will create in memory 1000 of tile objects. Link to comment Share on other sites More sharing options...
Pharm Posted April 16, 2014 Share Posted April 16, 2014 For complicated levels like the one you posted, I'd suggest going with tiles. Unless you have non tile based editor (but I haven't heard about any good for general purposes). Placing so many objects one by one using only coordinates will be very painful. Link to comment Share on other sites More sharing options...
Recommended Posts