-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
devPsyk
committed
Sep 12, 2014
1 parent
8027a06
commit d3f5287
Showing
7 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
Submodule HardonCollider
added at
79c3d0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Submodule hump
added at
526ca6
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |