Fuuuun!MHD wrote:A little thing I am working on atm...
The epic love demo thread!
- qubodup
- Inner party member
- Posts: 775
- Joined: Sat Jun 21, 2008 9:21 pm
- Location: Berlin, Germany
- Contact:
Re: The epic love demo thread!
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
Re: The epic love demo thread!
This is funMHD wrote:A little thing I am working on atm...
I made wheels~
Re: The epic love demo thread!
Awesome. Did you implement a convex-polygon algorithm?
- qubodup
- Inner party member
- Posts: 775
- Joined: Sat Jun 21, 2008 9:21 pm
- Location: Berlin, Germany
- Contact:
Re: The epic love demo thread!
Hm. It's all fun and fine but then gravity comes and destroys all. ALL.MHD wrote:No, it is still only beta
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
- qubodup
- Inner party member
- Posts: 775
- Joined: Sat Jun 21, 2008 9:21 pm
- Location: Berlin, Germany
- Contact:
Re: The epic love demo thread!
I prettied Shapes.love a bit using color and sounds. Now it's SuperShapes.love
PS: something to read if you have nothing better to do
PS: something to read if you have nothing better to do
- Attachments
-
- SuperShapes.love
- (20.63 KiB) Downloaded 268 times
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
- qubodup
- Inner party member
- Posts: 775
- Joined: Sat Jun 21, 2008 9:21 pm
- Location: Berlin, Germany
- Contact:
Life of Land Shark
Hello, I'm a land shark!
Someone made a land shark life simulator (it's not that exciting really). It's called "Life of Land Shark"
Download LOLS 1.0 here
Or browse the source files here
Someone made a land shark life simulator (it's not that exciting really). It's called "Life of Land Shark"
Download LOLS 1.0 here
Or browse the source files here
lg.newImage("cat.png") -- made possible by lg = love.graphics
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
-- Don't force fullscreen (it frustrates those who want to try your game real quick) -- Develop for 1280x720 (so people can make HD videos)
Re: The epic love demo thread!
om nom nom nom!
LÖVE it!
LÖVE it!
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: Life of Land Shark
There isn't even something to eat?qubodup wrote:(it's not that exciting really)
Re: The epic love demo thread!
This is just some code for making a thing go where the mouse clicked. It's not perfect (if you use anything other than 1 to iterate the movement, it gets all wobbly and jiggly and it goes poorly for us all). It also doesn't go DIRECTLY to where the mouse clicked. It actually goes along the shortest axis first, then goes along the rest. So if you've clicked at 50, 60 and the circle is at 0,0, then it's going to go to the X (50), first, then complete the Y (although it'll have gone part of the way towards the Y, until it's on a 0 parity with the X--if that makes any sense).
Anyway, code:
Didn't bother .love-ing it because, well... I didn't feel like it. There are better ways to do this, but if you can't figure them out, or if the hiccups in this don't matter then here you go. The mousePressed code isn't really necessary, other than to keep the circle from moving towards 0,0 at the beginning when it's opened.
Anyway, code:
Code: Select all
-- Move to Cursor Love
--
-- How to use: Click on the screen and the ball will move towards the
-- mouse's position.
function load()
mousePressed = false
gotoX = 0
gotoY = 0
playerBallX = 400
playerBallY = 300
speed = 5
end
function update(dt)
if mousePressed == true then
if playerBallX ~= gotoX then
if playerBallX < gotoX then
playerBallX = playerBallX + 1
elseif playerBallX > gotoX then
playerBallX = playerBallX - 1
end
end
if playerBallY ~=gotoY then
if playerBallY < gotoY then
playerBallY = playerBallY + 1
elseif playerBallY > gotoY then
playerBallY = playerBallY - 1
end
end
else
mousePressed = false
end
end
function draw()
love.graphics.circle(1, gotoX, gotoY, 5)
love.graphics.circle(1, playerBallX, playerBallY, 20)
end
function mousereleased(x, y, button)
if button == love.mouse_left then
mousePressed = true
gotoX = x
gotoY = y
end
end
We don't borrow, we don't read, we don't rent, we don't lease, we take the minds!
Who is online
Users browsing this forum: Bing [Bot] and 3 guests