Skip to content

TASK - Implement enemy movement patterns #10

@mfreidel

Description

@mfreidel

When enemies spawn in, they should move around the screen a little bit and then move away.

Pre-flight Checklist

Verify all before submitting

  • I have performed and documented some basic research and planning before opening this task.
  • This task implements a new core feature, or substantially alters an existing one.
  • I have confirmed that this is not a duplicate task.
  • I have confirmed that this task is not already being worked on or completed.
  • This issue has an assignee.
  • This issue is assigned to the learn2shmup project.
  • This issue is assigned to the appropriate milestone in GitHub.
  • This issue has appropriate labels to identify components this may alter.
  • I have read, selected, and verified the above checkmarks accurately.

Sub-tasks

Smaller individual tasks required for completion:

  • Implement feature
  • Write documentation and/or notes
  • Manual testing

Planned procedure

Chronological list of planned work:

  1. Create Enemy/path0.tscn to serve as a generic reusable path.
  2. Add path0.tscn to the enemy spawning process.
  3. After traversing the path, make enemy exit the screen to de-spawn.

Task research, planning and notes

The easiest method seems to be using the Path2D node. This allows you to draw a path which can be followed using the PathFollow2D node.

Links

  1. API Reference page for Path2D
  2. More info about paths and curves
  3. Very short video showing how it is used

Metadata

Metadata

Assignees

No one assigned

    Labels

    enemy componentRelated to the "Enemy" objecttaskA planned project task

    Type

    No type

    Projects

    Status

    Backlog

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions