Search found 594 matches

by MrDeathNote
Wed May 11, 2011 8:40 am
Forum: General/Off-Topic
Topic: Question about college major
Replies: 18
Views: 4121

Re: Question about college major

AND STILL GET PAID AS IF YOU WERE AT WORK. Dayum, that's nice. I wish my masters was being funded like that, I have a government scholarship and a scholarship from a local software house but it would be much better to get paid like that. I'm not complaining or anything but I'd make a LOT more money...
by MrDeathNote
Wed May 11, 2011 5:19 am
Forum: Programming Discussion
Topic: [SOLVED] OOP X not declared! :@
Replies: 57
Views: 6165

Re: OOP X not declared! :@

Unless the way the variables are handled are compiler specific (or even system specific?), it gives out "main.obj : error LNK2005: "bool quit" (?quit@@3_NA) already defined in booltest.obj" under Visual Studio 2010, yet simply changing the bool in main.cpp to a type of int will ...
by MrDeathNote
Wed May 11, 2011 4:03 am
Forum: Game Development
Topic: Tiling with SDL/OpenGL
Replies: 9
Views: 2831

Re: Tiling with SDL/OpenGL

If your tiles are coming from a tile sheet then you can just check if the texture is already bound before binding a new one. That's the approach i'm using on the PSP and it improved the framerate from about 40fps to 60fps. It's actually limited to 60fps so who knows how big the actual increase is.
by MrDeathNote
Wed May 11, 2011 3:08 am
Forum: Programming Discussion
Topic: [SOLVED] OOP X not declared! :@
Replies: 57
Views: 6165

Re: OOP X not declared! :@

For reference: main.cpp bool quit; int main() { return 0; } booltest.cpp bool quit; ISSUE, Definition of same name and type Emmm this wouldn't cause a problem unless main included booltest.cpp which I hope you would never do. this is also an issue: main.cpp #include "booltest.h" int main(...
by MrDeathNote
Tue May 10, 2011 10:13 am
Forum: Programming Discussion
Topic: [SOLVED] OOP X not declared! :@
Replies: 57
Views: 6165

Re: OOP X not declared! :@

It says that "bool quit" is already defined in AI.obj, which basically means that this globals.h is being included in multiple files, thus its trying to define an already defined global variable. And its first come first serve. It's not because it's included in multiple files. That wouldn...
by MrDeathNote
Tue May 10, 2011 9:06 am
Forum: Programming Discussion
Topic: [SOLVED] OOP X not declared! :@
Replies: 57
Views: 6165

Re: OOP X not declared! :@

Nah, the issue is that more than one object provides a definition for certain functions, creating weird issues. You can probably solve this by putting "inline" in front of global function declarations that are defined in the header. I think we were both wrong Ginto8 (although I still don'...
by MrDeathNote
Tue May 10, 2011 3:47 am
Forum: Programming Discussion
Topic: [SOLVED] OOP X not declared! :@
Replies: 57
Views: 6165

Re: OOP X not declared! :@

At first glance I would say remove your forward declarations(your class declarations). I would imagine you're includes would have the same declarations.
by MrDeathNote
Mon May 09, 2011 9:08 am
Forum: Programming Discussion
Topic: [SOLVED] OOP X not declared! :@
Replies: 57
Views: 6165

Re: OOP X not declared! :@

Gotta agree with Falco. C++ is NOT C#. C++ is NOT Java. You're ignoring pretty much every C++ coding standard there is. Those aren't conventions, they are standards. The number of times you have been told not the include cpp files, not to delete a pointer to this, not to put #ifndef guards around yo...
by MrDeathNote
Thu May 05, 2011 2:56 am
Forum: Game Development
Topic: Kinetik's Asteroids Remake
Replies: 5
Views: 1721

Re: Kinetik's Asteroids Remake

Haha, nice job dude.
by MrDeathNote
Wed May 04, 2011 3:44 am
Forum: Programming Discussion
Topic: No Java 0.0
Replies: 7
Views: 865

Re: No Java 0.0

Are you using a 32bit or 64 bit version of eclipse. Sometimes the 32bit eclipse cannot detect 64 bit JREs and JDKs. Try downloading the 64bit version of eclipse and if that doesn't work try pointing eclipse to your JRE manually by: Window->Preferences->Java->Installed JREs Then add in your own JRE a...
by MrDeathNote
Mon May 02, 2011 6:56 am
Forum: Game Development
Topic: C++ SDL TileMap System ERRORS! HELP! :P
Replies: 18
Views: 4398

Re: C++ SDL TileMap System ERRORS! HELP! :P

I would suggest writing out that string to your debug file to see what its actually trying to load. Also try to load the file explicitly. And use the debugger.
by MrDeathNote
Sun May 01, 2011 3:59 pm
Forum: Game Development
Topic: C++ SDL TileMap System ERRORS! HELP! :P
Replies: 18
Views: 4398

Re: C++ SDL TileMap System ERRORS! HELP! :P

You may want to update the code you posted so we have something to work on.
by MrDeathNote
Sun May 01, 2011 6:36 am
Forum: Game Development
Topic: C++ SDL TileMap System ERRORS! HELP! :P
Replies: 18
Views: 4398

Re: C++ SDL TileMap System ERRORS! HELP! :P

Ehh tileFile() is never defined:

Code: Select all

void tileFile();

Code: Select all

void Tile::TileFile(int id){
   sprite->file="Tiles\\"+id+".bmp";
}
These are not even remotely the same function.
by MrDeathNote
Sun May 01, 2011 5:33 am
Forum: Game Development
Topic: C++ SDL TileMap System ERRORS! HELP! :P
Replies: 18
Views: 4398

Re: C++ SDL TileMap System ERRORS! HELP! :P

You still need to make tiles an array of pointers. AND NEVER DELETE THIS, it's a very bad idea. I have a few other problems with this code. You don't need to put ifdef guards around your cpp files. You should never include a .cpp file. You Map destructor should call delete[] on tiles since its an ar...
by MrDeathNote
Sun May 01, 2011 4:41 am
Forum: Game Development
Topic: C++ SDL TileMap System ERRORS! HELP! :P
Replies: 18
Views: 4398

Re: C++ SDL TileMap System ERRORS! HELP! :P

In Map.h: Tile tiles[TILE_TOTAL]; trys to call a no-arg constructor for tiles, since you don't have a no-arg constructor for tiles you'll get an error. You need an array of tile pointers not actual tile objects since you're calling new on them in the Map constructor. This can't be the entire code fo...