summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-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)