Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
Space Shooter (Game for iPad)
-
Alright, a new update! It was a close call, but I narrowly avoided war between FIBB and REC by creating two new factions: Future Earth and Future Earth Enemies. Yeah. Creative names, I know. But hey, this game has like 0 backstory and -1 history, so let's move on ...
https://gist.github.com/40a696fcacf1b4e3c13f
Major changes:
Sprites made by yours truely
Sounds
Enemies spawn in formations instead of randomly
Different enemy types: Row 1(slow, no shields), row 2(faster, half shields), row 3(missiles, faster), and row4(missiles, fastest)
When you die, you go back 5 waves.
Ohh and this game becomes INSANELY difficult from wave 15 onwards.The game starts on wave 16. So you will get to experience a difficult start, don't be discouraged if you die a couple times the game will get easier on lesser waves.
Let me know what you think.
-
Hehe I am in the process of adding a laser that hits everyone in its path. It has two cool benefits: 1) low processing power and B) It's friggen awesome. I am thinking I will add it as a powerup the player will earn through kills, but the player can trigger whenever he wants. With it I am easily able to get to wave 40
-
Great update! Only one glitch, but I'm having trouble fully understanding it. The wave counter seemed to me to go up way too quick. When I looked after a few rounds it was at 15. There was no way that I got to 15 after 3 rounds! Although, is it that Pythonista preserves variables? If so that may be why. It may be why because whenever I restart the game (even if I restart the app) the wave is set to wherever I left it. Wheither intentional or not, I don't know (that's your job :P).
And I'm glad the cease fire "peace" between FIBB and REC is still going, but I wonder how FE and FEE will react to these events...
And remember, Galaxian and it's sequels (Galaga and the other ones) all had back stories. Not that they were ever explained in the game of course.
As far as lasers are concerned, I can't wait! My eyes lit up when I saw that :D
Cubbarooney
-
Nice
-
@Cubbarooney - the game starts you on wave 16 I believe. It's just because wave 1 is REALLY boring. Waves are controlled in the setup section of MyScene. Try doing wave 100. Haha talk about lag >.<
I am thinking maybe wave 5 or 10 for the starting wave.
As for the laser, I've got it working for the most part and will upload an update in the next couple days.
-
https://gist.github.com/e5b3cbd77b856b261fca
Just a tiny sampler of the laser. It has a timer of 1000 so it will wear off. And I need to fix the sound for it before its really 'integrated'. Also I want to give it slightly better graphics hehe because just LOOK at the damage it does
-
Love the font, and great game!
For the distance measurement:
#Returns the distance range between two objects based on x,y
def dif(loc1,loc2):
if loc1.x>loc2.x: difx=loc1.x-loc2.x
else: difx=loc2.x-loc1.x
if loc1.y>loc2.y: dify=loc1.y-loc2.y
else: dify=loc2.y-loc1.y
return difx+difyCould this be speeded up by using the 'abs' command maybe? It might speed that up ( plus u r not really getting the true distance which would need sqrt of x^2+y^2 I guess)
But really good- reading thru the code teaches me far more than books! :) -
Eg I think this works:
def dif(loc1,loc2):
difx=abs(loc1.x-loc2.x)
dify=abs(loc1.y-loc2.y)
return difx+dify -
Yeah I think I need to change the difference function. Like you said, it's not quite the fastest. And that really shows up when the game has a lot of missiles flying around (since those do a distance test on every spaceship in scene, every frame)
I will try your option, and another difference test option I saw on a different thread here, and get back with my results!
-
:O
Just got around to trying the laser...
It made me happy!
If you're planning on changing the laser graphically I'd maybe make it a pulsating blue or red. Star Wars would dictate red as a good color!
Cubbarooney
EDIT: just noticed that you DO want to change the laser graphically. Therefore, I advise you to ignore my "if".
-
Hehe level 100 is fun with laser
Cubbarooney
-
Just found this and notices that the sprites png file has been moved. Can it be found elsewhere or do you mind if I create my own?
Thanks,
Steve