-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
169 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -132,6 +132,7 @@ kMaxPassages = 8 | |
MineNorth | ||
MinePit | ||
MineSouth | ||
MineTunnel | ||
MineWest | ||
PrisonCell | ||
PrisonCrossroad | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,22 @@ | ||
@BG 0 0 0 33x15 | ||
@BG 0 0 0 17x15 | ||
>mine_0 | ||
>mine_1 | ||
>mine_4 | ||
>mine_5 | ||
>mine_6 | ||
|
||
CMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCM | ||
CMCMCMCICFCFCFCFCFCFCFCFCJCICFCFCFCFCFCFCFCFCFCFCFCFCFCFCFCFCFCJCM | ||
CICFCFCDAFAFAFAFAFAFAFAFCCCD CGCM | ||
CH CGCM | ||
CH CGCM | ||
CKDADBDBDH CGCM | ||
CMCMCOCPCH CGCM | ||
CMCNCMCMCH CGCM | ||
CMCMCMCPCH CGCM | ||
CICFCFCFCD CCCF | ||
CH CC | ||
CH AE ABAB | ||
CH AG CACECECB CACECECE | ||
CKCECECECECECECECECECECLCMCMCKCECECECECECECECECECECECECECECLCMCMCM | ||
CMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCMCM | ||
CMCMCMCMCMCMCNCMCMCMCMCMCMCMCMCMCM | ||
CMCMCICFCFCFCFCFCFCCCFCFCJCMCMCMCM | ||
CMCMCDAFAFAFAFAFAFAFAFAFCCCFCJCNCM | ||
CMCPCH AM CGCMCM | ||
CFCFCD CCCOCM | ||
DM AO CGCPCM | ||
DBDBDBDCCH AM CCCFCF | ||
CMCMCOCMCH | ||
CMCMCMCPCHAN | ||
CMCICFCFCD AN | ||
CMCH AE AN | ||
CMCH AG AP ABABCACECE | ||
CMCKEFEGEEEB EAEGEFCLCMCM | ||
CMCMCNCMCOCKCECECECECECLCOCMCOCMCM | ||
CMCMCMCMCMCMCMCMCMCOCMCMCMCMCMCMCM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,108 @@ | ||
;;;=========================================================================;;; | ||
;;; Copyright 2022 Matthew D. Steele <[email protected]> ;;; | ||
;;; ;;; | ||
;;; 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/>. ;;; | ||
;;;=========================================================================;;; | ||
|
||
.INCLUDE "../actor.inc" | ||
.INCLUDE "../macros.inc" | ||
.INCLUDE "../platform.inc" | ||
.INCLUDE "../room.inc" | ||
|
||
.IMPORT DataA_Room_Mine_sTileset | ||
.IMPORT Data_Empty_sDevice_arr | ||
.IMPORT Func_Noop | ||
.IMPORT Ppu_ChrObjMine | ||
|
||
;;;=========================================================================;;; | ||
|
||
.SEGMENT "PRGC_Mine" | ||
|
||
.EXPORT DataC_Mine_Tunnel_sRoom | ||
.PROC DataC_Mine_Tunnel_sRoom | ||
D_STRUCT sRoom | ||
d_byte MinScrollX_u8, $10 | ||
d_word MaxScrollX_u16, $0110 | ||
d_byte Flags_bRoom, eArea::Mine | ||
d_byte MinimapStartRow_u8, 9 | ||
d_byte MinimapStartCol_u8, 19 | ||
d_addr TerrainData_ptr, _TerrainData | ||
d_byte NumMachines_u8, 0 | ||
d_addr Machines_sMachine_arr_ptr, 0 | ||
d_byte Chr18Bank_u8, <.bank(Ppu_ChrObjMine) | ||
d_addr Ext_sRoomExt_ptr, _Ext_sRoomExt | ||
D_END | ||
_Ext_sRoomExt: | ||
D_STRUCT sRoomExt | ||
d_addr Terrain_sTileset_ptr, DataA_Room_Mine_sTileset | ||
d_addr Platforms_sPlatform_arr_ptr, _Platforms_sPlatform_arr | ||
d_addr Actors_sActor_arr_ptr, _Actors_sActor_arr | ||
d_addr Devices_sDevice_arr_ptr, Data_Empty_sDevice_arr | ||
d_addr Passages_sPassage_arr_ptr, _Passages_sPassage_arr | ||
d_addr Enter_func_ptr, Func_Noop | ||
d_addr FadeIn_func_ptr, Func_Noop | ||
d_addr Tick_func_ptr, Func_Noop | ||
d_addr Draw_func_ptr, Func_Noop | ||
D_END | ||
_TerrainData: | ||
: .incbin "out/rooms/mine_tunnel.room" | ||
.assert * - :- = 34 * 15, error | ||
_Platforms_sPlatform_arr: | ||
: D_STRUCT sPlatform | ||
d_byte Type_ePlatform, ePlatform::Water | ||
d_word WidthPx_u16, $70 | ||
d_byte HeightPx_u8, $20 | ||
d_word Left_i16, $0040 | ||
d_word Top_i16, $00c4 | ||
D_END | ||
;; Terrain spikes: | ||
D_STRUCT sPlatform | ||
d_byte Type_ePlatform, ePlatform::Harm | ||
d_word WidthPx_u16, $70 | ||
d_byte HeightPx_u8, $08 | ||
d_word Left_i16, $0040 | ||
d_word Top_i16, $00d6 | ||
D_END | ||
D_STRUCT sPlatform | ||
d_byte Type_ePlatform, ePlatform::Harm | ||
d_word WidthPx_u16, $b0 | ||
d_byte HeightPx_u8, $08 | ||
d_word Left_i16, $0110 | ||
d_word Top_i16, $00de | ||
D_END | ||
.assert * - :- <= kMaxPlatforms * .sizeof(sPlatform), error | ||
.byte ePlatform::None | ||
_Actors_sActor_arr: | ||
: ;; TODO: Add some baddies | ||
.assert * - :- <= kMaxActors * .sizeof(sActor), error | ||
.byte eActor::None | ||
_Passages_sPassage_arr: | ||
: D_STRUCT sPassage | ||
d_byte Exit_bPassage, ePassage::Western | 0 | ||
d_byte Destination_eRoom, eRoom::MineCollapse | ||
d_byte SpawnBlock_u8, 10 | ||
d_byte SpawnAdjust_byte, 0 | ||
D_END | ||
D_STRUCT sPassage | ||
d_byte Exit_bPassage, ePassage::Eastern | 0 | ||
d_byte Destination_eRoom, eRoom::MineNorth | ||
d_byte SpawnBlock_u8, 5 | ||
d_byte SpawnAdjust_byte, 0 | ||
D_END | ||
.assert * - :- <= kMaxPassages * .sizeof(sPassage), error | ||
.ENDPROC | ||
|
||
;;;=========================================================================;;; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@BG 0 0 0 34x15 | ||
>mine_0 | ||
>mine_1 | ||
>mine_2 | ||
>mine_3 | ||
>mine_4 | ||
>mine_5 | ||
>mine_6 | ||
|
||
EMEMEMEMEMENEMEMEMEMEMEMEPEMEMEMEMEMEMENEMEMEMEMEIEFEFEFEFEFEJEMEMEM | ||
EMEMEMEMEIEFEFEJEMENEIEFEFEFEFECEFEFEFEFEJEPEMEIED ECEJEMEM | ||
EMEMEMEIED DNEGEIEFED CECF ECEFEJEH BK EGEMEM | ||
EMEMEOEDDL EGEH AN CGCH EGEH BJBOBI ECEFEF | ||
EMEMEPEH EGEH BK CI EAEBDCDADDEGEH BL AM | ||
EMEMEMEH AN EAEHBJBOBI CGCJ ECEDDEDBDFEGEH FM | ||
EFEFEFED EAELEH BL EAEB EAELEHGL EAGAGGGFGGGG | ||
EGENEKEB EGEH BK EGEIED EGEMEMEOEMEM | ||
ECEJEIED EGED BJBOBI EAELEH AP GKECEJENEMEMEM | ||
AN ECED GKEGEH BL EGEOEH ECEJEMEMEM | ||
AO CKCP AN EGEKEB ECEFEDGL AN EGEMEMEM | ||
EEEEEB COCL EAEEELEPEH AM CACB AM EGEPEMEM | ||
EMEMEKEBAHAHAHAIAJAHAHEGENEMEMEKEB CCCD EAEEELEMEMEM | ||
EMEPEMEKBNBNBNEEEEBNBNELEPEMEMEOEHBMBMBMEAEAEEEBBMBMBMBMEGEMEOEMEMEM | ||
EMEMEMEMEOEMEMEMEOEMEMEMEMEMEMEMEKFPFPFPEOEMEMEKFPFPFPFPEOEMEMEMEMEM |