Search found 84 matches
- Wed Apr 10, 2013 2:26 pm
- Forum: Support and Development
- Topic: How I do a moving background?
- Replies: 2
- Views: 2246
Re: How I do a moving background?
I think the Gamera library (viewtopic.php?f=5&t=12033) will do what you want most easily.
- Tue Apr 09, 2013 8:29 am
- Forum: Support and Development
- Topic: player controls in love.update vs. love.keypressed/released
- Replies: 18
- Views: 13367
Re: player controls in love.update vs. love.keypressed/relea
Neither method is particularly demanding at all. Use whichever allows you to write the nicest code.
- Mon Apr 08, 2013 11:59 pm
- Forum: Support and Development
- Topic: Camera following sprite.
- Replies: 6
- Views: 5016
Re: Camera following sprite.
Honestly, just use the HUMP library: https://www.love2d.org/wiki/HUMP
It will save you so much time and effort; getting camera transforms right can be a massive pain in the ass. In HUMP you just set the camera x,y and do camera:attach() / camera:detach() when drawing non-ui stuff.
It will save you so much time and effort; getting camera transforms right can be a massive pain in the ass. In HUMP you just set the camera x,y and do camera:attach() / camera:detach() when drawing non-ui stuff.
- Mon Apr 08, 2013 11:55 pm
- Forum: Support and Development
- Topic: Framerate increases when window is not in focus
- Replies: 13
- Views: 7983
Re: Framerate increases when window is not in focus
You should post a .love where this can be observed/checked by someone - it sounds like you aren't using dt correctly, as bartbes suggested. When you vary things by time you should have a factor of dt in there. function love.update(dt) x = x + 7 * dt -- dt is the amount of time in seconds that has pa...
- Mon Apr 08, 2013 4:41 pm
- Forum: General
- Topic: [Question]Text areas in löve
- Replies: 3
- Views: 1827
Re: [Question]Text areas in löve
I'm assuming you're working from not knowing anything here, so check out these two libraries:
https://www.love2d.org/wiki/Quickie - Quick and easy, but limited
https://www.love2d.org/wiki/L%C3%B6ve_Frames - A bit more complicated, but seems to be the most mature GUI stuff for LÖVE
https://www.love2d.org/wiki/Quickie - Quick and easy, but limited
https://www.love2d.org/wiki/L%C3%B6ve_Frames - A bit more complicated, but seems to be the most mature GUI stuff for LÖVE
- Sun Apr 07, 2013 5:53 pm
- Forum: Support and Development
- Topic: Pixel effects and alpha values
- Replies: 1
- Views: 709
Re: Pixel effects and alpha values
In your shader you need to make use of the alpha value in the colour input - otherwise drawing the block with varying alpha will have no effect.
You probably want:
You probably want:
Code: Select all
vec4 pixel = Texel(tex, tc) * color;
- Sun Apr 07, 2013 12:32 am
- Forum: Support and Development
- Topic: Miscellaneous Bug
- Replies: 2
- Views: 1892
Re: Miscellaneous Bug
function menu:update(dt) if self:checkHov(height/2 - 95, 1, dt) then self:play_b -- you've forgotten something! elseif self:checkHov(height/2 - 45, 2, dt) then love.event.quit() elseif self:checkHov(height/2 + 5, 3, dt) then self:vol_change(love.mouse.getX(), love.mouse.getY()) end end Maybe you di...
- Sat Apr 06, 2013 12:20 pm
- Forum: Support and Development
- Topic: Copying an inclined area to a horizontal one?
- Replies: 3
- Views: 2145
Re: Copying an inclined area to a horizontal one?
You found a solution whilst I was writing this, but I'll post it anyway for anyone who might be interested: It will be possible will Geometry, which I understand will be in 0.9.0, so if it's not urgent then I'd hold your horses on patching love yourself. You could hack it will a pixel effect, but th...
- Thu Apr 04, 2013 9:47 am
- Forum: Games and Creations
- Topic: Quick puzzles with a "motivational sidebar"
- Replies: 2
- Views: 1849
Re: Quick puzzles with a "motivational sidebar"
Interesting idea, but to win I have to pay attention to the right hand side, and ignore the left; I think this could only work with more integration between the two sides.
Re: Why Love?
I came for the ease of getting something on the screen in no time, I stayed for the third party libraries and ridiculously accessible pixel effects.