Permalink
Browse files

Start work on Map

  • Loading branch information...
1 parent c1cf8a5 commit c64203013662baa5683694404d57ef76cff60a7a @TomK32 committed Jan 2, 2013
Showing with 33 additions and 5 deletions.
  1. +13 −5 README.md
  2. +4 −0 game.lua
  3. +14 −0 game_states/map_state.lua
  4. +2 −0 main.lua
View
@@ -32,16 +32,18 @@ score if some camera is waiting to get a shot of the surfers.
Trade your score for some hot speedos, flashy bikinis, boards, magic
mushrooms, or a tasty cheeseburger while you are at the beach.
-## Is is really roguelike?
+## Is this really roguelike?
The checklist according to mikipedia:
-1. Prodecually generated, not could be more chaotic than waves
+1. Prodecually generated, nothing could be more chaotic than waves
2. Turnbased combat (it sure is!)
3. Magic items (Magic Mushrooms from Old Willi's Hippy supply)
4. Permadeath (just wait till you fall and hit the rocks)
5. Single player
+So it is, strangely, a roguelike.
+
## Screenshots
+-------+
@@ -54,12 +56,18 @@ The checklist according to mikipedia:
Surfer carrying a board
-
## Credits
-* LÖVE2d
+* LÖVE2d and the following libraries:
+ * Quickie
* ananasblau's own games Kollum and Cross Country Running
+## Participate
+
+OneGameAMonth is about working together, that's why we share all this
+sourcecode onto github, that's why you could contribute a few pieces to
+this game. Art, music, code, mods, everything is possible.
+
## Authors
-* Thomas R. Koll (aka @ananasblau and @TomK32)
+* Thomas R. Koll (aka @ananasblau and @TomK32) http://ananasblau.com/games
View
@@ -25,8 +25,12 @@ function game:setMode(mode)
else
self:createFonts(0)
end
+ if self.view.updateDisplay then
+ self.view.updateDisplay()
+ end
end
function game:start()
+ game.current_state = MapState()
end
View
@@ -0,0 +1,14 @@
+
+require 'map'
+require 'views/map_view'
+
+MapState = class("MapState", GameState)
+function MapState:initialize()
+ self.map = Map(200, 200)
+ self.view = MapView(self, map)
+end
+
+function MapState:draw()
+ self.view:draw()
+end
+
View
@@ -10,10 +10,12 @@ require 'game'
require 'views/view'
require 'game_states/game_state'
require 'game_states/start_menu'
+require 'game_states/map_state'
function love.load()
game:createFonts(0)
game.current_state = StartMenu()
+ game:start()
end
function love.draw()

0 comments on commit c642030

Please sign in to comment.