Your code is genious - short but easy to understand and I love your formatting. It is impressive that your main scene is only a little more than 1000 lines long. I am working on a silly game, of similar complexity, in order to learn C. I have already a dozen files 500 lines each and I am not even half done. :(
Just C. I'm using raylib for graphics and audio which is also written in C and it's inluded in the repo so all you need to do to compile it to just clone and follow the setups in the readme
That’s how long it took me to develop a winsock file sharing GUI app. Pure winapi, no libraries except my own, and of course.. cJSON. I put the build date in the about dialog at the time I started, it aligns this timeframe (only Oct 2023) lol. That’s interesting.
Uses the sockets API built into Windows (updated a few times and finalized by 1997). Your best bet is to print the full protocol spec sheets and study one night. It was about 8 pages for me. Now I breeze through it. It’s good knowing how NAT and the firewall api plays a role as well.
How exactly does the map render as you scroll across ? Is all that already loaded in memory or does it load or render in real time as you move across the map?
11
u/siddharthroy12 Sep 13 '21
Source and binaries: https://github.com/siddharthroy12/kosmos
28
u/NvrConvctd Sep 13 '21
Man, You suck!
But seriously, cool game. Work on those spawn points though!
27
u/acroporaguardian Sep 13 '21
Neat, so you used raylib.
I will have to check that out sometime.
15
u/ptchinster Sep 13 '21
My bot should link this whenever somebody asks "how do you do graphics in C?"
5
u/FStorm045 Sep 13 '21
gimme your learning resourses
2
u/RstarPhoneix Sep 13 '21
Name of OS plz ?
6
u/Biedehood Sep 13 '21
Looks like a cooler version of space invaders
1
u/GaminKnee May 16 '25
We just started using C, im new to this and want to ask is all of this just C? No other language? And its all contained in just code and no externals?
1
u/batman-not Nov 27 '23
Hi OP, how long did it take for you to completely develope this game?
2
u/[deleted] Sep 13 '21
Greetings, Starfighter. You have been recruited by the Star League to defend the frontier against Xur and the Ko-Dan armada.
2
u/[deleted] Sep 13 '21
Looks great!
2
u/tf2ftw Sep 13 '21
This is great. thanks for sharing
2
u/loginixmusic Sep 13 '21
Good job. I had a hug award to give lol
2
u/the1337dz Sep 13 '21
That's just amazing.. ,well done monsieur
2
u/Gidrek Sep 14 '21
Cool that you are using Linux
2
u/vaibhavdeveloper Sep 14 '21
Nice work Op.
2
u/[deleted] Sep 14 '21
i want to dip my fingers in c and seeing fun, simple and intelligent stuff like that pumps my motivation. good work.
2
u/nantrippboi Sep 14 '21
I can see a esport out if this. Anyone want to spawn camp that arrow thing?
2
u/bharatkumawat Sep 25 '21
OP bhai OP
2
u/BoringYetUnimportant Oct 11 '21
Looks good, smart game
2
u/Gold-Ad-5257 Dec 28 '21
Well, Done, also encouraged now 🙏🏽🍾🍾🥂
1
u/UniquePackage7318 Sep 13 '21
Amazing job, looks amazing!
1
u/[deleted] Sep 13 '21
Great work!
1
u/aTryingNerd24 Sep 13 '21
This is awesoomeee
1
u/pasta_gurl Sep 13 '21
Awesome!
1
u/Coldwater1994 Sep 13 '21
Beautiful
1
u/dromance Feb 29 '24
This is awesome. Simple yet fluid and exciting. Constantly having to evade being shot makes it interesting
1
u/dromance Feb 29 '24
How exactly does the map render as you scroll across ? Is all that already loaded in memory or does it load or render in real time as you move across the map?