View Code? Open in Web Editor
NEW
Corona Royale game made for HI1038 project course at KTH
CMake 19.46%
C 79.53%
Batchfile 0.75%
Shell 0.15%
C++ 0.10%
corona-royale's Introduction
Requirements on Windows:
Requirements on macOS:
Visual Studio Code (Download here: https://code.visualstudio.com/ )
CMake (run brew install cmake
in the terminal)
SDL2 (run brew install sdl2
in the terminal)
SDL2_image (run brew install sdl2_image
in the terminal)
SDL2_mixer (run brew install sdl2_mixer
in the terminal)
SDL2_net (run brew install sdl2_net
in the terminal)
SDL2_ttf (run brew install sdl2_ttf
in the terminal)
To build/run the game:
Download/clone this repository
Open the project folder with Visual Studio Code
Press F5
to run, Ctrl-Shift-B
to only build
corona-royale's People
Stargazers
Watchers
corona-royale's Issues
Start menu with following
Play
(Debug only) Connect via IP
More can be added
Show play button
Render texts
Ability to write ip before pressing play
Issues using SDL_FontCache
Use only SDL_TTF until further notice
EXC_BAD_ACCESS (code=1, address=0x2)
EXC_BAD_ACCESS (code=EXC_I386_GPFLT)
Have camera anchored to the player top-down
Move player using mouse1
Player direction dictated by mouse position within the screen
It is important that NetPlayer is dynamically allocated
The struct and it's layout on the server MUST match the client, consider doing a shared header.
Number specify in what order the actions are performed (not necessarily exactly).
Server:
1 - Start server
1 - Make server listen on specific port (you decide port)
2 - Accept client connections
5 - Send player start position
Client:
1 - Start client
3 - Connect to server via IP and port (127.0.0.1 for local server)
5 - Read start position
6 - Put player position to start position