Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / pas2js / 2019-07

Small tetris demo added

2 messages · 2 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Michael Van Canneyt

Hi,

Because we all want to have fun programming from time to time, I added a simple tetris game to the pas2js demos.

You can find it in svn under demos/tetris.

I put it also online (the advantage of web programming: live demos!)

https://www.freepascal.org/~michael/tetris/

It is a simple algorithm which seems to work ok, I only know of 1 glitch.

If someone wants to make a version that just uses html & css, no canvas, this should be easily accomplished: patches welcome :)

Enjoy!

Michael.

Reply by email

Marcos Douglas B. Santos
to Michael Van Canneyt
PM Michael Van Canneyt wrote 17 lines
Hi, Because we all want to have fun programming from time to time, I added a simple tetris game to the pas2js demos. You can find it in svn under demos/tetris. I put it also online (the advantage of web programming: live demos!) https://www.freepascal.org/~michael/tetris/ It is a simple algorithm which seems to work ok, I only know of 1 glitch. If someone wants to make a version that just uses html & css, no canvas, this should be easily accomplished: patches welcome :)

Very impressive!

regards,
Marcos Douglas

Reply by email