123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294 |
- --[[
- Copyright (c) 2006-2017 LOVE Development Team
- This software is provided 'as-is', without any express or implied
- warranty. In no event will the authors be held liable for any damages
- arising from the use of this software.
- Permission is granted to anyone to use this software for any purpose,
- including commercial applications, and to alter it and redistribute it
- freely, subject to the following restrictions:
- 1. The origin of this software must not be misrepresented; you must not
- claim that you wrote the original software. If you use this software
- in a product, an acknowledgment in the product documentation would be
- appreciated but is not required.
- 2. Altered source versions must be plainly marked as such, and must not be
- misrepresented as being the original software.
- 3. This notice may not be removed or altered from any source distribution.
- --]]
- -- Make sure love exists.
- local love = require("love")
- function love.nogame()
- local pig_png =
- "iVBORw0KGgoAAAANSUhEUgAAAQAAAAEACAYAAABccqhmAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJ\
- bWFnZVJlYWR5ccllPAAAAyBpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdp\
- bj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6\
- eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEz\
- NDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJo\
- dHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZX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9p0ATaw99IzfSEgvI9DlLvk5UUUuPu9/71PvePxKPpsA9FzYwAM\
- gAEwAAbAABgAA2AADIABMAAG0EcbmtzkeV7p9Z+nVQhViB8PUNK7j+nBxkF4ZgzVHMp9ydeZfAeU\
- d3hPVnZ/3X6HZ7IhUgQATgZQraEEJT+XDi7AwVQzcB+qjQK0zuTzJ0Xg5ACw1aWjfs1tCTg30wh+\
- XwH0nOVQIlUNpACw5fcNglclKx3MCYJXIYxOSqiLb2CRm75m8AKD+kJwVba2CF6gP+s2RoGlZvCq\
- g/syCHDtFaqxg849hGeNyQDAw2WPHFu20gZVpKbT3OEI90ypgKkDB+9RCScIG8dDfCMFDE0l5shJ\
- 2epLgPBdMc5bGaoqowAQOPQzFnTmU6XAVViTydctA2g0Bb9lAGnfAewoAaQdDz6H/N9SAth1HMCK\
- eiq87XLry5UnKQBcaXUVwurcatNlJzi79ta3AoAqSDoGYKHT+tYbIjjf/nQ8NTa1DIIfFS+SbYgo\
- 9ojSu7RNTG6yBoCpEF0YwqJqV5g8BQpLT90tMjLpt5kCJyVkqIRDi8HnptInWQsghFHdJoRDm5lK\
- n2wxhMOQVMIbcfDynMH6Hc76gDKDfuFF/O0eO1/qQvBRkx+21gdUqCHBlHDZL2Q49Dox8v0ApV9I\
- HAUf6c72LpYCJSkRYkoEbQXfyumwAYhYVB95O235TgIogJjWKCKVOW8q+04DKMwi5UnOg/g/dMlx\
- imvVd5AAuCXjP0kxAAbAABgAA2AADIABMAAGwAB6ab8CDACjlPepVvE3rwAAAABJRU5ErkJggg=="
- local hearts = {}
- local rings = {}
-
- local cx = 400
- local cy = 300
-
- local pig
- local heart_image
-
- local function add_heart_ring(radius, number, speed)
- local step = math.pi*2/number
- for i = 1,number do
- local heart = {
- radius = radius,
- position = step*i,
- speed = speed,
- opacity = radius/450
- }
- table.insert(hearts, heart)
- end
- table.insert(rings, radius)
- end
-
- local function update_hearts(dt)
- for i,v in ipairs(hearts) do
- v.position = v.position + v.speed*dt*0.6
- end
- end
-
- local function draw_hearts()
- for i,v in ipairs(hearts) do
- local x = math.cos(v.position) * v.radius + cx
- local y = math.sin(v.position) * v.radius + cy
- love.graphics.setColor(1, 1, 1, v.opacity)
- love.graphics.draw(heart_image, x, y, v.position+0.4, 1, 1, 32, 32)
- end
- end
-
- local function draw_pig(p)
- love.graphics.setColor(1, 1, 1, 1)
- love.graphics.draw(p.img, p.x, p.y, 0, 1, 1, 128, 128)
- end
- local function loadimage(file, name, flags)
- local decoded = love.data.decode("string", "base64", file)
- return love.graphics.newImage(love.filesystem.newFileData(decoded, name:gsub("_", ".")), flags)
- end
-
- local originalWidth, originalHeight = 800, 600
- local scaleX, scaleY = 1, 1
-
- function love.load()
- local width, height = love.graphics.getDimensions()
- scaleX, scaleY = width / originalWidth, height / originalHeight
-
- math.randomseed(os.time())
- pig = {
- x = cx,
- y = cy,
- img = loadimage(pig_png, "pig.png")
- }
- heart_image = loadimage(heart_png, "heart.png")
-
- add_heart_ring(100, 10, 2.4)
- add_heart_ring(150, 20, 2.2)
- add_heart_ring(200, 25, 2.0)
- add_heart_ring(250, 35, 1.8)
- add_heart_ring(300, 40, 1.6)
- add_heart_ring(350, 50, 1.4)
- add_heart_ring(400, 60, 1.2)
- add_heart_ring(450, 70, 1)
- end
-
- function love.update(dt)
- update_hearts(dt)
- end
-
- function love.draw()
- love.graphics.scale(scaleX, scaleY)
-
- love.graphics.setBackgroundColor(254/255, 224/255, 238/255)
- draw_hearts()
- draw_pig(pig)
- end
-
- function love.resize(width, height)
- scaleX, scaleY = width / originalWidth, height / originalHeight
- end
-
- function love.keyreleased(key)
- if key == "escape" then
- love.event.quit()
- end
- end
-
- function love.conf(t)
- t.title = "L\195\150VE 0.8.0 (Rubber Piggy)"
- t.gammacorrect = true
- t.modules.audio = false
- t.modules.sound = false
- t.modules.physics = false
- t.modules.joystick = false
- t.modules.font = false
- t.window.resizable = true
- t.window.highdpi = true
- if love._os == "iOS" then
- t.window.borderless = true
- end
- end
- end
- return love.nogame
|