Last active
December 20, 2015 11:39
-
-
Save aldoKelvianto/6124628 to your computer and use it in GitHub Desktop.
Hello World in RGSS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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