From 39a0d239e986919c95b49a722c1b515b301c567d Mon Sep 17 00:00:00 2001 From: Aki Date: Sat, 14 May 2016 01:20:03 +0200 Subject: Preparations for clouds, going to sleep. --- assets/cloud_big.png | Bin 0 -> 1645 bytes assets/cloud_small.png | Bin 0 -> 902 bytes assets/readme.md | 2 ++ main.lua | 2 ++ 4 files changed, 4 insertions(+) create mode 100644 assets/cloud_big.png create mode 100644 assets/cloud_small.png diff --git a/assets/cloud_big.png b/assets/cloud_big.png new file mode 100644 index 0000000..0cf54a7 Binary files /dev/null and b/assets/cloud_big.png differ diff --git a/assets/cloud_small.png b/assets/cloud_small.png new file mode 100644 index 0000000..66f5c40 Binary files /dev/null and b/assets/cloud_small.png 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) -- cgit v1.1