mirror of
https://github.com/colby-swandale/waterfoul
synced 2024-12-26 21:58:54 +01:00
add map
This commit is contained in:
parent
b9e1d18a4e
commit
e311bd6ed1
1 changed files with 17 additions and 0 deletions
17
lib/waterfoul/map.rb
Normal file
17
lib/waterfoul/map.rb
Normal file
|
@ -0,0 +1,17 @@
|
|||
module Waterfoul
|
||||
class Map
|
||||
MAP_0_START_ADDR = 0x0
|
||||
MAP_1_START_ADDR = 0x0
|
||||
|
||||
def initialize(map_no = 0)
|
||||
map_number map_no
|
||||
end
|
||||
|
||||
def map_number(map_no)
|
||||
raise 'unknown map number' unless [0, 1].include? map_no
|
||||
end
|
||||
|
||||
def tiles
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Reference in a new issue