Creating a simple 2D world for my grad AI class based off my Flat world classes.
For setting up SDL 2.0, I recommend using this website: http://lazyfoo.net/tutorials/SDL/01_hello_SDL/index.php Basics:
- Project : build options : search directory tab
- Compiler subtab : add : ex.
C:\SDL2\include
- Linker subtab : add : ex.
C:\SDL2\lib
- Linker setting tab :
-lmingw32 -lSDL2main -lSDL2
in other linker options box - [Link is more detailed so follow that if confused]
https://hg.libsdl.org/SDL/raw-file/e217ed463f25/include/SDL_platform.h
If you drop the file into SDL 2.0.3's include\SDL2\ directory, overwriting the original it should compile.
- Project is built in CodeBlocks environment
- The program is coded in C++ and uses SDL as its graphic library.
- Linker setting
-lmingw32 -lSDLmain -lSDL