A little game I started on. It's far from done, but you get the point ;)
https://gist.github.com/SebastianJarsve/5297707
A little game I started on. It's far from done, but you get the point ;)
https://gist.github.com/SebastianJarsve/5297707
Pretty cool! Actually, it's quite similar to something I've written a while ago:
https://gist.github.com/4050951
(also not quite finished and the code is a bit chaotic, but playable)
@omz Nice! I like the fact that they shoot back at you. The collision detection was pretty clever. The way I handled collisions was kind of buggy.
@Comicbookfreak Thanks man!
@Jaymerica You're right. It's briefly mentioned in the reference for the Point class, but that's admittedly very easy to miss. There isn't much support for other "magic" methods beyond that. The in operator also works for two Rects, but that's pretty much it.
I was browsing the forums and then I came across this post. This is a really cool program! I love the aliens :D
I did change one thing though. The program had the highscore saved to "Saves/spaceimpact_highscore.txt", which causes an error (along the lines of this path is not defined). I changed it to "spaceimpact_highscore". Now my question is how do I view files such as the one I just mentioned.... Back to exploring the forums and site. After another round of this game of course!
Hmmmm... After playing again I realized that my "fix" might have backfired. No highscore pops up when I play the game, but maybe that is normal?
EDIT: the score does display when I beat the highscore
EDIT: Well, it wasn't programmed into the game, hence the reason the score would display. Altered the code a bit and, if the author wishes, can supply it. It isn't too hard though :P