Skip to content

Commit

Permalink
added libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
devPsyk committed Sep 12, 2014
1 parent 8027a06 commit d3f5287
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 0 deletions.
1 change: 1 addition & 0 deletions HardonCollider
Submodule HardonCollider added at 79c3d0
6 changes: 6 additions & 0 deletions conf.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
function love.conf(w)
w.window.width = 1024;
w.window.height = 768;
w.window.title = " SYR - Save Your Home";
w.author = "Psyk/Yep"
end
Binary file added graphics/home.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added graphics/jared.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions hump
Submodule hump added at 526ca6
20 changes: 20 additions & 0 deletions main.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
-- load files
hc = require "hardoncollider"
--

function love.load()
Collider = hc(100, on_collide) -- cellsize, callback

home = love.graphics.newImage("graphics/home.png") -- setting home.png as home
-- setting width and height
wWidth = love.graphics.getWidth()
wHeight = love.graphics.getHeight()
end

function love.draw()
love.graphics.draw(home, wWidth/2 - 100, wHeight/2 + 200) -- draw home
end

function love.update(dt)
Collider:update(dt) -- check for collisions
end
30 changes: 30 additions & 0 deletions player.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
-- require
Class = require "hump/hump.class"
--

-- Local vars

local plImg = love.graphics.newImage("graphics/jared.png")

Player = Class{
init = function( self, x, y, img, health, money, humanity)
self.x = x
self.y = y
self.img = img
self.health = health
self.money = money
self.humanity = humanity
end
}

jared = Player( wWidth/2, wHeight/2, )

function Player:move()

end

function Player:draw()
end

function Player:update(dt)
end

0 comments on commit d3f5287

Please sign in to comment.