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

@@ -2,8 +2,6 @@
#include "cells.h"
#include <stdlib.h>
#include <string.h>
#include "./entities/Centery.h"
#include "./entities/Player.h"
#include "entity_handler.h"
#include "vector.h"
#include <stdio.h>
@@ -96,9 +94,11 @@ int GenerateWorld(world *w) {
}
}
}
for(int i = 0; i < w->ent_list->count; i++) {
for(int i = 0; i < 255; i++) {
entity* ent = w->ent_list->entities[i];
w->wells[at(ent->position.x + 1, ent->position.y + 1, w)].entityIds[0] = ent;
if(ent != NULL) {
w->wells[at(ent->position.x , ent->position.y , w)].entityIds[0] = ent;
}
}
vec2 building_position = {50,50};