Skip to content

Instantly share code, notes, and snippets.

@aldoKelvianto
Last active December 20, 2015 11:39
Show Gist options
  • Save aldoKelvianto/6124628 to your computer and use it in GitHub Desktop.
Save aldoKelvianto/6124628 to your computer and use it in GitHub Desktop.
Hello World in RGSS
class HelloWorld < Window_Base
$kata1 = "The quick brown fox"
$kata2 = "Jumps over the lazy dog"
def initialize
super(0,0, 200, 200)
refresh
end
def refresh
self.contents = Bitmap.new(width - 32, height - 32)
self.contents.font.name = ["Tahoma", "Arial"]
self.contents.font.size = 16
self.contents.font.color = system_color
self.contents.font.bold = true;
self.contents.font.italic = true;
self.contents.draw_text(-0,-80,200,200, $kata1, 1)
self.contents.draw_text(-0, -50, 200, 200, $kata2)
self.draw_actor_hp($game_party.actors[001], 0, 60)
self.draw_actor_state($game_party.actors[000], 0, 90)
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment