Skip to content

Add movable cursor #9

@Isaac-W

Description

@Isaac-W

Implement class; it should contain the position of the cursor, on-screen drawing details, etc.

The cursor class should also have methods to handle moving of the cursor, like moveToXY(). These methods will be called by the main game scene.

Open Tasks:

  • Animate cursor on move (use Actions)
  • getX & Y should return the map grid coordinate, not the map pixel coordinate
  • Override moveToXY, move, and getXY methods using a vector instead of separate variables
  • Use Node's getPosition and setPosition to manage the on-screen coordinates
  • Move init method to cpp file
  • Make the map grid tile size (128px) an arbitrary number (see issue Cursor - Make map tile size arbitrary #21)

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions