Skip to content

feature: create levels system #94

@poneciak57

Description

@poneciak57

How level should look like

We would like levels to work similarly to other such games so level contains of waves of enemies. When one wave ends next comes and after completing all waves user wins.

Implementation

Here is the quick guide on how it can be implemented

Level & level actions

First some data structure needs to be designed. Level can be a list of actions where actions can be:

  • wave of headhogs
  • pause waiting for x amount of time (some kind of preparation time)
  • message (for funny lore so first levels can have messages with tutorial)
  • end action when user won

Actions should have two methods

  • play action
  • check if done

For example before playing next wave we would like to know if all headhogs are dead that can be done by using if_done method. Those actions can be fully implemented with our current action/payload interfaces

System

LevelSystem should take level (aka list of actions) and procceed them sequentially so when action ends go and play next action

Possible problems

  • End game state needs to be implemented (can be moved to separate issue)
  • Screen with instructions/messages can be hard to support (if short on time we can give up on that)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    Status

    Todo

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions