Moderators: jean.vivien.maurice, Nicosmos, woody, ced117, erin
Would you like me to set up a branch in the repository for you?
That's odd, because it never seemed particularly slow in ETR before.
Is there a need for an SDL_Delay at all at line 270 of main.cpp (version 0.08). I know very little c++ programming and c++ game dev, but it looks like you're already regulating FPS using variable delay, so there's no need for another; it just throws off the game. (Regarding the variable delay: it looks like an empty while loop is being used to create a delay...
Regarding configuration: It would be nice to be able to change [some of the more fundamental] settings without recompiling the game. Without messing with a GUI interface for now, I imagine we could read a config file upon loading of the game,which basically replaces what config.cpp currently does.
erin wrote:writing a config is a boring job but nevertheless much work. I'm alone.
it's a 2 minute task.
erin wrote:This evening (european time) you can download the code to test if it compiles on Windows. Remember that the font code is part of the source now, so the linker flag -lftgl is no longer required.
Christian@CPLAPTOP /e/bunnyhill_win
$ make
g++ -c main.cpp -Wall -O2 -I/usr/include/freetype2
In file included from ft_font.h:16,
from font.h:13,
from main.cpp:25:
e:/mingw/bin/../lib/gcc/mingw32/3.4.5/../../../../include/ft2build.h:56:38: freetype/config/ftheader.h: No such file or directory
In file included from font.h:13,
from main.cpp:25:
ft_font.h:19:10: #include expects "FILENAME" or <FILENAME>
ft_font.h:20:10: #include expects "FILENAME" or <FILENAME>
ft_font.h:21:10: #include expects "FILENAME" or <FILENAME>
ft_font.h:22:10: #include expects "FILENAME" or <FILENAME>
In file included from font.h:13,
from main.cpp:25:
ft_font.h:302: error: ISO C++ forbids declaration of `FT_Library' with no type
ft_font.h:302: error: expected `;' before '*' token
ft_font.h:303: error: expected `;' before "FT_Error"
ft_font.h:303: error: `FT_Error' does not name a type
ft_font.h:307: error: expected `,' or `...' before '&' token
ft_font.h:307: error: ISO C++ forbids declaration of `FT_Library' with no type
ft_font.h:308: error: expected `,' or `...' before '&' token
ft_font.h:308: error: ISO C++ forbids declaration of `FT_Library' with no type
ft_font.h:310: error: ISO C++ forbids declaration of `FT_Library' with no type
ft_font.h:310: error: expected `;' before '*' token
ft_font.h:311: error: `FT_Error' does not name a type
ft_font.h:332: error: expected `,' or `...' before '&' token
ft_font.h:332: error: ISO C++ forbids declaration of `FT_Vector' with no type
ft_font.h: In constructor `FTPoint::FTPoint(int)':
ft_font.h:333: error: `ft_vector' was not declared in this scope
ft_font.h: At global scope:
ft_font.h:389: error: `FT_Face' has not been declared
ft_font.h:390: error: ISO C++ forbids declaration of `face' with no type
ft_font.h:398: error: `FT_Error' does not name a type
ft_font.h:400: error: ISO C++ forbids declaration of `FT_Face' with no type
ft_font.h:400: error: expected `;' before '*' token
ft_font.h:401: error: `FT_Size' does not name a type
ft_font.h:405: error: `FT_Error' does not name a type
ft_font.h:419: error: ISO C++ forbids declaration of `FT_Face' with no type
ft_font.h:419: error: expected `;' before '*' token
ft_font.h:420: error: expected `;' before "const"
ft_font.h:422: error: ISO C++ forbids declaration of `FT_Encoding' with no type
ft_font.h:422: error: expected `;' before '*' token
ft_font.h:424: error: `FT_GlyphSlot' does not name a type
ft_font.h:426: error: `FT_Error' does not name a type
ft_font.h:429: error: ISO C++ forbids declaration of `FT_Face' with no type
ft_font.h:429: error: expected `;' before '*' token
ft_font.h:432: error: ISO C++ forbids declaration of `FT_Encoding' with no type
ft_font.h:432: error: expected `;' before '*' token
ft_font.h:434: error: `FT_Error' does not name a type
ft_font.h:461: error: expected `)' before "glyph"
ft_font.h:516: error: expected `)' before "glyph"
ft_font.h:521: error: `FT_Error' does not name a type
ft_font.h:526: error: `FT_Error' does not name a type
ft_font.h:538: error: `FT_Encoding' does not name a type
ft_font.h:539: error: `FT_Encoding' has not been declared
ft_font.h:539: error: ISO C++ forbids declaration of `encoding' with no type
ft_font.h:543: error: `FT_Error' does not name a type
ft_font.h:545: error: `FT_Encoding' does not name a type
ft_font.h:546: error: `FT_Face' does not name a type
ft_font.h:549: error: `FT_Error' does not name a type
ft_font.h:561: error: `FT_Encoding' has not been declared
ft_font.h:561: error: ISO C++ forbids declaration of `encoding' with no type
ft_font.h:569: error: `FT_Error' does not name a type
ft_font.h:575: error: `FT_Error' does not name a type
ft_font.h:584: error: expected `)' before "glyph"
ft_font.h:610: error: `FT_Encoding' has not been declared
ft_font.h:610: error: ISO C++ forbids declaration of `encoding' with no type
ft_font.h:612: error: ISO C++ forbids declaration of `FT_Encoding' with no type
ft_font.h:612: error: expected `;' before '*' token
ft_font.h:628: error: `FT_Error' does not name a type
ft_font.h:635: error: `FT_Error' does not name a type
ft_font.h:688: error: expected `)' before "glyph"
make: *** [main.o] Error 1
Users browsing this forum: No registered users and 1 guest