AndyObtiva / glimmer-dsl-gtk

Glimmer DSL for GTK - Ruby-GNOME Desktop Development GUI Library
GNU Lesser General Public License v3.0
21 stars 4 forks source link

Tetris variant in glimmer-dsl-gtk? #2

Closed rubyFeedback closed 2 years ago

rubyFeedback commented 2 years ago

Hey there Andy,

I know you have been busy via perfect-shape and you seem to look at fxruby too - not that I would ever admit to github-stalking ... :D

I recently played tetris via glimmer-dsl-libui and it works fine on linux. (I haven't yet tested on windows, as that is on a computer to the other side of the room, with less comfortable seating possibilities. Will test at a later time :P )

Would it be possible to add tetris to glimmer-dsl-gtk, if it is not too much work? I haven't dived into the glimmer-tetris code base but tetris seems to be relevant to glimmer if only as demo purpose (e. g. your other github repository there https://github.com/AndyObtiva/glimmer_tetris). If you "get to that eventually" then just please disregard the issue here. My assumption here is that since libui+tetris on linux works, then perhaps the underlying code base is super simple to adjust to glimmer-dsl-gtk as well, since libui on linux (if I am not mistaken) simply uses gtk too, so that should hopefully not be too much work. Thank you for reading, glimmer on!

AndyObtiva commented 2 years ago

I am done with Perfect Shape for the time being. Version 1.0.0 was released!

I got a basic Tetris working in Glimmer DSL for GTK after I added support for cairo drawing declaratively (as demonstrated by Hello, Drawing Area!):

Linux Mac Windows
tetris tetris tetris
AndyObtiva commented 2 years ago

I finished implementing Tetris with the Score Board, Menu Bar, and Next Tetromino Preview.

i am closing this issue as a result.

Cheers!