summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAki <nthirtyone@gmail.com>2016-05-14 01:20:03 +0200
committerAki <nthirtyone@gmail.com>2016-05-14 01:20:03 +0200
commit39a0d239e986919c95b49a722c1b515b301c567d (patch)
treedd4a783f8678f1d203615c3a89e70b5f5a1db5d0
parent431bcc0828fcbb296b5e97901d6583a074967a8f (diff)
downloadroflnauts-39a0d239e986919c95b49a722c1b515b301c567d.zip
roflnauts-39a0d239e986919c95b49a722c1b515b301c567d.tar.gz
roflnauts-39a0d239e986919c95b49a722c1b515b301c567d.tar.bz2
Preparations for clouds, going to sleep.
-rw-r--r--assets/cloud_big.pngbin0 -> 1645 bytes
-rw-r--r--assets/cloud_small.pngbin0 -> 902 bytes
-rw-r--r--assets/readme.md2
-rw-r--r--main.lua2
4 files changed, 4 insertions, 0 deletions
diff --git a/assets/cloud_big.png b/assets/cloud_big.png
new file mode 100644
index 0000000..0cf54a7
--- /dev/null
+++ b/assets/cloud_big.png
Binary files differ
diff --git a/assets/cloud_small.png b/assets/cloud_small.png
new file mode 100644
index 0000000..66f5c40
--- /dev/null
+++ b/assets/cloud_small.png
Binary files differ
diff --git a/assets/readme.md b/assets/readme.md
index 96473f9..f583d37 100644
--- a/assets/readme.md
+++ b/assets/readme.md
@@ -12,6 +12,8 @@ All original Roflnauts sprites are made by [Vlambeer](http://www.vlambeer.com/):
- *platform_big.png*
- *platform_small.png*
- *platform_top.png*
+- *cloud_big.png*
+- *cloud_small.png*
### Sequel
No community sprites used yet. \ No newline at end of file
diff --git a/main.lua b/main.lua
index bee3ef3..01c46bb 100644
--- a/main.lua
+++ b/main.lua
@@ -82,8 +82,10 @@ function love.draw ()
love.graphics.setColor(179, 82, 80, 255)
love.graphics.rectangle("fill", 0, love.graphics.getHeight()*0.8, love.graphics.getWidth(), love.graphics.getHeight()*0.2)
+ -- Get camera (like this, for now ;_; pass camera object to draw function?)
local offset_x, offset_y = camera:getOffsets()
local scale = camera.scale
+
-- Draw ground
for k,platform in pairs(Platforms) do
platform:draw(offset_x, offset_y, scale, debug)