Constructor
new Reticle(config)
- Source:
Description
Parameters:
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object | The config object Properties
|
Members
offsetX :number
- Source:
The offset from the player the mouse was at last time it moved, for updating position as player moves
Type:
- number
offsetY :number
- Source:
The offset from the player the mouse was at last time it moved, for updating position as player moves
Type:
- number
player :ClubCrawler.Objects.Player
- Source:
Type:
Methods
moveToPlayer()
- Source:
Called by Map Manager when player is placed
update()
- Source:
Called by DungeonCrawlerGame each update to ensure position relative to player is the same