Quantcast
Channel: 2D Latest Topics
Viewing all articles
Browse latest Browse all 623

Canvas Tilemaps - Javascript Help

$
0
0

Ello guv'nors!

GOOGLE HAS FAILED ME!
I got some dumb probably really easy javascript things I'm stuck with and I'm in an endless loop of eh?

So I've got the this array 
0 = wall = cant move into
1 = path = can move into

* white 1 = player start point

var gamemap = [
    0, 0, 0, 0, 0,
    0, 1, 1, 1, 0,
    0, 1, 0, 0, 0,
    0, 1, 1, 1, 0,
    0, 0, 0, 0, 0,


im also abit lost on how to make the character 
use a nested array two values on each?
merge two arrays together? concat? idk...

use of north east south west buttons that move the player one array over?


on the click of a button CHECK
show text saying if can or cant go in direction because wall etc


Anyone fancy pointing me towards the right direction?

If this makes any sense.


Viewing all articles
Browse latest Browse all 623

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>