Day 1

To be honest,  my first choice is 'Obsoloetely Fabulous', I made an old fashioned game framework last week (or it should be last month), and bad luck, the theme is "The Lesser of Two Evils", I saw that Futurama episode, so I just made my game a two-player game. I creat enemy attack method, enemy will attack the nearest player if it is an two-player game. In fact, I do not know the exact meaning at that time. I am not good at English. Anyhow, I get the meaning finally, and I made the player have two choice in the game. So if only one player plays, both of his choice may be aweful, but as the theme ordered, "The Lesser of Two Evils". I think he should choose the first one to play.

For the game itself, I meet a problem, I do not use the tmx map this time, how to creat the enemies in the map is a problem to me. I try to let the enemy appear by game frame, I make a enemyspawn dict, the key is frame, the value is enemy, I use dict.get() to creat the enemy. Well, bad luck, all the enemy instances will be created when the dict is created, so it would drop the game framerate. So I have to use another method, Hope I have a good day today.


(log in to comment)

Comments

maybe this can help you:
http://gameprogrammingpatterns.com/contents.html
==>Flyweight

it's written for C++ but it gives ideas.

Thanks, Buffalo974, I have a quick look on your link, it is great! I will check them all after this pyweek. I think the ideas is using tiled map to get its position, it is close to what I am doing now, I will make it by my own way.  :)