Skip to content
This repository has been archived by the owner on May 13, 2023. It is now read-only.

Implement game logic #17

Open
Azuelle opened this issue Apr 4, 2023 · 0 comments
Open

Implement game logic #17

Azuelle opened this issue Apr 4, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request game logic Associated with game logic parsing major Very important, a large amount of work

Comments

@Azuelle
Copy link
Owner

Azuelle commented Apr 4, 2023

In game_logic.h and .cpp, implement the actual gameplay logics and processing happening each cycle, following the description in README.

What needs to be processed

  • Check if item timers have run out
    • Execute onDeath() afterwards
    • If item is bomb
      • Check if player's in range
        • Modify Health
      • Check if other items are in range
        • Execute their onDeath() and delete afterwards
        • Watch out for repeated executions (probably should have a flag for executed ones)
    • Remove item
  • Respond to player action
    • Validation
    • Change position / add item / etc. if valid
  • Item generation (maybe not each frame)

As this would be a pretty big task, we should probably have multiple people work on this (or split this into smaller tasks).

@Azuelle Azuelle added enhancement New feature or request game logic Associated with game logic parsing major Very important, a large amount of work labels Apr 4, 2023
@Azuelle Azuelle added this to the Create a playable prototype milestone Apr 4, 2023
@Azuelle Azuelle self-assigned this Apr 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request game logic Associated with game logic parsing major Very important, a large amount of work
Projects
None yet
Development

No branches or pull requests

3 participants