Method: Gosu::BlockAllocator::Impl#mark_block_used
- Defined in:
- lib/gosu_android/graphics/blockAllocator.rb
permalink #mark_block_used(block, a_width, a_height) ⇒ Object
[View source]
14 15 16 17 18 19 20 21 |
# File 'lib/gosu_android/graphics/blockAllocator.rb', line 14 def mark_block_used(block, a_width, a_height) self[:first_x] += a_width if (self[:first_x] + a_width) >= self[:width] self[:first_x] = 0 self[:first_y] += a_height end self[:blocks].push block end |