; ##-----------------------------LICENSE NOTICE------------------------------------
; ##  This file is part of Hacktank
; ##
; ##  Hacktank is free software: you can redistribute it and/or modify
; ##  it under the terms of the GNU Lesser General Public License as published by
; ##  the Free Software Foundation, either version 3 of the License, or
; ##  (at your option) any later version.
; ##
; ##  Hacktank 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 Lesser General Public License for more details.
; ##
; ##  You should have received a copy of the GNU Lesser General Public License
; ##  along with Hacktank.  If not, see <http://www.gnu.org/licenses/>.
; ##------------------------------------------------------------------------------



.include "render.h.s"
k_contmuerte_max=80
k_bala_size = 16
k_max_num_bala=3
.macro Definebala _name, _x, _y, _vx, _vy, _w, _h, _sprite, _upd, _max, _cont,_antx,_anty,_ncart,_contmuerte
_name:

   DrawableEntity _name'_de, _x, _y, _w, _h, _sprite,_antx,_anty;'
   .db   _vx, _vy     ;; VX, VY
   .dw   _upd        ;; Update
   .db   _max
   .db   _cont
   .db   _ncart
   .db _contmuerte
.endm
.macro DefinebalaDefault _name, _suf
  Definebala _name'_suf, 0xAA, 0, 0, 0, 0, 0, 0 ,0 ,0 ,0 ,0 ,0, 0,0xFF;'
.endm
.macro DefineNBalas _name, _n
  _c=0
  .rept _n
    DefinebalaDefault _name,\_c
    _c=_c+1
    .endm
.endm

;e_x = 0
;e_y = 1
;e_vx = 2
;e_vy = 3
;e_w = 4
;e_h = 5
;e_col = 6
;e_up_l = 7
;e_up_h = 8
n_contador_bala_max=12
n_contador_bala=13
n_cartucho_bala=14
n_contmuerte=15

.globl _g_Bala
.globl _g_Bala2

.globl reiniciar_bala
.globl enem_disparo
.globl disparos
.globl bal_copy
.globl ent_move3
.globl girarizquierda
.globl girarderecha
.globl shoot
.globl balas
.globl mult
;.globl k_bala_size
