Hello, some of you may remember me as I used to come here quite often.
I remember this forum had a lot of good developers, and I am back into AS3 after a year of having quit.
Anyway, long story cut short: I'm making a game that is the top of my ability, which seems to have improved on its own. I have an Enemy class and 16 types of enemies, and another massive load is being thought up and drawn by my friend. The enemies have different behaviors. I have two options:
1. Use a switch statement in the Enemy class to test for the type of enemy, and execute the corresponding function. That would mean the Enemy class has about 80 functions in the end - 40 pseudo-constructors and 40 handlers for enter-frame and allsorts of variables(probably stored in a single array)
2. Make 40 classes for each type that extend the Enemy class and contain all code in those.
Copyright 2005-2014 Armor Games. All Rights Reserved.
Play free online games at Armor Games!
We strive to deliver the best online games experience on the internet, with thousands of free online games for kids, access to free mmorpg games, free online games for girls, online rpg games, fun online flash games, and more. We offer free flash games in many different genres: online shooting games, online puzzle games, online war games, free online car games, free online hidden object games and dozens more. This is the best place on the web to play online games for free... play on Armor Games! No matter what game style you prefer, we've got it here.
As one of the biggest free gaming websites, we offer thousands of new game reviews and ratings, making it easy for gamers to find new games every day. We offer only the best games from developers Jmtb02, Krin, ConArtist, Joey Betz, Tony Lavell, Louissi, Gameinabottle and of course Armor Games develops some of the best games around.
About Armor Games (ArmorGames.com, Armour Games, or Armored Games)
We are dedicated to providing our players the best online gaming experience on the internet! Visit every day to discover new games, achieve high scores, and participate in one of the most active gaming communities.
Submit a Game
Have your game played by millions of gamers! Armor Games welcomes game submissions from talented game developers. Not every game makes the cut, but if it does, we'll promote it on Armor Games and give you all the credit and link back to your site. Submit your game here and good luck!