Jump to content

(Level Design) What's the best way to achieve such


dojoVader
 Share

Recommended Posts

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.

 

5_layout_items_big.png

(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

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 tutorial

http://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

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

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