Changeset 0065962 in network-game
- Timestamp:
- Jan 11, 2019, 6:58:52 PM (6 years ago)
- Branches:
- master
- Children:
- 7f9b01c
- Parents:
- ea3a3a9
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
client/Client/main.cpp
rea3a3a9 r0065962 149 149 string alertMessage; 150 150 151 int main(int argc, char **argv) 152 { 151 int main(int argc, char **argv) { 153 152 ALLEGRO_DISPLAY *display = NULL; 154 153 ALLEGRO_EVENT_QUEUE *event_queue = NULL; … … 207 206 } 208 207 209 if (!al_install_keyboard()) {208 if (!al_install_keyboard()) { 210 209 fprintf(stderr, "failed to initialize the keyboard!\n"); 211 210 return -1; 212 211 } 213 212 214 if (!al_install_mouse()) {213 if (!al_install_mouse()) { 215 214 fprintf(stderr, "failed to initialize the mouse!\n"); 216 215 return -1; … … 218 217 219 218 timer = al_create_timer(1.0 / FPS); 220 if (!timer) {219 if (!timer) { 221 220 fprintf(stderr, "failed to create timer!\n"); 222 221 return -1; … … 230 229 } 231 230 display = al_create_display(SCREEN_W, SCREEN_H); 232 if (!display) {231 if (!display) { 233 232 fprintf(stderr, "failed to create display!\n"); 234 233 al_destroy_timer(timer); … … 244 243 245 244 event_queue = al_create_event_queue(); 246 if (!event_queue) {245 if (!event_queue) { 247 246 fprintf(stderr, "failed to create event_queue!\n"); 248 247 al_destroy_display(display); -
client/makefile
rea3a3a9 r0065962 1 1 CC = g++ 2 FLAGS = -Wall -g2 FLAGS = -Wall 3 3 4 4 UNAME_S := $(shell uname -s) -
readme.txt
rea3a3a9 r0065962 4 4 http://ventilatorxor.wordpress.com/2011/08/07/linux-allegro5-static-linking-for-beginners/ 5 5 6 The info below is outdated. The latest info is on the github wiki. 7 8 BoostPro Installer options 9 10 -multithreaded 11 -multithreaded debug 12 13 14 old installation instructions 15 16 client 6 CLIENT 17 7 ______ 18 8 19 install the boost library 20 install openssl using the old windows installer 9 OSX: 21 10 22 Add the following to Linker -> Input -> Additional Dependencies: 23 libeay32.lib 24 ssleay32.lib 11 Install MacPorts from https://guide.macports.org/chunked/installing.macports.html 25 12 13 To install allegro, dO the following steps in a separate directory: 26 14 27 server 15 sudo port install zlib freetype jpeg libogg physfs libpng flac libtheora +universal 16 git clone https://github.com/liballeg/allegro5.git allegro 17 cd allegro 18 mdkir build 19 cd build 20 cmake -DSTATIC=on .. 21 make 22 sudo make install 23 24 Now, go network-game/client and run: 25 make 26 ./gameClient medievaltech.com 8000 27 28 SERVER 28 29 ______ 29 30 30 install the boost library 31 install openssl on ubuntu (should be easy) 31 coming soon
Note:
See TracChangeset
for help on using the changeset viewer.