adding multiplayer
This commit is contained in:
@@ -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};
|
||||
|
||||
Reference in New Issue
Block a user