Search found 12 matches

by nameless tee
Sun Jun 21, 2020 6:22 pm
Forum: Support and Development
Topic: Jitter when creating images in love.load
Replies: 13
Views: 378

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_...
by nameless tee
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: 3
Views: 6203

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...
by nameless tee
Thu Apr 23, 2020 9:11 am
Forum: Support and Development
Topic: [Solved] Help with shaders in 11.3
Replies: 3
Views: 738

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 ...
by nameless tee
Sat Apr 18, 2020 2:17 pm
Forum: Support and Development
Topic: Mesh Instancing Inside a 3d Shader
Replies: 3
Views: 579

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...
by nameless tee
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: 1528

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...
by nameless tee
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: 3392

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...
by nameless tee
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: 3392

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...
by nameless tee
Thu Aug 22, 2019 2:08 pm
Forum: Support and Development
Topic: Using Wiimote's accelerometter as input
Replies: 1
Views: 1077

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...
by nameless tee
Thu Aug 08, 2019 7:31 pm
Forum: Games and Creations
Topic: onepath (Yet another GMTK2019 submission)
Replies: 0
Views: 3235

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...
by nameless tee
Thu Aug 08, 2019 6:38 pm
Forum: Games and Creations
Topic: Brick Slayer [GMTK 2019]
Replies: 6
Views: 3707

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...