Search found 262 matches

by knorke
Thu May 30, 2024 11:12 pm
Forum: General
Topic: Help with calculating trajectory
Replies: 10
Views: 303

Re: Help with calculating trajectory

... To find the reflected vector, you flip the direction of the incoming vector, project it onto the normal, then get the rejection (the difference between the flipped incoming vector and its projection onto the normal) and add that rejection twice to the flipped incoming vector. This will place yo...
by knorke
Thu May 30, 2024 6:45 am
Forum: Games and Creations
Topic: TETRIS CLONE I MADE
Replies: 2
Views: 230

Re: TETRIS CLONE I MADE

Congrats, now it is just a matter of making the rest of the game. :crazy: -A way to start a new game -Menu -Highscore list -Make it use more of the screen -Levels (increase speed over time) Sometimes these things take as much time as creating the actual gameplay. But they make the difference between...
by knorke
Mon May 20, 2024 8:11 pm
Forum: Support and Development
Topic: Struggling with jumping function in platformer
Replies: 2
Views: 583

Re: Struggling with jumping function in platformer

function love.keypressed(key, scancode) if scancode == "w" then local obsts = {wall, wall2} if isGrounded(player, obsts) then print("Eagle has landed") player.yVel = -5 end end end You have this code in love.keypressed(key, scancode) so collision is only checked when the "w...
by knorke
Mon May 20, 2024 12:28 pm
Forum: Support and Development
Topic: i problem with making borders for my game
Replies: 1
Views: 421

Re: i problem with making borders for my game

paddle2.y = border(y)
should be:
paddle2.y = border(paddle2.y)
by knorke
Thu May 16, 2024 11:00 am
Forum: Support and Development
Topic: whats the best way to make general colision detection?
Replies: 6
Views: 774

Re: whats the best way to make general colision detection?

For Space Invaders I would just use a isPointInRectangle() check
The projectiles are points and the player's ship, "shield walls" and enemies are rectangles.
by knorke
Wed May 15, 2024 11:11 am
Forum: General
Topic: OKIZEME - a minimalist fighting game
Replies: 1
Views: 447

Re: OKIZEME - a minimalist fighting game

It is difficult to judge what a random internet stranger can do.
Generally I agree, the "perfect day" will never come. So just go for it. :)
There is no deadline for hobby projects so it does not matter how long it takes.
by knorke
Mon May 13, 2024 9:47 pm
Forum: Support and Development
Topic: [SOLVED] Have some troubles with Animation again
Replies: 11
Views: 1359

Re: [SOLVED] Have some troubles with Animation again

Interesting handheld. I have never heard of it and have only ever used Löve on PC. Maybe ask the creators of those ports what kind of performance is normal? Your game code could be made more efficient with use of Spritebatches: https://love2d.org/wiki/SpriteBatch + https://love2d.org/wiki/Tutorial:E...
by knorke
Thu May 09, 2024 9:40 pm
Forum: Support and Development
Topic: [Solved] Rectangle collision resolution only works on one axis
Replies: 3
Views: 416

Re: Rectangle collision resolution only works on one axis

autumnDev wrote: Thu May 09, 2024 1:51 amI also provided the .love file so you can see the behavior.
It seems you forget to attach the file.
Good luck..such kind of bugs are extremely annoying to find.
by knorke
Thu May 09, 2024 9:21 pm
Forum: Games and Creations
Topic: Hungry Bob - An arcade about a hungry cat
Replies: 4
Views: 1276

Re: Hungry Bob - An arcade about a hungry cat

When switching to fullscreen, the keyboard stops responding (all keys) Mouseclick still works. Sorry, I cannot reproduce the problem (used Chrome and Edge and the keyboard worked perfectly for me)... Could you verify if pressing Alt + Enter instead of clicking the full screen button resolves the pr...
by knorke
Mon May 06, 2024 11:21 pm
Forum: Games and Creations
Topic: Hungry Bob - An arcade about a hungry cat
Replies: 4
Views: 1276

Re: Hungry Bob - An arcade about a hungry cat

I played the web version with Firefox on Linux Mint. In the menus, clicking buttons via mouse does not work. It does not click the button that the mouse is placed on but instead it clicks the button that is currently highlighted by keyboard. (In other words: Mouseclick behaves like pressing space an...