hello!!
i'm sending my first game written in love just to say hi
game is pretty simple based on something i saw on the internet.
try to kick ( click ) the ball as many times as you can before it hits the ground. it gets difficult to get each next kick
i hope i'll find some time and energy to write more and more playable games,
http://hotfile.com/dl/90379730/66755a5/ ... .love.html
while writing i found one possible bug: when i put code like "g.setFont(g.getFont(40))" in draw callback the game crashes after couple of kicks ( win7 )
(g = love.graphics)
hope you like it
love2kick
- bartbes
- Sex machine
- Posts: 4946
- Joined: Fri Aug 29, 2008 10:35 am
- Location: The Netherlands
- Contact:
Re: love2kick
That's no bug, that's you creating an entire font every single frame!wiero wrote:while writing i found one possible bug: when i put code like "g.setFont(g.getFont(40))" in draw callback the game crashes after couple of kicks
EDIT:
Ugh, external download site, wrongly packaged, and dofile instead of require breaking it.. here's a version that works.
- Attachments
-
- love2kick.love
- Repackaged, I do not claim any ownership at all.
- (3.51 MiB) Downloaded 308 times
Re: love2kick
sorry, my faultbartbes wrote:That's no bug, that's you creating an entire font every single frame!wiero wrote:while writing i found one possible bug: when i put code like "g.setFont(g.getFont(40))" in draw callback the game crashes after couple of kicks
hm, i zipped it with instructions on wiki, i'll try do better next timebartbes wrote: EDIT:
Ugh, external download site, wrongly packaged, and dofile instead of require breaking it.. here's a version that works.
Re: love2kick
Also note that you can upload your games to the forums if they are smaller than 10 MB. Feel free to hotlink it as well.
- kikito
- Inner party member
- Posts: 3153
- Joined: Sat Oct 03, 2009 5:22 pm
- Location: Madrid, Spain
- Contact:
Re: love2kick
Well if it's not a bug, it's a faulty interface. setFont(number) should either be removed or modified so it does internal caching.bartbes wrote:That's no bug, that's you creating an entire font every single frame!
When I write def I mean function.
- Robin
- The Omniscient
- Posts: 6506
- Joined: Fri Feb 20, 2009 4:29 pm
- Location: The Netherlands
- Contact:
Re: love2kick
That's debatable. It works fine if you only set a font once, which is great for quick and simple prototyped games.kikito wrote:Well if it's not a bug, it's a faulty interface. setFont(number) should either be removed or modified so it does internal caching.
For more advanced games you would be juggling with font objects anyway.
Help us help you: attach a .love.
Who is online
Users browsing this forum: No registered users and 1 guest