Lazarus
Programming => Networking and Web Programming => Pas2JS => Topic started by: retronick on October 05, 2021, 01:22:03 am
-
I released a little game for DOS a few days ago. I spent half of my Sunday porting to pas2js
Most of the code worked without changes. I did have to modify a few things relating to graphics and slowing down the drawing to have a more animated effect. I created a simple drawing queue with a combination of Timer and delay counters. This avoids having to blit 30 frames a second for a simple puzzle game.
Play it online
https://retronick.neocities.org/fiveline/game.html
code on github
https://github.com/RetroNick2020/fiveline-port-to-pas2js
original DOS version if you want to compare code
https://github.com/RetroNick2020/fiveline
-
nice