This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #83 from Maksasj/room-rework
Room rework
- Loading branch information
Showing
56 changed files
with
2,153 additions
and
1,312 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
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 |
---|---|---|
|
@@ -30,4 +30,6 @@ u32 random(); | |
*/ | ||
void setSeed(u32 _seed); | ||
|
||
inline u32 getRandomInRange(u32 min, u32 max); | ||
|
||
#endif |
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,13 @@ | ||
#ifndef _ANCIENT_ROOM_H_ | ||
#define _ANCIENT_ROOM_H_ | ||
|
||
#include "../../entity/entity_macros.h" | ||
#include "../tile.h" | ||
|
||
void ancientRoomInit(Room* _self); | ||
|
||
void ancientRoomRender(Room* _self, void* _world); | ||
|
||
void ancientRoomUpdateCallback(void* _world, Room* _self, Entity* _player); | ||
|
||
#endif |
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,13 @@ | ||
#ifndef _CORRIDORS_ROOM_H_ | ||
#define _CORRIDORS_ROOM_H_ | ||
|
||
#include "../../entity/entity_macros.h" | ||
#include "../tile.h" | ||
|
||
void corridorsRoomInit(Room* _self); | ||
|
||
void corridorsRoomRender(Room* _self, void* _world); | ||
|
||
void corridorsRoomUpdateCallback(void* _world, Room* _self, Entity* _player); | ||
|
||
#endif |
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,15 @@ | ||
#ifndef _DARK_LABYRINTH_ROOM_H_ | ||
#define _DARK_LABYRINTH_ROOM_H_ | ||
|
||
#include "../../entity/entity_macros.h" | ||
#include "../../item/item_macros.h" | ||
|
||
#include "../tile.h" | ||
|
||
void darkLabyrinthRoomInit(Room* _self, Entity* _player); | ||
|
||
void darkLabyrinthRoomRender(Room* _self, void* _world); | ||
|
||
void darkLabyrinthRoomUpdateCallback(void* _world, Room* _self, Entity* _player); | ||
|
||
#endif |
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,15 @@ | ||
#ifndef _DUMBBELL_ROOM_H_ | ||
#define _DUMBBELL_ROOM_H_ | ||
|
||
#include "../../item/item_macros.h" | ||
#include "../../entity/entity_macros.h" | ||
#include "../../entity/prototypes/player.h" | ||
#include "../tile.h" | ||
|
||
void dumbbellRoomInit(Room* _self, Entity* _player);; | ||
|
||
void dumbbellRoomRender(Room* _self, void* _world); | ||
|
||
void dumbbellRoomUpdateCallback(void* _world, Room* _self, Entity* _player); | ||
|
||
#endif |
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,13 @@ | ||
#ifndef _END_GAME_ROOM_H_ | ||
#define _END_GAME_ROOM_H_ | ||
|
||
#include "../../entity/entity_macros.h" | ||
#include "../tile.h" | ||
|
||
void endGameRoomInit(Room* _self); | ||
|
||
void endGameRoomRender(Room* _self, void* _world); | ||
|
||
void endGameRoomUpdateCallback(void* _world, Room* _self, Entity* _player); | ||
|
||
#endif |
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,13 @@ | ||
#ifndef _FLOOR_BEGINNING_ROOM_H_ | ||
#define _FLOOR_BEGINNING_ROOM_H_ | ||
|
||
#include "../room.h" | ||
#include "../tile.h" | ||
|
||
void floorBeginningRoomInit(Room* _self, Entity* _player); | ||
|
||
void floorBeginningRoomRender(Room* _self, void* _world); | ||
|
||
void floorBeginningRoomUpdateCallback(void* _world, Room* _self, Entity* _player); | ||
|
||
#endif |
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,13 @@ | ||
#ifndef _FLOOR_END_ROOM_H_ | ||
#define _FLOOR_END_ROOM_H_ | ||
|
||
#include "../../entity/entity_macros.h" | ||
#include "../tile.h" | ||
|
||
void floorEndRoomInit(Room* _self); | ||
|
||
void floorEndRoomRender(Room* _self, void* _world); | ||
|
||
void floorEndRoomUpdateCallback(void* _world, Room* _self, Entity* _player); | ||
|
||
#endif |
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,13 @@ | ||
#ifndef _FOUR_ANCIENT_SKELETON_ROOM_H_ | ||
#define _FOUR_ANCIENT_SKELETON_ROOM_H_ | ||
|
||
#include "../../entity/entity_macros.h" | ||
#include "../tile.h" | ||
|
||
void fourAncientSkeletonRoomInit(Room* _self, Entity* _player); | ||
|
||
void fourAncientSkeletonRoomRender(Room* _self, void* _world); | ||
|
||
void fourAncientSkeletonRoomUpdateCallback(void* _world, Room* _self, Entity* _player); | ||
|
||
#endif |
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,15 @@ | ||
#ifndef _KING_IN_CORRIDOR_ROOM_H_ | ||
#define _KING_IN_CORRIDOR_ROOM_H_ | ||
|
||
#include "../../item/item_macros.h" | ||
#include "../../entity/entity_macros.h" | ||
#include "../../entity/prototypes/player.h" | ||
#include "../tile.h" | ||
|
||
void kingInCorridorRoomInit(Room* _self, Entity* _player); | ||
|
||
void kingInCorridorRoomRender(Room* _self, void* _world); | ||
|
||
void kingInCorridorRoomUpdateCallback(void* _world, Room* _self, Entity* _player); | ||
|
||
#endif |
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,15 @@ | ||
#ifndef _LABYRINTH_1_ROOM_H_ | ||
#define _LABYRINTH_1_ROOM_H_ | ||
|
||
#include "../../entity/entity_macros.h" | ||
#include "../../item/item_macros.h" | ||
|
||
#include "../tile.h" | ||
|
||
void labyrinth1RoomInit(Room* _self, Entity* _player); | ||
|
||
void labyrinth1RoomRender(Room* _self, void* _world); | ||
|
||
void labyrinth1RoomUpdateCallback(void* _world, Room* _self, Entity* _player); | ||
|
||
#endif |
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,15 @@ | ||
#ifndef _LABYRINTH_2_ROOM_H_ | ||
#define _LABYRINTH_2_ROOM_H_ | ||
|
||
#include "../../entity/entity_macros.h" | ||
#include "../../item/item_macros.h" | ||
|
||
#include "../tile.h" | ||
|
||
void labyrinth2RoomInit(Room* _self, Entity* _player); | ||
|
||
void labyrinth2RoomRender(Room* _self, void* _world); | ||
|
||
void labyrinth2RoomUpdateCallback(void* _world, Room* _self, Entity* _player); | ||
|
||
#endif |
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,15 @@ | ||
#ifndef _LABYRINTH_3_ROOM_H_ | ||
#define _LABYRINTH_3_ROOM_H_ | ||
|
||
#include "../../entity/entity_macros.h" | ||
#include "../../item/item_macros.h" | ||
|
||
#include "../tile.h" | ||
|
||
void labyrinth3RoomInit(Room* _self, Entity* _player); | ||
|
||
void labyrinth3RoomRender(Room* _self, void* _world); | ||
|
||
void labyrinth3RoomUpdateCallback(void* _world, Room* _self, Entity* _player); | ||
|
||
#endif |
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,13 @@ | ||
#ifndef _NECROMANCER_BOSS_ROOM_H_ | ||
#define _NECROMANCER_BOSS_ROOM_H_ | ||
|
||
#include "../../entity/entity_macros.h" | ||
#include "../tile.h" | ||
|
||
void necromancerBossRoomInit(Room* _self); | ||
|
||
void necromancerBossRoomRender(Room* _self, void* _world); | ||
|
||
void necromancerBossRoomUpdateCallback(void* _world, Room* _self, Entity* _player); | ||
|
||
#endif |
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,13 @@ | ||
#ifndef _PAC_MAN_ROOM_H_ | ||
#define _PAC_MAN_ROOM_H_ | ||
|
||
#include "../../entity/entity_macros.h" | ||
#include "../tile.h" | ||
|
||
void pacmanRoomInit(Room* _self); | ||
|
||
void pacmanRoomRender(Room* _self, void* _world); | ||
|
||
void pacmanRoomUpdateCallback(void* _world, Room* _self, Entity* _player); | ||
|
||
#endif |
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,13 @@ | ||
#ifndef _PYRAMID_ROOM_H_ | ||
#define _PYRAMID_ROOM_H_ | ||
|
||
#include "../../entity/entity_macros.h" | ||
#include "../tile.h" | ||
|
||
void pyramidRoomInit(Room* _self); | ||
|
||
void pyramidRoomRender(Room* _self, void* _world); | ||
|
||
void pyramidRoomUpdateCallback(void* _world, Room* _self, Entity* _player); | ||
|
||
#endif |
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,13 @@ | ||
#ifndef _SPIKE_MADNESS_ROOM_H_ | ||
#define _SPIKE_MADNESS_ROOM_H_ | ||
|
||
#include "../../entity/entity_macros.h" | ||
#include "../tile.h" | ||
|
||
void spikeMadnessRoomInit(Room* _self); | ||
|
||
void spikeMadnessRoomRender(Room* _self, void* _world); | ||
|
||
void spikeMadnessRoomUpdateCallback(void* _world, Room* _self, Entity* _player); | ||
|
||
#endif |
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,13 @@ | ||
#ifndef _SYMMETRIC_1_ROOM_H_ | ||
#define _SYMMETRIC_1_ROOM_H_ | ||
|
||
#include "../../entity/entity_macros.h" | ||
#include "../tile.h" | ||
|
||
void symmetric1RoomInit(Room* _self); | ||
|
||
void symmetric1RoomRender(Room* _self, void* _world); | ||
|
||
void symmetric1RoomUpdateCallback(void* _world, Room* _self, Entity* _player); | ||
|
||
#endif |
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,13 @@ | ||
#ifndef _SYMMETRIC_2_ROOM_H_ | ||
#define _SYMMETRIC_2_ROOM_H_ | ||
|
||
#include "../../entity/entity_macros.h" | ||
#include "../tile.h" | ||
|
||
void symmetric2RoomInit(Room* _self); | ||
|
||
void symmetric2RoomRender(Room* _self, void* _world); | ||
|
||
void symmetric2RoomUpdateCallback(void* _world, Room* _self, Entity* _player); | ||
|
||
#endif |
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,13 @@ | ||
#ifndef _TWO_NINJA_SKELETON_ROOM_H_ | ||
#define _TWO_NINJA_SKELETON_ROOM_H_ | ||
|
||
#include "../../entity/entity_macros.h" | ||
#include "../tile.h" | ||
|
||
void twoNinjaSkeletonRoomInit(Room* _self); | ||
|
||
void twoNinjaSkeletonRoomRender(Room* _self, void* _world); | ||
|
||
void twoNinjaSkeletonRoomUpdateCallback(void* _world, Room* _self, Entity* _player); | ||
|
||
#endif |
Oops, something went wrong.