Checkpoint 3—Collecting / Enemies / Hurt


In every games the enemy is important, I also choose some interesting and beautiful enemies in my game. Their movement follow the simple rules to create its behaviors, there are just a few parts similar as player movement, but others different.

Rigidbody2D, Polygon Collider 2D and Animator

This three of components set on enemy are same function as player setting. Make the image have physical and animation effects.

 

Rule for enemy movement

In this game, enemies produce a sense of direction and movement which means it can move in horizontal or vertical coordinates, rather than moving at random way as in other games. It does not require user control and runs automatically according to the set track from the start of the game.

Hurt

When the enemy touches the player, it will take injure and will be ejected a distance and an injured action will be performed. I used code to implement the attack after the bounce function.

Collecting

In ancient times, the ingot was an ancient currency. I have placed some ingot for the player to collect. When the player jumps under the ingot using the space keyboard, the ingot will be acquired and it will disappear. I used code to count the amount of ingot collected will increase accordingly in the Inspector of player. 



Students Feedback:

Students mentioned when the enemy's sword against the player will cause damage, but when the player touch the enemy body when there is no reaction. Later I added polygons collider 2D to the snake monster whold body, but I edited the range of the effect on it.

Further implement:

There are too many enemies in the game, which makes it too difficult for players to pass the level and reduces their love for the game. In each level, I only add the enemies appropriately, instead of making the game too difficult. However, the placement of the game is very special, which can also increase the player's challenge.



Reference:

All of screenshot picture from:  https://www.screentogif.com/

All of gif from:  https://www.gif.cn/

Leave a comment

Log in with itch.io to leave a comment.