Tag Info

New answers tagged

1

You can choose the selection tool at the top, select all the tiles you want to move then press ctrl + x to cut and press ctrl + v to paste it where you want.


1

Have a look to http://www.scala-js.org/ - it is Scala to JavaScript compiler. Supports source maps and since version 0.6 is not longer experimental. http://www.scala-lang.org/news/2015/02/05/scala-js-no-longer-experimental.html


2

If you’re familiar with CSS spriting,it can be done the same way with SVGs. Unlike the icon fonts technique, you’re not bound to one color. You can use gradients, clipping masks, and transparencies while still keeping your mark-up and CSS clean. Chrome supports SVG with a few minor bugs and so does the latest Mozilla browser these are the ones that most ...


4

Instead of testing the collisions ON the player, you should testing them AHEAD, to check whether there's a wall where the player WILL be walking. To do that, you'll only need to change 2 things: 1- Your player.collision function should accept two arguments: an x and y offset. You should add them to your collision checking algoythm too. 2- When calling ...


1

In the third iteration of the loop, pmx-i is equal to -1, map.FALL[-1] is undefined and undefined[pmy-1] is an error since you can't access an index of undefined.



Top 50 recent answers are included