04-30-2015, 06:03 PM
(04-30-2015, 06:00 PM)Loïc Wrote:(04-30-2015, 05:42 PM)wiegraf Wrote: Any chance of putting the code up on Github? I'd be interested to see how you implemented the game on the NGPC.
I'll see what can be done, I could also mail them.
.
It's assembly only.
The playfield is represented by a bit table (each line is a word), collision detection is done for each line of a filling block using a logical and function. If result is not zero, then pieces collides, so the move cannot be done.
The main issue is the way I handle falling speed.
When I started the developpement, I had no idea of the maximum falling speed I could achieve using vsync, the result was too slow to provide challenge, so I used a lazy way... Slower speed are achieved by waiting for 1 or more vsync, as fastest speed is achieved by moving a block 2 pixels downward instead of only one.
I see! That's quite interesting. Well, I'm afraid assembly coding is far beyond me so I wouldn't be able to do much with it anyways. I really only have experience with much higher level languages like Javascript, Python, Haskell, and Scala.