Asteroids: Now completely working!

Here’s a little game I wrote,
You might want to play it note for note …

So I was playing around with the idea of creating a playful activity about velocity and acceleration … I ended up recreating Asteroids …

https://www.desmos.com/geometry/nyc9rymegk

Any thoughts or suggestions?
I would like to somehow let the students interact with the engine of the game to learn something about velocity and acceleration …

(I still have to work on the bullets.)

[I now realized that I sould’ve posted this in the Discussion, sorry]

Edit: complete version:
https://www.desmos.com/geometry/8jtvfymbyx

1 Like

Looks amazing! Maybe for the students, after playing with the original, you could have a second screen where instead of controlling with the moving point, you have the various equations with sliders where they can control parameters to see how that moves the ship? (Maybe with no crashing…)

1 Like

I like this idea. I’ll try that, and yes with no crashing because otherwise you don’t have the time to analyze what’s going on. I like the idea to have the game as a starting point. Thank you.

Cool game! What if you added a button to fire using clickable points? And then make the asteroids break apart… Real “Asteroids” game in Desmos!?

1 Like

Thank you! I was thinking about that actually but the problem is that you need to be dragging the steering point so it would be kind of difficult to reach the button, shoot and then go back to the steering point.
The only solution I thought of would be to let the gunshots shoot by themselves, every half a second for example, then you only have to steer the ship and aim for the asteroids … I’ll try to do that … but I’m open to other ideas …

1 Like

If you’re using a graph component, you could use the CL to send this.currentX and this.currentY into the graph to define the position of a point (or button) based on the cursor position. Then, you could click without having to drag anything.

2 Likes

I thought of that possibility, I was afraid that it could be a bit sluggish. Do you think that updating the variables through CL is fast enough?
It would be nice to have a version that works directly in Desmos but since I was trying to make an activity out of it … the CL version would be fine too.

1 Like

This is very big brain :exploding_head:

I mean it’s faster than a calculation being pushed in. I think faster than you may think.

1 Like

Here’s an update,
Asteroids completely working:
https://www.desmos.com/geometry/8jtvfymbyx

1 Like