there is now a player character and the world renders using a cammera

This commit is contained in:
2026-04-09 13:11:55 -07:00
parent 09c310cb4a
commit af639e62c3
47 changed files with 1737 additions and 83 deletions

View File

@@ -1,8 +1,40 @@
#ifndef CLIENT_H
#define CLIENT_H
#include <libssh/callbacks.h>
#include <unistd.h>
#include <signal.h>
#include <stdio.h>
#include <locale.h>
#include <time.h>
#include "../ssh_server_client.h"
#include <tart.h>
#include "../game_source/cammera.h"
#include "../game_source/world.h"
typedef struct {} client;
typedef struct {
tart_window w;
int resize;
int newWidth;
int newHeight;
float xBounce;
float xFlip;
float yBounce;
float yFlip;
clock_t last_frame_time;
double frame_time_ms;
int color0;
int color1;
int color2;
ssh_channel channel;
cammera cam;
world world;
ssh_terminal_data term;
struct ssh_server_callbacks_struct server_cb;
struct ssh_channel_callbacks_struct channel_cb;
struct timespec last_time;
} client;
int client_auth(void* userdata);
@@ -12,5 +44,7 @@ int client_update(ssh_terminal_data* td, void*);
int client_stop(void*);
int client_resize(int x, int y, void* userdata);
#endif