Coding Games and Programming Challenges to Code Better
Send your feedback or ask for help here!
Created by @Manwi23,validated by @NicolasAlmerge,@VoxMortem and @_ron.
If you have any issues, feel free to ping them.
Coding Games and Programming Challenges to Code Better
Send your feedback or ask for help here!
Created by @Manwi23,validated by @NicolasAlmerge,@VoxMortem and @_ron.
If you have any issues, feel free to ping them.
Hi everyone!
I am a co-author of the game and the author of the idea, nice to see it is gaining some popularity
The code is available here: https://github.com/MichalOp/game-space-shooter
Feel free to ping me or @Manwi23 if you have any questions.
Thanks and congrats for contributing this game. Interesting idea, and leaves room to try out several tactics. The leaderboard seems to be still in its infancy as I submitted the dumbest bot ever and was very surprised to see it climbing to the #4 spot… I haven’t even used IDDQD I suspect my bot will not remain at that high rank for long…
How do I get the position of the enemy ship? position_x and position_y only give me the position of the bullet. I know I can see the ships position with my cursor, but that’s what the script is there for
The default code reads the information about all the units in a loop, but doesn’t do anything with it, so the position_x and position_y will just contain information about the last unit in the input (which probably happens to be a bullet in your case). You probably need to add code to the loop to store the information about the units for later use.