adding multiplayer

This commit is contained in:
2026-04-15 06:57:15 -07:00
parent af639e62c3
commit 3a91db6321
32 changed files with 938 additions and 174 deletions

View File

@@ -0,0 +1,2 @@
#include "player_data.h"

View File

@@ -0,0 +1,37 @@
#ifndef PLAYER_PACKET_H
#define PLAYER_PACKET_H
#include "../color.h"
#define MOVE_UP 1
#define MOVE_DOWN 2
#define MOVE_LEFT 3
#define MOVE_RIGHT 4
#define ATTACK_LEFT 5
#define ATTACK_RIGHT 6
#define ATTACK_UP 7
#define ATTACK_DOWN 8
#define ATTACK_MELEE 11
#define ATTACK_WEAPON_1 12
#define ATTACK_WEAPON_2 13
#define ATTACK_WEAPON_3 14
typedef struct {
int holding;
int class;
int health;
int ac;
int str;
int wis;
int intel;
int dex;
char name[32];
color c;
}player_data;
#endif

View File

@@ -1,8 +0,0 @@
#include "player_packet.h"
int SendPlayerPacket(player_packet *pakcet, game_server *config) {
return 0;
}

View File

@@ -1,25 +0,0 @@
#ifndef PLAYER_PACKET_H
#define PLAYER_PACKET_H
#include "../../server_source/game_client.h"
#define MOVE_UP 1
#define MOVE_DOWN 2
#define MOVE_LEFT 3
#define MOVE_RIGHT 4
#define ATTACK_MELEE 11
#define ATTACK_WEAPON_1 12
#define ATTACK_WEAPON_2 13
#define ATTACK_WEAPON_3 14
typedef struct {
}player_packet;
int SendPlayerPacket(player_packet* pakcet, game_server* config);
#endif