Search found 12 matches
- Sun Jun 21, 2020 6:22 pm
- Forum: Support and Development
- Topic: Jitter when creating images in love.load
- Replies: 13
- Views: 2465
Re: Jitter when creating images in love.load
The "real" problem with your code is that the movement of the ground and the pipes isn't precisely tied together. The nearest filter just makes it more visible. For updating of pipeX you use: pipeX = pipeX - GROUND_SCROLL_SPEED * dt if (pipeX < -PIPE_WIDTH) then pipeX = WIDTH end But pipeX is -PIPE_...
- Fri Jun 05, 2020 1:57 pm
- Forum: Support and Development
- Topic: i need help making a trail for the ball in my game of pong
- Replies: 4
- Views: 7775
Re: i need help making a trail for the ball in my game of pong
You mean you'd like the ball to leave a trail on the screen? Assuming that the ball is white and the background is black, one simple way of doing that would be to override love.run with a modified version. Instead of calling love.graphics.clear(...) to clear the screen on each frame, you can tempora...
- Thu Apr 23, 2020 9:11 am
- Forum: Support and Development
- Topic: [Solved] Help with shaders in 11.3
- Replies: 3
- Views: 1047
Re: Help with shaders in 11.3
Looks like the name of _tex0_ changed. Adding the following line did the trick: uniform vec2 inputSize; uniform vec2 outputSize; uniform vec2 textureSize; #define _tex0_ MainTex // <- #define SCANLINES I just took a guess at what inputs the shader needs to get something to show up on the screen, so ...
- Sat Apr 18, 2020 2:17 pm
- Forum: Support and Development
- Topic: Mesh Instancing Inside a 3d Shader
- Replies: 3
- Views: 966
Re: Mesh Instancing Inside a 3d Shader
I tried just writing a reply, but describing it in English seems harder to me than actually doing it, so instead I modified the example in the wiki to render in 3D and explained the changes with comments. -- I've changed the size of the triangle to 1/8 so I don't need -- to scale it down in the 3D s...
- Tue Jan 14, 2020 1:26 pm
- Forum: Support and Development
- Topic: Is there a simple way to make retro graphics render strictly within big-pixel-locations no matter what's in love.draw?
- Replies: 5
- Views: 1899
Re: Is there a simple way to make retro graphics render strictly within big-pixel-locations no matter what's in love.dra
You can do that by rendering to a small canvas and then drawing the canvas to the screen at a larger scale. Attached to this reply is an example that hopefully does what you want: https://imgur.com/IrWZ14h.png If you want even rougher edges you can set mssa to zero in the code. While loading you cal...
- Tue Jan 07, 2020 2:58 am
- Forum: Support and Development
- Topic: Execution speed varies wildly (47x) between (but not during) runs
- Replies: 15
- Views: 4524
Re: Execution speed varies wildly (47x) between (but not during) runs
Thanks to all of you for reproducing the problem and having a look at it! ReFreezed : It seems to me that for my use case the multiple arguments/returns solution is not a good match. It doesn't solve the problem of efficiently allocating large data structures containing many vecs/matrices/whatever a...
- Sun Jan 05, 2020 11:29 pm
- Forum: Support and Development
- Topic: Execution speed varies wildly (47x) between (but not during) runs
- Replies: 15
- Views: 4524
Execution speed varies wildly (47x) between (but not during) runs
Hello, I'll start with some background info: driven by curiosity I've been working on a small FPS without external libraries. I've got a first prototype working (video on imgur) with all the linear algebra stuff written in plain lua. Although it's running fine on a desktop PC (~25% of one core) with...
- Thu Aug 22, 2019 2:08 pm
- Forum: Support and Development
- Topic: Using Wiimote's accelerometter as input
- Replies: 1
- Views: 1302
Re: Using Wiimote's accelerometter as input
If you want to use the WiiMote you're going to need an external library for that. You could use wiiuse ( https://github.com/wiiuse/wiiuse ) like this forum member ( https://love2d.org/forums/viewtopic.php?f=3&t=77503&p=164826&hilit=wiimote#p164826 ) did. What they were doing is building a dynamicall...
- Thu Aug 08, 2019 7:31 pm
- Forum: Games and Creations
- Topic: onepath (Yet another GMTK2019 submission)
- Replies: 0
- Views: 3775
onepath (Yet another GMTK2019 submission)
Here is yet another GMTK2019 thing made by a fairly inexperienced team of two. It's a puzzle game about reaching multiple points using just one path. The player controls the white circle using the arrow keys. When the player presses space, a clone is created at the current position. The clone will r...
- Thu Aug 08, 2019 6:38 pm
- Forum: Games and Creations
- Topic: Brick Slayer [GMTK 2019]
- Replies: 6
- Views: 4436
Re: Brick Slayer [GMTK 2019]
I really like this one. The sounds, screen shake and slime make it feel very satisfying. After a few attempts I started focussing more on aiming and doing the dodging and walking more in the corner of my eye. Minor nitpicks: When circled the enemies going straight after the player sometimes bunch up...