diff options
Diffstat (limited to 'samples/09_performance/06_static_sprites_as_classes_with_custom_drawing')
| -rw-r--r-- | samples/09_performance/06_static_sprites_as_classes_with_custom_drawing/app/main.rb | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/samples/09_performance/06_static_sprites_as_classes_with_custom_drawing/app/main.rb b/samples/09_performance/06_static_sprites_as_classes_with_custom_drawing/app/main.rb index 4d8719d..3291f5e 100644 --- a/samples/09_performance/06_static_sprites_as_classes_with_custom_drawing/app/main.rb +++ b/samples/09_performance/06_static_sprites_as_classes_with_custom_drawing/app/main.rb @@ -39,11 +39,22 @@ class Star # x, y, w, h, # path, # angle, - # alpha, red_saturation, green_saturation, blue_saturation, + # alpha, red_saturation, green_saturation, blue_saturation # tile_x, tile_y, tile_w, tile_h, # flip_horizontally, flip_vertically, # angle_anchor_x, angle_anchor_y, # source_x, source_y, source_w, source_h + + # The argument order for ffi_draw.draw_sprite_4 is: + # x, y, w, h, + # path, + # angle, + # alpha, red_saturation, green_saturation, blue_saturation + # tile_x, tile_y, tile_w, tile_h, + # flip_horizontally, flip_vertically, + # angle_anchor_x, angle_anchor_y, + # source_x, source_y, source_w, source_h, + # blendmode_enum end end @@ -51,6 +62,11 @@ end def tick args # sets console command when sample app initially opens if Kernel.global_tick_count == 0 + puts "" + puts "" + puts "=========================================================" + puts "* INFO: Static Sprites, Classes, Draw Override" + puts "* INFO: Please specify the number of sprites to render." args.gtk.console.set_command "reset_with count: 100" end |
