First Boss

I'm currently working on the first boss enemy in twtpb. A boss enemy will mark the end of the stage and you have to defeat the boss to progress. In other words it works like a normal old school shooter Smiling

The boss will be made up of several smaller parts that can break up and move as individual enemies, and when they combine they will fire something more elaborate than a normal bullet. I think this can be pretty neat...

Since I'm a big fan of kiss (keep it simple, stupid) the code was in no way prepared for adding another enemy, and definitely not an enemy as "advanced" as this. Making a very basic, working, implementation was pretty simple and took about 2h, including making the graphics. This proved to me that the concept for the enemy was working and that it will be a fun challenge to face this enemy.

However, there is now a bit of smell in the code base since there is some duplication and I have spotted several ways of simplifying the code. My next session will definitely be focused at making these refactorings, being careful to not generalize too much.


users avatar

Post new comment

Please solve the math problem above and type in the result. e.g. for 1+1, type 2.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <h1> <h2> <h3> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.
  • Textual smileys will be replaced with graphical ones.
  • Images can be added to this post.

More information about formatting options