mirror of
https://gitlab.com/drummyfish/anarch.git
synced 2024-11-23 17:32:16 -05:00
Add setting
This commit is contained in:
parent
f94f9bbe89
commit
de911e4fe4
26
TODO.txt
26
TODO.txt
@ -88,7 +88,7 @@ level ideas:
|
|||||||
- narrow corridor with elevator
|
- narrow corridor with elevator
|
||||||
- maze from walls and/or props DONE
|
- maze from walls and/or props DONE
|
||||||
- narrow bridge with platformer elements over a hole full of enemies kinda
|
- narrow bridge with platformer elements over a hole full of enemies kinda
|
||||||
- server room
|
- server room kinda
|
||||||
- window (low unpassable ceiling) through which finish can be seen from the
|
- window (low unpassable ceiling) through which finish can be seen from the
|
||||||
start location of the level
|
start location of the level
|
||||||
- three locked doors in a row at the beginning of the level, the player has
|
- three locked doors in a row at the beginning of the level, the player has
|
||||||
@ -96,47 +96,47 @@ level ideas:
|
|||||||
- office building
|
- office building
|
||||||
- plasma bots guarding a big stock (store) of plasma ammo
|
- plasma bots guarding a big stock (store) of plasma ammo
|
||||||
- warrior (enemy) right before the player at the start of the level
|
- warrior (enemy) right before the player at the start of the level
|
||||||
- T-shaped corridor in which two rocket-firing enemies stand facing each other DONE
|
- T-shaped corridor in which two rocket-firing enemies stand facing each other DONE
|
||||||
so that the player can kill them by stepping between them, letting them fire,
|
so that the player can kill them by stepping between them, letting them fire,
|
||||||
then stepping back, making them kill each other
|
then stepping back, making them kill each other
|
||||||
- enemy trapped between barrels
|
- enemy trapped between barrels
|
||||||
- teleport that leads to another teleport which is on a single high elevated
|
- teleport that leads to another teleport which is on a single high elevated
|
||||||
square from which the player has to jump down and won't be able to return,
|
square from which the player has to jump down and won't be able to return,
|
||||||
making it a de-facto one-way teleport
|
making it a de-facto one-way teleport
|
||||||
- teleports placed so that the player can shoot himself with a rocket or plasma
|
- teleports placed so that the player can shoot himself with a rocket or plasma DONE
|
||||||
(for fun)
|
(for fun)
|
||||||
- exploders in a maze, hiding behind corners
|
- exploders in a maze, hiding behind corners
|
||||||
- teleport leading to a center of big room full of enemies
|
- teleport leading to a center of big room full of enemies
|
||||||
- easter egg -- a level that looks funny on the map, e.g. forms a text or a DONE
|
- easter egg -- a level that looks funny on the map, e.g. forms a text or a DONE
|
||||||
picture
|
picture
|
||||||
- squeezers with low-elevated base (a hole), on a side of a corridor -- if the
|
- squeezers with low-elevated base (a hole), on a side of a corridor -- if the
|
||||||
player is curious and jumps in, he's doomed to die -- perhaps there can be
|
player is curious and jumps in, he's doomed to die -- perhaps there can be
|
||||||
many of them while one is in fact an elevator, which the player has to spot
|
many of them while one is in fact an elevator, which the player has to spot
|
||||||
and take in order to advance
|
and take in order to advance
|
||||||
- bullet-shooting enemies behing windows (low ceilings) in rooms that can't be DONE
|
- bullet-shooting enemies behing windows (low ceilings) in rooms that can't be DONE
|
||||||
reached
|
reached
|
||||||
- locked door that cannot be unlocked at the beginning of the level as a DONE
|
- locked door that cannot be unlocked at the beginning of the level as a DONE
|
||||||
visual indication of entrance
|
visual indication of entrance
|
||||||
- elevator in a narrow (1 square) vertical hole with doors at the top and DONE
|
- elevator in a narrow (1 square) vertical hole with doors at the top and DONE
|
||||||
bottom, looking like an actual elevator in buildings
|
bottom, looking like an actual elevator in buildings
|
||||||
- player goes through a difficult platformer section and at the end has to make DONE
|
- player goes through a difficult platformer section and at the end has to make DONE
|
||||||
takes card and has to go through the whole section again in order to also
|
takes card and has to go through the whole section again in order to also
|
||||||
take the other one
|
take the other one
|
||||||
- big platform made of elevators that are moving in a short vertical distance, DONE
|
- big platform made of elevators that are moving in a short vertical distance, DONE
|
||||||
giving an impression of a shaking, unstable platform
|
giving an impression of a shaking, unstable platform
|
||||||
- warrior and/or exploder right behing doors
|
- warrior and/or exploder right behing doors
|
||||||
- tight maze made of barrels filled with warriors in which the player has to
|
- tight maze made of barrels filled with warriors in which the player has to
|
||||||
only use knife in order not to explode the barrels and hurt himself
|
only use knife in order not to explode the barrels and hurt himself
|
||||||
- enemy on an elevator that doesn't stop at aligned with the floor, so that DONE
|
- enemy on an elevator that doesn't stop at aligned with the floor, so that DONE
|
||||||
the enemy is "trapped" on it and only appears briefly to shoot at the player
|
the enemy is "trapped" on it and only appears briefly to shoot at the player
|
||||||
- barrel on elevator
|
- barrel on elevator
|
||||||
- platforming vertical section in which the player is going upwards out of a big
|
- platforming vertical section in which the player is going upwards out of a big
|
||||||
hole
|
hole
|
||||||
- level with a lot of closed doors, done by including a door texture in the DONE
|
- level with a lot of closed doors, done by including a door texture in the DONE
|
||||||
level wall textures and then sing it for "fake" doors
|
level wall textures and then sing it for "fake" doors
|
||||||
- invisible bridge (perhaps not straight) made of blockers (invisible walls) kinda
|
- invisible bridge (perhaps not straight) made of blockers (invisible walls) kinda
|
||||||
over a hole, leading to an easter egg
|
over a hole, leading to an easter egg
|
||||||
- start of level: a corner blocked by an invisible wall, to indicate entrance DONE
|
- start of level: a corner blocked by an invisible wall, to indicate entrance DONE
|
||||||
- small pyramid from diffetently elevated floor tiles
|
- small pyramid from diffetently elevated floor tiles
|
||||||
|
|
||||||
bugs:
|
bugs:
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
@ -523,7 +523,7 @@ SFG_PROGRAM_MEMORY uint8_t SFG_attackDamageTable[SFG_WEAPON_FIRE_TYPES_TOTAL] =
|
|||||||
SFG_PROGRAM_MEMORY uint8_t SFG_projectileAttributeTable[SFG_PROJECTILES_TOTAL] =
|
SFG_PROGRAM_MEMORY uint8_t SFG_projectileAttributeTable[SFG_PROJECTILES_TOTAL] =
|
||||||
{
|
{
|
||||||
/* explosion */ SFG_PROJECTILE_ATTRIBUTE(0,400),
|
/* explosion */ SFG_PROJECTILE_ATTRIBUTE(0,400),
|
||||||
/* fireball */ SFG_PROJECTILE_ATTRIBUTE(11,1000),
|
/* fireball */ SFG_PROJECTILE_ATTRIBUTE(15,1000),
|
||||||
/* plasma */ SFG_PROJECTILE_ATTRIBUTE(20,500),
|
/* plasma */ SFG_PROJECTILE_ATTRIBUTE(20,500),
|
||||||
/* dust */ SFG_PROJECTILE_ATTRIBUTE(0,450),
|
/* dust */ SFG_PROJECTILE_ATTRIBUTE(0,450),
|
||||||
/* bullet */ SFG_PROJECTILE_ATTRIBUTE(28,1000)
|
/* bullet */ SFG_PROJECTILE_ATTRIBUTE(28,1000)
|
||||||
|
14
main.c
14
main.c
@ -795,22 +795,26 @@ void SFG_pixelFunc(RCL_PixelInfo *pixel)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
#if SFG_DRAW_LEVEL_BACKGROUND
|
||||||
color = SFG_getTexel(
|
color = SFG_getTexel(
|
||||||
SFG_backgroundImages[SFG_currentLevel.backgroundImage],
|
SFG_backgroundImages[SFG_currentLevel.backgroundImage],
|
||||||
SFG_game.backgroundScaleMap[((pixel->position.x
|
SFG_game.backgroundScaleMap[((pixel->position.x
|
||||||
#if SFG_BACKGROUND_BLUR != 0
|
#if SFG_BACKGROUND_BLUR != 0
|
||||||
+ SFG_backgroundBlurOffsets[SFG_backgroundBlurIndex]
|
+ SFG_backgroundBlurOffsets[SFG_backgroundBlurIndex]
|
||||||
#endif
|
#endif
|
||||||
) * SFG_RAYCASTING_SUBSAMPLE + SFG_game.backgroundScroll) % SFG_GAME_RESOLUTION_Y],
|
) * SFG_RAYCASTING_SUBSAMPLE + SFG_game.backgroundScroll) % SFG_GAME_RESOLUTION_Y],
|
||||||
(SFG_game.backgroundScaleMap[(pixel->position.y // ^ TODO: get rid of mod?
|
(SFG_game.backgroundScaleMap[(pixel->position.y // ^ TODO: get rid of mod?
|
||||||
#if SFG_BACKGROUND_BLUR != 0
|
#if SFG_BACKGROUND_BLUR != 0
|
||||||
+ SFG_backgroundBlurOffsets[SFG_backgroundBlurIndex + 1]
|
+ SFG_backgroundBlurOffsets[SFG_backgroundBlurIndex + 1]
|
||||||
#endif
|
#endif
|
||||||
) % SFG_GAME_RESOLUTION_Y ])
|
) % SFG_GAME_RESOLUTION_Y ])
|
||||||
);
|
);
|
||||||
|
|
||||||
#if SFG_BACKGROUND_BLUR != 0
|
#if SFG_BACKGROUND_BLUR != 0
|
||||||
SFG_backgroundBlurIndex = (SFG_backgroundBlurIndex + 1) % 0x07;
|
SFG_backgroundBlurIndex = (SFG_backgroundBlurIndex + 1) % 0x07;
|
||||||
|
#endif
|
||||||
|
#else
|
||||||
|
color = 1;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -264,6 +264,13 @@
|
|||||||
/**
|
/**
|
||||||
Gives player all keys from start.
|
Gives player all keys from start.
|
||||||
*/
|
*/
|
||||||
#define SFG_UNLOCK_DOOR 1
|
#define SFG_UNLOCK_DOOR 0
|
||||||
|
|
||||||
|
/**
|
||||||
|
Whether levels background (in distance or transparent wall textures) should
|
||||||
|
be drawn. If turned off, the background will be constant color, which can
|
||||||
|
noticably increase performance.
|
||||||
|
*/
|
||||||
|
#define SFG_DRAW_LEVEL_BACKGROUND 1
|
||||||
|
|
||||||
#endif // guard
|
#endif // guard
|
||||||
|
Loading…
Reference in New Issue
Block a user