Tagged Questions
2
votes
1answer
167 views
Collision detection problems - Javascript/Canvas game
What I want to do:
I simply want the have a 2D array to represent my game map.
I want a player sprite and I want that sprite to be able to move around my map freely using the keyboard and also have ...
3
votes
4answers
627 views
What would be a good way to implement/render a 2D tiled map for a browser game?
I've made this little RPG Ruby game I did while learning and now I'd like to make it into a browser game. I've already set up Sinatra framework to serve it, so what I am looking for, before everything ...
0
votes
3answers
633 views
2D maps, how to structure?
I'm new to this. And I don't really understand 2D tile maps.
The tutorials I've read use arrays, but doesn't this get really difficult to manage when they get big?
And what if I want different ...
5
votes
2answers
1k views
How to efficiently store and display a tile map on the web?
About
These are actually two questions in one. First of all I am looking for a way to efficiently store large amounts of tile data. The other aspect deals with querying the data set and displaying ...
2
votes
1answer
274 views
How do I show the current view from the viewport on my map?
I'm doing HTML5 Canvas development and currently have a large viewport (on the left) and a map (on the right). Like this:
I need to show on the map what is currently being viewed in the left. And ...