FrancisTR / Rhythm-Swipe

A Repository dedicated to the 2D Game "Rhythm Swipe".
https://projectrhythmswipe.netlify.app/
GNU Affero General Public License v3.0
2 stars 0 forks source link

Rework of the enemy class and the player class #21

Closed johntran038 closed 1 year ago

johntran038 commented 1 year ago

Big changes in this one so please look through and see if there are any major errors in my design, either technical or in general. Also, let me know if there are any questions about the changes, how certain methods work, etc.

UPDATE & CHANGES (that I can remember)

Player class: added move() method //replaces moveForward() added new parameter to player class constructor added face() method //replaces turn() added isBlocked() method added collectCoin() method added showImg() method // replaces showImage() put finished() method in player class

Created EnemyJ class: //replaces enemy //removes the need for 2 enemy instances display() move()

Other areas: removed finished() method everywhere except for player class edited finished() method edited mainMenu(); edited keyPressedMethod made resetEnemy() method removed all instance of original enemy (with a few exceptions for debug) removed the "temporary for player" section

Side notes: playerCounter is possibly not needed

netlify[bot] commented 1 year ago

Deploy Preview for projectrhythmswipe ready!

Name Link
Latest commit a1e9a038d201c27f37f60334458c5d6730e88174
Latest deploy log https://app.netlify.com/sites/projectrhythmswipe/deploys/64890a32e1f6ab000886de35
Deploy Preview https://deploy-preview-21--projectrhythmswipe.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.