caption
This commit is contained in:
parent
24173635d3
commit
5ed8f74aed
1 changed files with 1 additions and 2 deletions
|
@ -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 ) ),
|
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 ) ) }
|
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,
|
super ( ( @sprite_size + 1 ) * @field.width * @scale ) + @scale,
|
||||||
( ( @sprite_size + 1 ) * @field.height * @scale ) + @scale + 20
|
( ( @sprite_size + 1 ) * @field.height * @scale ) + @scale + 20
|
||||||
|
|
||||||
self.caption = 'Gosu Hunt'
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def bits_to_rgbas( bits )
|
def bits_to_rgbas( bits )
|
||||||
|
|
Loading…
Reference in a new issue