This commit is contained in:
Gwenhael Le Moine 2023-04-06 13:20:51 +02:00
parent 24173635d3
commit 5ed8f74aed
No known key found for this signature in database
GPG key ID: FDFE3669426707A7

View file

@ -24,10 +24,9 @@ class GosuHunt < Gosu::Window
cell: Gosu::Image.from_blob( @sprite_size * @scale, @sprite_size * @scale, bits_to_rgbas( '1' * @sprite_size * @sprite_size ) ),
visited_cell: Gosu::Image.from_blob( @sprite_size * @scale, @sprite_size * @scale, bits_to_rgbas( '0' * @sprite_size * @sprite_size ) ) }
# Creation of the window
super ( ( @sprite_size + 1 ) * @field.width * @scale ) + @scale,
( ( @sprite_size + 1 ) * @field.height * @scale ) + @scale + 20
self.caption = 'Gosu Hunt'
end
def bits_to_rgbas( bits )