hurley's Introduction
hurley's People
hurley's Issues
SDL2/SDL_image.h: No such file or directory
sandy@debian:~/repos/hurley$ make
gcc -g -Wall -Iinclude ./src/sql_driver/adapter.c ./src/core/init.c ./src/core/main.c ./src/core/loop_handler.c ./src/images/loader.c ./src/sock_server/server.c ./src/hero/init.c ./src/hero/movement.c -o hurley -lSDL2 -lSDL2_image
./src/core/init.c:4:28: fatal error: SDL2/SDL_image.h: No such file or directory
#include <SDL2/SDL_image.h>
^
compilation terminated.
./src/images/loader.c:4:28: fatal error: SDL2/SDL_image.h: No such file or directory
#include <SDL2/SDL_image.h>
^
compilation terminated.
Makefile:10: recipe for target 'build' failed
make: *** [build] Error 1
Server Client Comms
Phase e.g. Movement, shooting
- Client asks server for next phase start time
- Server replies with a fixed time e.g. 17:10:23 UTC
- Client subtracts current time from this time, and starts a timer
- Once client timer finishes, movement selection is unlocked for the player and the phase begins.
- Once movement selection is unlocked, a second timer is started to display how long a player has to make their selection (~20secs)
- Each time a player right-clicks on the map, a line is shown showing their path, and the server is informed of their intention. (Later we can show players the selected path of their teammates!
- Once the client timer is finished, the client tells the server.
- The server waits until all player timers are finished.
- The server takes the last posted movement for all players, calculates where they actually moved (collisions if two players selected the same space for example) and updates its internal model.
- a. Meanwhile, clients wait a fixed time, say 2 seconds and then ask the server for the latest positions.
โ b. The reply for the request of step 7 contains the updated player steps. - The server replies and the movement is drawn for the player.
---- REQUESTS ----
GET - next phase start time <- a fixed point in time
POST - initial player movement selection. <- 201 OK
PUT - updated player movement selection. <- 203 Updated
--- EITHER ---
POST - client timer has finished <- 200 OK
GET - updated player locations <- a big piece of JSON with all paths and location
--- OR ---
POST - client timer has finished <- a big piece of JSON with all paths and location
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.