I am new to Love and lua
but not completely new to programming as I feel I have a very basic grounding in java however none at all in game programming except for scratch.
What I am trying to do is simply create a plat former arena type game, but for now I'm just trying to get the mechanics down.
right now that entails moving a green block around a space and having it stop when it hits a wall.
Sounds Basic....
Probably is....
and way they way I decided to go about doing this was to create a 'list' or array' or 'table' I'm not actually sure which it is and in this represent my map of tiles that I created in a tile map editer.
Code: Select all
map = {5, 1, 1, 1, 1, 1, 1, 6,
4, 0, 0, 0, 0, 0, 0, 2,
8, 3, 3, 4, 0, 0, 0, 2,
5, 1, 1, 5, 0, 0, 0, 2,
4, 0, 0, 0, 0, 0, 0, 2,
8, 3, 3, 3, 3, 3, 3, 7}
by the way the way I tried to represent the block on my map with numbers was to say
-'1' means directly above
-'2' means on the left
-'3' means underneath
-'4' means on the left
-'5' means above and on left (corner block)
-'6' means above and on right (corner block)
-'7' means bellow and on right (corner block)
-'8 means bellow and on left (corner block)
Thanks