Commit f436d8bf8b7aad57a781779db526b2ef2cde821d

Authored by Marius Hanne
1 parent 4cd40077ac
Exists in master

debug bullets

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -151,8 +151,8 @@
151 151 font("FreeSans").render(text, false, :white)
152 152 .blit(@screen, [10, @screen.size[1] - 20])
153 153  
154   - ([@player] + @enemies).each do |ship|
155   - ship.debug.blit(@screen, ship.pos.add(ship.shape.r))
  154 + ([@player] + @enemies + @objects).each do |ship|
  155 + ship.debug.blit(@screen, ship.pos.add(ship.shape.r)) rescue nil
156 156 end
157 157 end
158 158