curioustorvald / Terrarum

Modular game engine for a side-scrolling tilemap platformer, and a game that runs on top of it
Other
13 stars 0 forks source link

Some more events for event-driven programming #12

Open curioustorvald opened 5 years ago

curioustorvald commented 5 years ago
curioustorvald commented 5 years ago

World Click event -- there's already such event on the GameItem. Modify it such that:

  1. Ingame fires PrimaryClick event on a held item (something like: Ingame.Player.inventory.getHeldItem.primaryUse(some more vars))
    • (condition of event firing is managed by Ingame)
  2. The held item does the job of "using" itself
curioustorvald commented 5 years ago

fun CollisionEvent(this: Myself, other: List of CollisionInfo)

CollisionInfo: collision with other actor | world tile (tile number?)