Topic: Compiling with VS2013
Hi all,
Been a while since I messed around with TeeWorlds, but I am back for the time being.
Thought I'd share with those of you that might care about compiling TeeWorlds 0.6.2 on Windows with VS2013.
I downloaded the following:
Bam 0.4.0
Python 3.3.3
TeeWorlds 0.6.2
I installed Python with no problems.
Bam compiled just fine with VS2013 after modifing the make_win32_msvc.bat to include VS12 tools:
if exist "%VS120COMNTOOLS%" (
set VSPATH="%VS120COMNTOOLS%"
goto set_env
)
I then proceeded to compile TeeWorlds, but had a couple errors. I was able to fix them by modifing the following files:
I commented out the following function in
src\base\math.h (line 23)
//inline int round(float f)
//{
// if(f > 0)
// return (int)(f+0.5f);
// return (int)(f-0.5f);
//}
Then I also had to add a cast to the following line in
src\game\editor\layer_tiles.cpp (line 251)
int Rotation = (int)(round(360.0f*Amount/(pi*2))/90)%4; // 0=0°, 1=90°, 2=180°, 3=270°
After those 2 changes TeeWorlds compiled perfectly with VS2013.