Day 6 - END

Please download the last one final file

No matter how early start and not get to finish my game early, this is my fourth PyWeek and as usual on the last day still had plenty to do in the end I could not complete many of the ideas he had but at least I have something playable. this week I was busier than I thought so I could not spend as much time as he wanted. But I had fun and learned some new things.

Now to play all the games!!

Hackerman: A Hacker that fight (literally) with bugs, viruses, trojans, etc. You have to find the infected data and exterminate it.
HOW TO PLAY THE GAME:

Move the hero with arrows keys, use th W,A,S,D keys to shoot. For actions use E key.

Delete all infected data and kill enemies to get score

(log in to comment)

Comments

Hey, the game works really well for the most part, good job! I just wanted to let you know that it crashed once for me because of "e.kill(True)" on line 201 of data.py. I changed it to "e.kill()" and it didn't happen again. It might be a pygame version thing.

Also, around level 12 or so I spawned outside the wall. I assume this is a bug. I couldn't find any way in, but I was able to walk around the corner and see my character. Anyway, I had to quit there.

the first error happens when you collide with the "error block"(the white and gray rect), i overload the kill function of its class but i forgot add the arg that i was passing. Actors,kill() the parent class of Error Block has a arg called "exploded" to tell when it explodes and to don't add its death points to the score. if you remove the True arg on line 201 when the all enemies dies for collide with you they gonna give you some point that you don't suppose to deserve. I have some issues with the frame rate so when you move you have to loop over all walls to know if you collide with one of them, so i think that this is the cause of the second bug.
Okay well do you want to post a fix for the bug then?
https://github.com/andarms/pyweek20 i fix the bug and make a little change to one enemie behavior to make the game more challenging