1 (edited by amulus 2015-10-13 20:49:15)

Topic: Code teeworlds

Hello, as a computer science Student who try to understand the source of teeworlds, I have some question about it.

1.The main language is c++ but doe it use RAII ?( I don't see it anywhere in fact)
2.Teeworlds use the librairy SDL, right ? But I do not see any SDL function anywhere or maybe I don't look at the right file.

Actually I try to code my own litle training project using sdl2 and c++, but to do that's other people told me to make sdl2 RAII conform...

2

Re: Code teeworlds

SDL Stuff is most likely in CGraphics if i remember correctly.

Real programmers don't comment their code - it was hard to write, it should be hard to understand.
Proudly verkeckt since 2010.

3

Re: Code teeworlds

amulus wrote:

1.The main language is c++ but doe it use RAII ?( I don't see it anywhere in fact)

For the most part of the code, Teeworlds uses C+ (basically C-style C++), that means: No real destructors, no exceptions, no templates, etc. A noteworthy exception is src/base/tl/ which contains some basic data structures.

4

Re: Code teeworlds

And some of the code is generated with python.