https://github.com/bartbes/love-misc-li ... L/AnAL.lua
Essentially, we make a quad from the frame sheet, and then render different parts of that quad depending on time passed.
Search found 1035 matches
- Sat Apr 21, 2012 11:10 pm
- Forum: Support and Development
- Topic: help with animation
- Replies: 11
- Views: 7361
- Wed Apr 18, 2012 4:49 pm
- Forum: General
- Topic: Retro Pixel Graphics: Which resolution would YOU use?
- Replies: 7
- Views: 20721
Re: Retro Pixel Graphics: Which resolution would YOU use?
I'm a fan of DOS original flavor, but as the others have said, DOS fake has a number of conveniences going for it. I'd go with one of those two.
- Wed Apr 18, 2012 12:23 am
- Forum: Support and Development
- Topic: Logo
- Replies: 3
- Views: 3494
Re: Logo
Could you take a screenshot of what you think the "love2d frame" is? Because I have no idea what you are referring to.
- Tue Apr 17, 2012 8:30 pm
- Forum: Games and Creations
- Topic: Splash
- Replies: 9
- Views: 7743
Re: Splash
Updated for 0.8.0. I added some little features, changed to line drawing rather than image drawing, and adjusted some variables. Should run faster and cleaner now.
- Tue Apr 17, 2012 7:35 pm
- Forum: General
- Topic: Attach an image to a body???
- Replies: 3
- Views: 5076
Re: Attach an image to a body???
Here's a complete 0.8.0 example: function love.load() world = love.physics.newWorld(0, 0, true) box = {} box.image = love.graphics.newImage("image.jpg") box.body = love.physics.newBody(world, 200, 200, "dynamic") box.shape = love.physics.newRectangleShape(box.image:getWidth(), bo...
- Mon Apr 16, 2012 7:24 pm
- Forum: Support and Development
- Topic: setData not working
- Replies: 3
- Views: 2796
Re: setData not working
Welcome to the wonderful world of incomplete documentation! Boolsheet is busting it out like a champ, but there's still a long way to go.
In the meantime, what you want is Fixture:setUserData.
In the meantime, what you want is Fixture:setUserData.
- Mon Apr 16, 2012 3:45 pm
- Forum: Games and Creations
- Topic: Kurosuke (working title)
- Replies: 96
- Views: 66693
Re: Kurosuke (working title)
I'm doing a complete rewrite for 0.8.0, which will take a while. I'll post an update once we're functional again.
- Mon Apr 16, 2012 3:44 pm
- Forum: Games and Creations
- Topic: Dye
- Replies: 24
- Views: 15073
Re: Dye
Updated for 0.8.0, let me know if anything is wonky.
- Sun Apr 15, 2012 11:21 pm
- Forum: Support and Development
- Topic: How can I make my character jump?
- Replies: 29
- Views: 12457
Re: How can I make my character jump?
Also, you can replace this:
with this, inside of love.load:
Code: Select all
love.graphics.setColor(40,255,40)
love.graphics.rectangle("fill", 0, 0, love.graphics.getWidth(), love.graphics.getHeight())
love.graphics.setColor(255,255,255)
Code: Select all
love.graphics.setBackgroundColor(40,255,40)
- Sun Apr 15, 2012 7:58 pm
- Forum: Support and Development
- Topic: help with "expected userdata"
- Replies: 4
- Views: 3257
Re: help with "expected userdata"
By the way, if you ever notice love.graphics.newImage inside of love.update, you've made a mistake (a very bad one). If I hold down D in your game, my computer has to open a file, read it, process it, and assign it to a variable, EVERY. SINGLE. FRAME. The proper way to do it is to pre-load all your ...