This file contains hidden or 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
#coding:utf-8 | |
require 'chingu' | |
class GameWindow < Chingu::Window | |
# 1行の高さ(=フォントサイズ) | |
LINE_HEIGHT =20 | |
# ウィンドウの高さ(行数) | |
LINES_IN_WINDOW = 24 | |
# 標準フォントサイズ | |
FONT_SIZE = 20 |
This file contains hidden or 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
require 'chingu' | |
class GameWindow < Chingu::Window | |
def initialize | |
super 640, 480, false | |
self.caption = "Chingu Tutorial Game" | |
end | |
def update | |
end |
This file contains hidden or 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
#coding:utf-8 | |
require 'gosu' | |
class GameWindow < Gosu::Window | |
def initialize | |
super(640, 480, false) | |
end | |
# マウスカーソルを表示する |
This file contains hidden or 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
#coding:utf-8 | |
require 'gosu' | |
class GameWindow < Gosu::Window | |
# 1行の高さ(=フォントサイズ) | |
LINE_HEIGHT =20 | |
# ウィンドウの高さ(行数) | |
LINES_IN_WINDOW = 24 | |
def initialize |
This file contains hidden or 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
require 'gosu' | |
class GameWindow < Gosu::Window | |
# 1行の高さ(=フォントサイズ) | |
LINE_HEIGHT =20 | |
# ウィンドウの高さ(行数) | |
LINES_IN_WINDOW = 24 | |
def initialize | |
super(640, LINE_HEIGHT * LINES_IN_WINDOW, false) |
This file contains hidden or 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
require 'gosu' | |
class GameWindow < Gosu::Window | |
def initialize | |
super 640, 480, false | |
self.caption = "Gosu Tutorial Game" | |
@font = Gosu::Font.new(self, Gosu::default_font_name, 20) | |
end |