TheoAllen

Contoh penerapan Basic Module

Dec 9th, 2013
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.30 KB | None | 0 0
  1. def updates
  2.   Graphics.update
  3.   Input.update
  4.   @window.update
  5.   if Input.trigger?(:C)
  6.     Sound.play_ok
  7.     @window.goto(100,100,30)
  8.   elsif Input.trigger?(:B)
  9.     Sound.play_cancel
  10.     @window.goto(400,0,30)
  11.   end
  12. end
  13.  
  14. DataManager.init
  15. @window = Window_Base.new(0,0,100,48)
  16. updates while true
Advertisement
Add Comment
Please, Sign In to add comment