Search found 801 matches

by togFox
Sat Feb 06, 2021 3:00 am
Forum: General
Topic: That facepalm moment when ...
Replies: 11
Views: 9873

That facepalm moment when ...

... I spent 2 hours trying to nut out my failed vector math only to discover I didn't convert to radians. :cry:

You?
by togFox
Fri Feb 05, 2021 3:48 am
Forum: Support and Development
Topic: What is the best unit test framework for Love2D?
Replies: 0
Views: 5413

What is the best unit test framework for Love2D?

Google search shows:

- Lovetest - 2013
- Busted (seems to be not Love2d)
- Telescope (not Love2d)
- Cute (10 months old - which is pretty recent!)

And a half dozen forum threads with 'roll your own'.

Cute seems to be the most recent + most relevant so - is that the way to go?
by togFox
Thu Feb 04, 2021 1:27 pm
Forum: Support and Development
Topic: Noobie just discovered LOVE. Tips for a top down sports game?
Replies: 12
Views: 10993

Re: Noobie just discovered LOVE. Tips for a top down sports game?

Thanks.

Does anyone know how you have a body move around and react to applyforce but turn collisions off? I set isactive = false but then it wouldn't move. I'd like the body to retain its Newtonian movement b but to also pass through other bodies.
by togFox
Wed Feb 03, 2021 9:22 pm
Forum: Support and Development
Topic: Noobie just discovered LOVE. Tips for a top down sports game?
Replies: 12
Views: 10993

Re: Noobie just discovered LOVE. Tips for a top down sports game?

Just celebrating my game is functional. Not pretty, but functional. :)

In just over a week Love2d has allowed me to make a playable concept of a sports field full of bodies moving around and reacting via Newtonian physics. :)

Appreciate the tips. Onwards and upwards.
by togFox
Wed Feb 03, 2021 2:34 pm
Forum: Support and Development
Topic: How would you slightly extend the physics tutorial?
Replies: 3
Views: 3353

Re: How would you slightly extend the physics tutorial?

That's great. I find it odd that a real example on the whole internet found nothing.

Are tables of bodies such a rare and unique thing?

Anyway, your code has pointed me in the right direction. Thanks!
by togFox
Mon Feb 01, 2021 11:40 am
Forum: Support and Development
Topic: How would you slightly extend the physics tutorial?
Replies: 3
Views: 3353

How would you slightly extend the physics tutorial?

In this tutorial: https://love2d.org/wiki/Tutorial:Physics https://love2d.org/wiki/Tutorial:Physics A ball is created and it bounce. Cool. Get it. Seems easy. How would I modify the code to have two balls in a table so I can spawn them in a FOR loop, update them in a FOR loop and DRAW them in a FOR ...
by togFox
Sun Jan 31, 2021 8:41 pm
Forum: Support and Development
Topic: Noobie just discovered LOVE. Tips for a top down sports game?
Replies: 12
Views: 10993

Re: Noobie just discovered LOVE. Tips for a top down sports game?

Thanks. I think I need to apply force to the AI and apply impulse to the puck.

I think at this point I need to stop reading and experiment. Thanks.
by togFox
Sun Jan 31, 2021 3:50 pm
Forum: Support and Development
Topic: Noobie just discovered LOVE. Tips for a top down sports game?
Replies: 12
Views: 10993

Re: Noobie just discovered LOVE. Tips for a top down sports game?

I'm quite comfortable with the math and vectors and angular velocities for determining who needs to move where. I already have four love.graphic.draw.circles chasing each other around the screen as an exercise. These are driven with a class I made up called 'hockeyplayer'. I guess i was asking if sh...
by togFox
Sun Jan 31, 2021 1:00 pm
Forum: Support and Development
Topic: Noobie just discovered LOVE. Tips for a top down sports game?
Replies: 12
Views: 10993

Re: Noobie just discovered LOVE. Tips for a top down sports game?

So I'm thinking out loud, remembering this is day 2 in my Love2D journey, that I want a bunch of physics bodies. These are AI. They have their own mind/will/actions and will execute those 'normal' movements with Body:applyLinearImpulse and let the physics engine deal with collisions and rebounds etc...
by togFox
Sun Jan 31, 2021 8:43 am
Forum: Support and Development
Topic: Noobie just discovered LOVE. Tips for a top down sports game?
Replies: 12
Views: 10993

Re: Noobie just discovered LOVE. Tips for a top down sports game?

I'm still reading lots. Can anyone suggest if I can or should use the different physics libraries? I'll have hockey players voicing of each other and the wall and whilst subjected to force and momentum they will have 'free' will to influence their movement and the game. I'm currently setting up clas...