mirror of
https://github.com/deater/dos33fsprogs.git
synced 2024-12-27 02:31:00 +00:00
peasant: work on lightning, very very frightning
This commit is contained in:
parent
c83ddd1615
commit
5885d6fb76
@ -232,6 +232,27 @@ game_loop:
|
||||
bmi oops_new_location
|
||||
bne level_over
|
||||
|
||||
;=====================
|
||||
; draw lightning
|
||||
|
||||
lda FRAME
|
||||
and #$3
|
||||
tax
|
||||
|
||||
; ldx #0
|
||||
lda big_lightning_l,X
|
||||
sta INL
|
||||
lda big_lightning_h,X
|
||||
sta INH
|
||||
|
||||
lda big_lightning_x,X
|
||||
sta CURSOR_X
|
||||
lda big_lightning_y,X
|
||||
sta CURSOR_Y
|
||||
|
||||
jsr hgr_draw_sprite
|
||||
|
||||
|
||||
|
||||
;=====================
|
||||
; always draw peasant
|
||||
@ -356,6 +377,7 @@ exiting_cliff:
|
||||
.include "../hgr_sprite_bg_mask.s"
|
||||
.include "../gr_offsets.s"
|
||||
.include "../hgr_partial_restore.s"
|
||||
.include "../hgr_sprite.s"
|
||||
|
||||
.include "../gr_copy.s"
|
||||
.include "../hgr_copy.s"
|
||||
@ -405,3 +427,23 @@ robe_sprite_data:
|
||||
.incbin "../sprites_peasant/robe_sprites.zx02"
|
||||
|
||||
.include "sprites_heights/lightning_sprites.inc"
|
||||
|
||||
big_lightning_l:
|
||||
.byte <big_lightning0,<big_lightning1,<big_lightning2,<big_lightning3
|
||||
small_lightning_l:
|
||||
.byte <small_lightning0,<small_lightning1,<small_lightning2,<small_lightning3
|
||||
|
||||
big_lightning_h:
|
||||
.byte >big_lightning0,>big_lightning1,>big_lightning2,>big_lightning3
|
||||
small_lightning_h:
|
||||
.byte >small_lightning0,>small_lightning1,>small_lightning2,>small_lightning3
|
||||
|
||||
big_lightning_x:
|
||||
.byte 13,11,10,10
|
||||
small_lightning_x:
|
||||
.byte 2,2,2,2
|
||||
|
||||
big_lightning_y:
|
||||
.byte 27,27,27,27
|
||||
small_lightning_y:
|
||||
.byte 39,39,39,39
|
||||
|
@ -6,9 +6,12 @@ lightning_sprites.inc: lightning.png
|
||||
$(HGR_SPRITE) -s -l small_lightning0 lightning.png 14 3 27 15 > lightning_sprites.inc
|
||||
$(HGR_SPRITE) -s -l small_lightning1 lightning.png 42 3 62 21 >> lightning_sprites.inc
|
||||
$(HGR_SPRITE) -s -l small_lightning2 lightning.png 77 3 104 29 >> lightning_sprites.inc
|
||||
$(HGR_SPRITE) -s -l big_lightning0 lightning.png 7 51 27 91 >> lightning_sprites.inc
|
||||
$(HGR_SPRITE) -s -l big_lightning1 lightning.png 35 51 69 103 >> lightning_sprites.inc
|
||||
$(HGR_SPRITE) -s -l big_lightning2 lightning.png 84 51 132 118 >> lightning_sprites.inc
|
||||
$(HGR_SPRITE) -s -l small_lightning3 lightning.png 119 3 146 29 >> lightning_sprites.inc
|
||||
$(HGR_SPRITE) -s -l big_lightning0 lightning.png 14 51 34 91 >> lightning_sprites.inc
|
||||
$(HGR_SPRITE) -s -l big_lightning1 lightning.png 49 51 83 103 >> lightning_sprites.inc
|
||||
$(HGR_SPRITE) -s -l big_lightning2 lightning.png 98 51 146 118 >> lightning_sprites.inc
|
||||
$(HGR_SPRITE) -s -l big_lightning3 lightning.png 161 51 209 118 >> lightning_sprites.inc
|
||||
|
||||
|
||||
|
||||
clean:
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.8 KiB |
@ -1,22 +1,22 @@
|
||||
; SAVE1 -- ??
|
||||
; SAVE1 -- cliffland heights
|
||||
|
||||
.include "zp.inc"
|
||||
|
||||
; want to load this to address $90
|
||||
|
||||
;
|
||||
.byte LOAD_PEASANT2 ; WHICH_LOAD = $90
|
||||
.byte LOAD_HEIGHTS ; WHICH_LOAD = $90
|
||||
.byte 10 ; PEASANT_X = $91
|
||||
.byte 100 ; PEASANT_Y = $92
|
||||
.byte PEASANT_DIR_UP ; PEASANT_DIR = $93
|
||||
.byte 0 ; MAP_X = $94
|
||||
.byte 1 ; MAP_Y = $95
|
||||
.byte LOCATION_HAY_BALE ; MAP_LOCATION = $96
|
||||
.byte GARY_SCARED
|
||||
; GAME_STATE_0 = $97
|
||||
.byte $00 ; GAME_STATE_1 = $98
|
||||
.byte TALKED_TO_KNIGHT
|
||||
; GAME_STATE_2 = $99
|
||||
.byte LOCATION_CLIFF_HEIGHTS ; MAP_LOCATION = $94
|
||||
.byte $00 ; ?? = $95
|
||||
.byte $00 ; GAME_STATE_0 = $96
|
||||
.byte $00 ; GAME_STATE_1 = $97
|
||||
.byte TALKED_TO_KNIGHT|ON_FIRE
|
||||
; GAME_STATE_2 = $98
|
||||
.byte CLIFF_CLIMBED
|
||||
; GAME_STATE_3 = $99
|
||||
.byte $00 ; NED_STATUS = $9A
|
||||
.byte $00 ; BUSH_STATUS = $9B
|
||||
.byte $00 ; KERREK_STATE = $9C
|
||||
|
Loading…
Reference in New Issue
Block a user