Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is up my dude? #3

Open
crertel opened this issue Dec 23, 2018 · 4 comments
Open

What is up my dude? #3

crertel opened this issue Dec 23, 2018 · 4 comments

Comments

@crertel
Copy link

crertel commented Dec 23, 2018

I was hoping to be the first person to release a realtime game in scenic (that is continuous, not just discrete grid stuff like Snake), but you beat me to it. :)

Anyways, I was hacking on this last night and a couple of things:

  • You can really simplify the "constrain" behavior by using :math.fmod to just wrap the player or asteroid coordinates to the screen dimensions.
  • You can also use pattern matching in the shoot method to remove the case statement in the try_shoot stuff.
  • I'm a little weirded out by your use of protocols (instead of behaviors) for entities, but I like the idea and would subscribe to your news letter.
  • You need to add drawing twice (maybe more?) to gracefully handle entities overlapping edges and wrapping on the screen.
  • The really fun part about collision detection/updating should use worker processes.

Anyways, it's really awesome that you put up a nice PoC that's easy to hack on, and I'd love to talk with you more on this stuff. HMU on the twitters (same username).

@axelson
Copy link
Owner

axelson commented Dec 27, 2018

Thanks for all this! It makes a lot of sense and I will be taking a deeper look when time permits.

@crertel
Copy link
Author

crertel commented Dec 27, 2018

If you want to pair on it, I could setup a Zoom call and walk through some of it in person with you. Could be fun. :)

@axelson
Copy link
Owner

axelson commented Dec 28, 2018

That sounds like fun. I'll be available sometime in early to mid January. I'll dm you on Twitter to set it up

@crertel
Copy link
Author

crertel commented Dec 28, 2018

Wunderbar!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants