Permalink
Browse files

Screen size constants.

  • Loading branch information...
1 parent 79424ef commit 327f61726eb6481a052d94be965b31b29917a072 @dhotson dhotson committed Jan 15, 2012
Showing with 5 additions and 2 deletions.
  1. +5 −2 asc.rb
View
7 asc.rb
@@ -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

0 comments on commit 327f617

Please sign in to comment.