Skip to content

Commit

Permalink
Screen size constants.
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Hotson committed Jan 15, 2012
1 parent 79424ef commit 327f617
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions asc.rb
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
# encoding: utf-8

SCREEN_WIDTH = 120
SCREEN_HEIGHT = 40

class Game
def initialize
reset
end
def reset
@run = true
background = Background.new
@world = World.new(120, background)
@screen = Screen.new(120, 40, @world, background)
@world = World.new(SCREEN_WIDTH, background)
@screen = Screen.new(SCREEN_WIDTH, SCREEN_HEIGHT, @world, background)
end
def run
Signal.trap(:INT) do
Expand Down

0 comments on commit 327f617

Please sign in to comment.