pawker/app/actors/splat.rb
# Assuming 60fps we can choose to not render the splat every other frame
# as a way of making the remaining bugs easier to see.
Assuming 60fps we can choose to not render the splat every other frame
as a way of making the remaining bugs easier to see.
Assuming 60fps we can choose to not render the splat every other frame as a way of making the remaining bugs easier to see .
def render(args)
      return unless exists?
      add_splat =
        if @remaining_ticks > 120
          true
        elsif @remaining_ticks > 60
          @remaining_ticks % 3 == 0
        else
          @remaining_ticks % 6 == 0
        end
      @remaining_ticks -= 1
      if add_splat
        args.nokia.sprites << @position
      end
    end
def render ( args ) return unless exists? add_splat = if @remaining_ticks > 120 true elsif @remaining_ticks > 60 @remaining_ticks % 3 == 0 else @remaining_ticks % 6 == 0 end @remaining_ticks -= 1 if add_splat args . nokia . sprites << @position end end
Assuming 60fps we can choose to not render the splat every other frame
as a way of making the remaining bugs easier to see.
Assuming 60fps we can choose to not render the splat every other frame as a way of making the remaining bugs easier to see .
args