Modifier Update


Welcome, I am excited to announce the newest update for Love is Blind and Murder. Since this project is almost one year old, I decided to change my approaches in working. Here is a list of the major changes (also available on the changelog):

-Added the first three Modifiers!!
  ->AttackModifier: Adds atk to your weapon
  ->RangeModifier: Increases the weapon's range (changes nothing on swords)
  ->DuplicatorModifier: Duplicates the currently equipped weapon and adds it to your arsenal

-Changed the weapon system for the Duplicator to work
  ->Player can now equip up to three weapons
  ->Only DuplicatorModifier can add weapons
  ->Bought weapons will replace all equipped weapons, also the duplicated weapons

-Improved Enemy Behaviours
  ->The enemies now have an unique moveset with more than just one attack
  ->For example: The crimps can now dash to you randomly

-Shops are currently useless, since there is currently only one weapon in the game

-Green rooms now spawn Modifiers instead of Buffs
  ->Buffs are still obtained by defeating Bosses

-Gameplay changes:
  ->Player now automatically looks at a target
  ->Target can be changed by pressing TAB
  ->Player can look North/East/South/West using the Arrow Keys, even while targeting
  ->The weapon(s) don't stop enemies anymore
  ->Player can press Left Shift to activate a shield
  ->When activated the enemies will be stopped by the weapon's
  ->Shield is active for 2 seconds

-Added a Message system
  ->Messages are displayed at the top of the screen


Source Code changes:

-Enemy Behaviour
  ->Earlier: Strategy approach with enums for behaviour, type and attack type in just one class for every enemy
      >Disadvantage: Always have to change the one class for more enemies
  ->Now: Still strategy, but using inheritance instead of one class
      >abstract class Enemy has an abstract method Movement for unique movement per Enemy
      >class Enemy now has a delegate method Attack and an attackQueue<Attack>, which will be emptied every frame there is an attack
      >Delegate method allows to add methods to the mentioned attackQueue, so I can just define them in my subclasses and add them to the queue, and the superclass can just call them and doesn't have to know their names
      >Advantage: No changes in superclass

-Modifiers
  ->Decorator Approach:
To make unique Modifiers without coding too many subclasses I decided to choose the decorator pattern for these. With this approach I just have some standard Modifiers and decorators which add cool effects and I can stack them however I want to.

Files

LiBaM_0.5.zip 19 MB
Nov 03, 2019
LiBaM_web_0.5.zip Play in browser
Nov 03, 2019

Get Love is blind and murder

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.