Update RRE_PreRelease.h

This commit is contained in:
2026-05-07 09:21:49 -04:00
parent f8c5fa6378
commit 065e30d8fd

View File

@@ -6,13 +6,15 @@
//thats all. //thats all.
#include "raylib.h" #include "raylib.h"
#include "raymath.h" #include <stdbool.h>
#ifndef RAMENG_H #ifndef RAMENG_H
#define RAMENG_H #define RAMENG_H
//------------------------------------------------------------------------------------------------------
//player info-stats-limbs-data-Inv //player info-stats-limbs-data-Inv
//player data for storage ⌄⌄ //player data for storage ⌄⌄
//------------------------------------------------------------------------------------------------------
typedef struct Player { typedef struct Player {
int x; //Player X Pos int x; //Player X Pos
int y; //Player y Pos int y; //Player y Pos
@@ -21,9 +23,9 @@ typedef struct Player {
} Player; } Player;
typedef struct PlayerStat { typedef struct PlayerStat {
//-- //------------------------------
//player basic stats //player basic stats
//-- //------------------------------
float Health; //Player Health stat float Health; //Player Health stat
int Attack; //Player Attack stat int Attack; //Player Attack stat
int Defense; //Player defense stat int Defense; //Player defense stat
@@ -35,8 +37,10 @@ typedef int Level; //Player Leveling stats / Player Level stat
typedef float XP; //points earned towards level // Player XP total typedef float XP; //points earned towards level // Player XP total
typedef float Money; //Amount of money typedef float Money; //Amount of money
typedef struct PlayerData { //------------------------------------------------------------------------------------------------------
//player movement //player movement
//------------------------------------------------------------------------------------------------------
typedef struct PlayerData {
float Speed; //Player Speed Stat float Speed; //Player Speed Stat
float SprintSpeed; //Speed the player sprints duh float SprintSpeed; //Speed the player sprints duh
float CrawlSpeed; //Speed while crawling float CrawlSpeed; //Speed while crawling
@@ -44,9 +48,9 @@ typedef struct PlayerData {
float JumpHeight; //Player jump height float JumpHeight; //Player jump height
} PlayerData; } PlayerData;
//-- //------------------------------------------------------------------------------------------------------
// Player status effects // Player status effects
//-- ////------------------------------------------------------------------------------------------------------
typedef bool IsStanding; //is the player standing typedef bool IsStanding; //is the player standing
typedef bool IsCrouching; //is the player crouched typedef bool IsCrouching; //is the player crouched
typedef bool IsCrawling; //is the player crawling typedef bool IsCrawling; //is the player crawling
@@ -56,31 +60,38 @@ typedef bool IsBurning; //is the player burning
typedef bool Isinteracting; //is the player interacting with something typedef bool Isinteracting; //is the player interacting with something
typedef bool IsBleeding; //is the player bleeding? typedef bool IsBleeding; //is the player bleeding?
typedef bool IsBagOpen; //is the bag/inv open typedef bool IsBagOpen; //is the bag/inv open
//--
//Bag //---------------------------------------------------------------------
//-- //Bag WIP
//---------------------------------------------------------------------
typedef int BagSlotCount; //amount of slots in bag/inv typedef int BagSlotCount; //amount of slots in bag/inv
//---------------------------------------------------------------------
//ITEM ID IS WIP
//---------------------------------------------------------------------
typedef struct ItemID { typedef struct ItemID {
int IDNUMBER; //id number for an item int IDNUMBER; //id number for an item
int ID_SLOT; //which number slot this item is in IE: ItemSlot 1 = ID_SLOT int ID_SLOT; //which number slot this item is in IE: ItemSlot 1 = ID_SLOT
} ItemID; } ItemID;
typedef int ItemSlot; //the slot of which an item is under typedef int ItemSlot; //the slot of which an item is under
//-----------------------------------------------------------------------------------------------------
//Will be put under a struct "Inflicts"
//------------------------------------------------------------------------------------------------------
typedef float BurnDamage; //Amount of damage burning inflicts typedef float BurnDamage; //Amount of damage burning inflicts
typedef int BurnTime; //how long burning will last typedef int BurnTime; //how long burning will last
typedef int BurnTick; typedef int BurnTick; //how many ticks should go by for the damage
typedef bool OnFire; typedef bool OnFire; //is the player on fire?
//---------------
//--
typedef float BleedDamage; //Damage inflicted when bleeding typedef float BleedDamage; //Damage inflicted when bleeding
typedef int BleedTick; //how long bleeding will last typedef int BleedTick; //how long bleeding will last
//-- //---------------
typedef float FreezeDamage; //Freezing damage typedef float FreezeDamage; //Freezing damage
typedef int FreezeTime; //how long till you freeze typedef int FreezeTime; //how long till you freeze
//------------------------------------------------------------------------------------------------------
//PLAYER LIMB HEALTH
//------------------------------------------------------------------------------------------------------
typedef struct PlayerLimb { typedef struct PlayerLimb {
float HeadHP; //player Head limb health float HeadHP; //player Head limb health
float TorsoHP; //Player Torso Health float TorsoHP; //Player Torso Health
@@ -91,8 +102,10 @@ typedef struct PlayerLimb {
float LegRightHP; //Player Leg Right Health float LegRightHP; //Player Leg Right Health
} PlayerLimb; } PlayerLimb;
//player data for storage ^^ //player data for storage ^^
//-----------------------------------------------------------------------------------
//------------------------------------------------------------------------------------------------------
//Enemy data //Enemy data
//------------------------------------------------------------------------------------------------------
typedef struct EnemyPosition { typedef struct EnemyPosition {
int x; //Enemy x pos int x; //Enemy x pos
int y; //Enemy y Pos int y; //Enemy y Pos
@@ -114,11 +127,9 @@ typedef bool CanWet; //Can the enemy make things wet...
typedef bool IsRendered; //is enemy rendered typedef bool IsRendered; //is enemy rendered
typedef bool IsHit; //is enemy hit typedef bool IsHit; //is enemy hit
//----------------------------------------------------------------- //------------------------------------------------------------------------------------------------------
//Define states //Define states
//----------------------------------------------------------------- //------------------------------------------------------------------------------------------------------
typedef bool IsLiquid; //is object a liquid typedef bool IsLiquid; //is object a liquid
typedef bool IsSolid; //is object a solid typedef bool IsSolid; //is object a solid
typedef bool IsAir; //is object air/can phase through typedef bool IsAir; //is object air/can phase through