samples/07_advanced_rendering/03_render_target_viewports/app/main.rb
# Shows output of different kinds of sprites on the screen
Shows output of different kinds of sprites on the screen
Shows output of different kinds of sprites on the screen
def sprites_tech_demo
    outputs.labels <<  [   5, 170, "Sprites (x, y, w, h, path, angle, a)"]
    outputs.sprites << [  10, 40, 128, 101, 'dragonruby.png']
    outputs.sprites << [ 150, 40, 128, 101, 'dragonruby.png', state.tick_count % 360] 
    outputs.sprites << [ 300, 40, 128, 101, 'dragonruby.png', 0, state.tick_count % 255] 
  end
def sprites_tech_demo outputs . labels << [ 5 , 170 , "Sprites (x, y, w, h, path, angle, a)" ] outputs . sprites << [ 10 , 40 , 128 , 101 , 'dragonruby.png' ] outputs . sprites << [ 150 , 40 , 128 , 101 , 'dragonruby.png' , state . tick_count % 360 ] outputs . sprites << [ 300 , 40 , 128 , 101 , 'dragonruby.png' , 0 , state . tick_count % 255 ] end
Shows output of different kinds of sprites on the screen
Shows output of different kinds of sprites on the screen
# angle changes # transparency changes