Search found 266 matches
- Thu May 16, 2024 5:56 am
- Forum: Support and Development
- Topic: whats the best way to make general colision detection?
- Replies: 4
- Views: 147
Re: whats the best way to make general colision detection?
@edu you're asking two different things: "how are collisions usually done in games", and "why is this thing in my game not working". The answer to the first is: usually you approximate the shape of complex objects with simpler geometrical primitives (like the boxes, circles/ellip...
- Tue May 14, 2024 5:51 pm
- Forum: Support and Development
- Topic: Chroma Key Shader
- Replies: 2
- Views: 796
Re: Chroma Key Shader
I was rethinking about this. There are simpler ways. If you sample the video pixel in a shader, and that video pixel color is an exact match to the chroma key color, then you should discard that pixel (or make it transparent). That should already give you a 98% ideal result. The remaining 2% is rega...
- Sat May 11, 2024 7:10 am
- Forum: General
- Topic: [Help] Techniques for scaling
- Replies: 24
- Views: 1127
Re: [Help] Techniques for scaling
* To clarify on what this safety padding should be. There's no easier way than importing your PNG texture into Photopea , have a transparent background, then go to Filter > 3D > Texture Dilation and drag the slider until you're satisfied. Then File > Export As > PNG to download the result. No accoun...
- Sat May 11, 2024 6:58 am
- Forum: General
- Topic: [Help] Techniques for scaling
- Replies: 24
- Views: 1127
Re: [Help] Techniques for scaling
Getting back to the issue of tearing, which I imagine it's these weird lines in your 1440_810.mov video: _.png Have you tried a very slow zooming out effect instead of randomly walking around? I think this would let you find an exact zoom level that makes the problem appear, so you can write it down...
- Sat May 11, 2024 6:28 am
- Forum: Support and Development
- Topic: Garbage Collector and FFI
- Replies: 8
- Views: 421
Re: Garbage Collector and FFI
If you add a print('Function [X] START') and print('Function [X] END'), with [X] being the function name, at the start and end of the body of each function in your code, and run your program with lovec.exe or with "love.exe --console" so the console appears, inside what function does it cr...
- Tue May 07, 2024 2:32 pm
- Forum: General
- Topic: [Help] Techniques for scaling
- Replies: 24
- Views: 1127
Re: [Help] Techniques for scaling
I think the inexact 4/3 camera scale at such a low fidelity will mess things up. If your native canvas is really 480 x 270 then you should be able to draw the game screen at that size, without upscaling anything, and having it appear perfectly -- take a screenshot, go to some paint program and paste...
- Sun May 05, 2024 12:00 am
- Forum: Support and Development
- Topic: Question about breakout - ball and paddle collison
- Replies: 3
- Views: 793
Re: Question about breakout - ball and paddle collison
If that results in a fun behavior then that's golden. I'd also try an alternative where the current bat X speed is added to the ball X speed. This would let the player drag the bat when the ball is about to hit, to make the ball speed up or speed down horizontally, like you can kinda do in air hocke...
- Fri May 03, 2024 4:42 am
- Forum: General
- Topic: Is LÖVE good enough for a big metroidvania game?
- Replies: 6
- Views: 860
Re: Is LÖVE good enough for a big metroidvania game?
Löve uses LuaJIT as the script interpreter: https://luajit.org/luajit.html LuaJIT has been extensively used in production (though that seems to be with servers, embedded systems etc rather than games) and is very fast. Edit: there are many commercially successful games developed with LÖVE. There are...
- Thu May 02, 2024 9:48 pm
- Forum: Support and Development
- Topic: [SOLVED] Have some troubles with Animation again
- Replies: 11
- Views: 1044
Re: Have some troubles with Animation again
You're making some elementary mistakes. This is usually the sign of "biting more than you can chew" (trying to do something above your current experience level). Ideally you want to enter Flow, where the challenge is very close to your skills, otherwise, if it's too hard you'll suffer from...
- Wed May 01, 2024 12:46 am
- Forum: Support and Development
- Topic: [SOLVED] Have some troubles with Animation again
- Replies: 11
- Views: 1044
Re: Have some troubles with Animation again
What you have in there is different than what they said though: player.currentAnimation = {walkingDownAnimation, walkingUpAnimation, walkingRightAnimation, walkingLeftAnimation} You're making a table of tables. But 'player.currentAnimation' should be a reference to a single of those animation tables...