1,426 reputation
513
bio website http://-
location Switzerland
age 29
visits member for 2 years, 7 months
seen Dec 4 at 8:30

i like turtles... and music, games, coding... and dungeons and dragons XD


Jul
10
revised Java - Tile engine changing number in array not changing texture
Added some explanation for a comment
Jul
10
comment Managing text-maps in a 2D array on to be painted on HTML5 Canvas
If you mean that the position of the camera is 531 then yes. I added some comments to the code above.
Jul
10
revised Managing text-maps in a 2D array on to be painted on HTML5 Canvas
Updated answer
Jul
10
answered Big level objects collision system for 2d game
Jul
10
comment Shaky Camera Effect 2D
Just noticed that I forgot to set the actual screen position in the applyScreenShake method... I corrected the code example...
Jul
10
revised Shaky Camera Effect 2D
corrected code example
Jul
10
awarded  Teacher
Jul
10
revised Managing text-maps in a 2D array on to be painted on HTML5 Canvas
fixed typo
Jul
10
revised Managing text-maps in a 2D array on to be painted on HTML5 Canvas
fixed typo
Jul
10
comment Java - Tile engine changing number in array not changing texture
Ah, just saw something. You load the level inverted, but in the render loop you switched y and x positions in the array. You should be careful with that things. As soon as width and height of the level differ, you could run into problems. Try to apply the change in the loading i suggested above and change the rendering code from tile[y][x] to tile[x][y]...
Jul
10
awarded  Editor
Jul
10
revised Shaky Camera Effect 2D
i hate typos
Jul
10
answered Shaky Camera Effect 2D
Jul
10
answered How to create my first game?
Jul
10
answered Java - Tile engine changing number in array not changing texture
Jul
10
answered Managing text-maps in a 2D array on to be painted on HTML5 Canvas