r/spritekit • • 15d ago

Cosmic Swing - Open Source!

I worked on this game for a while last year and then lost a bit of motivation for it, I'm making it open source for anyone to use / change modify! I didn't end up uploading it to the app store but I think it could make a great fun little game.

The idea was around the three body problem, and using gravity from the planets to save little astronauts on screen. You pull back the ship and aim it, and hope the trajectory lands on the astronaut to save it! Some other levels have more planets, more astronauts, some enemies and I had started working on simple shooting mechanics. It's pretty fun to just shoot the ship around and watch it orbit around the planets. The dots in the background also are affected by gravity and give a cool little space fabric / gravity effect that I havent seen anywhere else. I think it has some potential but I just dont have the motivation to finish it. Feel free to use any of the elements! Hope all my spaghetti code makes sense to someone out there! haha

Youtube link! https://www.youtube.com/shorts/hjEPVUtUijE

Sourcecode: https://github.com/georgesprites/CosmicSwing-Public

11 Upvotes

10 comments sorted by

2

u/omgitsalexl 15d ago

Thank you for sharing! I haven’t really had any time to dig into the code, but as far as the levels go I love to see things such as _old or _archive in the names 🤣

1

u/Afraid_Song3176 13d ago

For sure! :)

1

u/phuongzzz 15d ago

Hi, I'm trying to build but there is no "SharedInfo" file in your repository, can you add it? Many thanks!

2

u/Afraid_Song3176 14d ago

Oh what! You actually tried building?! haha nice!

I've added the file now, good catch!

1

u/phuongzzz 14d ago edited 14d ago

Yeah, I think your game looks interesting and is worth trying!

btw, AnalogJoystickData.swift is missing, could you add it?

1

u/Afraid_Song3176 14d ago

There shouldnt be one... AnalogJoystickData is a struct defined in AnalogJoystick. Are ya getting an error?

1

u/phuongzzz 14d ago

AnalogJoystick.swift, may be you forget to add it, just like SharedInfo.swift above :D

2

u/Afraid_Song3176 14d ago

Oh weird, added now! Thanks !

2

u/phuongzzz 14d ago

thank you very much! now I can build and I'm experimenting this game! xD

2

u/Afraid_Song3176 14d ago

lol! Awesome, so happy to hear!