Skip to content

Commit

Permalink
Start work on Map
Browse files Browse the repository at this point in the history
  • Loading branch information
TomK32 committed Jan 2, 2013
1 parent c1cf8a5 commit c642030
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 5 deletions.
18 changes: 13 additions & 5 deletions README.md
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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 Trade your score for some hot speedos, flashy bikinis, boards, magic
mushrooms, or a tasty cheeseburger while you are at the beach. mushrooms, or a tasty cheeseburger while you are at the beach.


## Is is really roguelike? ## Is this really roguelike?


The checklist according to mikipedia: 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!) 2. Turnbased combat (it sure is!)
3. Magic items (Magic Mushrooms from Old Willi's Hippy supply) 3. Magic items (Magic Mushrooms from Old Willi's Hippy supply)
4. Permadeath (just wait till you fall and hit the rocks) 4. Permadeath (just wait till you fall and hit the rocks)
5. Single player 5. Single player


So it is, strangely, a roguelike.

## Screenshots ## Screenshots


+-------+ +-------+
Expand All @@ -54,12 +56,18 @@ The checklist according to mikipedia:


Surfer carrying a board Surfer carrying a board



## Credits ## Credits


* LÖVE2d * LÖVE2d and the following libraries:
* Quickie
* ananasblau's own games Kollum and Cross Country Running * 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 ## Authors
* Thomas R. Koll (aka @ananasblau and @TomK32) * Thomas R. Koll (aka @ananasblau and @TomK32) http://ananasblau.com/games


4 changes: 4 additions & 0 deletions game.lua
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ function game:setMode(mode)
else else
self:createFonts(0) self:createFonts(0)
end end
if self.view.updateDisplay then
self.view.updateDisplay()
end
end end




function game:start() function game:start()
game.current_state = MapState()
end end
14 changes: 14 additions & 0 deletions game_states/map_state.lua
Original file line number Original file line Diff line number Diff line change
@@ -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

2 changes: 2 additions & 0 deletions main.lua
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@ require 'game'
require 'views/view' require 'views/view'
require 'game_states/game_state' require 'game_states/game_state'
require 'game_states/start_menu' require 'game_states/start_menu'
require 'game_states/map_state'


function love.load() function love.load()
game:createFonts(0) game:createFonts(0)
game.current_state = StartMenu() game.current_state = StartMenu()
game:start()
end end


function love.draw() function love.draw()
Expand Down

0 comments on commit c642030

Please sign in to comment.