grub.inc
mdsteele_annalog/src/actors/grub.inc
;;;=========================================================================;;;
;;; Copyright 2022 Matthew D. Steele <mdsteele@alum.mit.edu>                ;;;
;;;                                                                         ;;;
;;; This file is part of Annalog.                                           ;;;
;;;                                                                         ;;;
;;; Annalog is free software: you can redistribute it and/or modify it      ;;;
;;; under the terms of the GNU General Public License as published by the   ;;;
;;; Free Software Foundation, either version 3 of the License, or (at your  ;;;
;;; option) any later version.                                              ;;;
;;;                                                                         ;;;
;;; Annalog is distributed in the hope that it will be useful, but WITHOUT  ;;;
;;; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or   ;;;
;;; FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License   ;;;
;;; for more details.                                                       ;;;
;;;                                                                         ;;;
;;; You should have received a copy of the GNU General Public License along ;;;
;;; with Annalog.  If not, see <http://www.gnu.org/licenses/>.              ;;;
;;;=========================================================================;;;

;;; State bytes for grub baddies:
;;;   * Param: The initial flags to set (0 or bObj::FlipH).
;;;   * Flags: The bObj::FlipH bit is set if the grub is facing left, or
;;;     cleared if it is facing right.
;;;   * State1: A counter that decrements each frame; when it's zero, the grub
;;;     starts another movement cycle and resets the counter.
;;;   * State2: (BadGrubFire only) When nonzero, the fire grub is in the middle
;;;     of an attack cycle, and this decrements each frame.
;;;   * State3: Unused.
;;;   * State4: Unused.

;;; How far a grub baddie actor's bounding box extends in each direction from
;;; the actor's center position.
kBadGrubBoundingBoxUp   = 0
kBadGrubBoundingBoxDown = 8
kBadGrubBoundingBoxSide = 7

;;; Tile IDs for drawing grub baddie actors.
kTileIdObjBadGrubFirst = $9c
kTileIdObjBadGrubFireFirst = $a8

;;;=========================================================================;;;
