TheoAllen

window ox oy

May 27th, 2015
504
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.73 KB | None | 0 0
  1. # Pasang sebagai script baru, trus jalanin
  2. # Gunain panah atas bawah kanan kiri
  3. # Liat hasilnya
  4.  
  5. DataManager.init
  6.  
  7. $window = Window_Base.new(0,0,250,24 * 3)
  8. $window.contents = Bitmap.new(300, 300)
  9. $window.draw_text(0, 0, 300, 24, "LINE BARIS PERTAMA!")
  10. $window.draw_text(0, 24, 300, 24, "LINE BARIS KEDUA!")
  11. $window.draw_text(0, 48, 300, 24, "LINE BARIS KETIGA!")
  12. $window.draw_text(0, 72, 300, 24, "LINE BARIS KEEMPAT!")
  13. $window.draw_text(0, 96, 300, 24, "LINE BARIS KELIMA!")
  14. $window.draw_text(0, 120, 300, 24, "LINE BARIS KEENAM!")
  15.  
  16. loop do
  17.   Graphics.update
  18.   Input.update
  19.   case Input.dir4
  20.   when 2
  21.     $window.oy += 1
  22.   when 4
  23.     $window.ox += 1
  24.   when 6
  25.     $window.ox -= 1
  26.   when 8
  27.     $window.oy -= 1
  28.   end
  29. end
Advertisement
Add Comment
Please, Sign In to add comment