Search found 160 matches
- Tue Jan 11, 2011 9:57 am
- Forum: Programming Discussion
- Topic: A question about classes (C++) [SOLVED]
- Replies: 5
- Views: 599
Re: A question about classes (C++)
Have your Game class hold a Player object, and have a setPlayer() method in the Game class. Game class class Game { public: //Whatever code setPlayer(Player player); private: Player _player; } So now all you have to do is create a player object in your main.cpp or wherever, and than call the setPlay...
- Tue Dec 28, 2010 7:48 am
- Forum: Programming Discussion
- Topic: Problems Encountered While Developing a Game Engine
- Replies: 27
- Views: 2692
Re: Problems Encountered While Developing a Game Engine
I tried to forward declare the classes, but now my game engine doesn't compile. I have an Engine.h that includes System.h that includes Entity.h. When I try to forward declare both Entity in System.h and System in Engine.h, I get this error: c:\programming\c++\splinter games\splinter sdk\splintereng...
- Mon Dec 27, 2010 6:30 pm
- Forum: Programming Discussion
- Topic: Problems Encountered While Developing a Game Engine
- Replies: 27
- Views: 2692
Re: Problems Encountered While Developing a Game Engine
I've decided to rename this thread so that if anybody has issues with designing a game engine, they can come to this thread to ask questions. I'm going to ask the first question. As you all know, I've been developing a game engine for the past few weeks and have been trying to implement a Component ...
- Mon Dec 20, 2010 5:24 am
- Forum: Programming Discussion
- Topic: Problems Encountered While Developing a Game Engine
- Replies: 27
- Views: 2692
Re: Game Engine Troubles
That code works, but I also don't know if that's the best solution.
- Sun Dec 19, 2010 11:04 am
- Forum: Programming Discussion
- Topic: Problems Encountered While Developing a Game Engine
- Replies: 27
- Views: 2692
Re: Game Engine Troubles
I have another problem with my game engine. I'm trying to implement a component system, but I can't get it to work. I have a base component class that's empty and a RenderComponent class that inherits from it and adds a char* called text. When I try to change the value of the char* I get this error:...
- Thu Dec 09, 2010 1:52 pm
- Forum: Programming Discussion
- Topic: Problems Encountered While Developing a Game Engine
- Replies: 27
- Views: 2692
Re: Game Engine Troubles
Well, I got everything to compile and link fine, the only problem is that I have to add SplinterEngine.lib SDL.lib SDLmain.lib SDL_image.lib SDL_mixer.lib SDL_ttf.lib to my linker settings and I have to set the subsystem to windows in my test game. Is there any way to get around having to do that a...
- Wed Dec 08, 2010 5:00 am
- Forum: Programming Discussion
- Topic: Problems Encountered While Developing a Game Engine
- Replies: 27
- Views: 2692
Re: Game Engine Troubles
Well, I got everything to compile and link fine, the only problem is that I have to add SplinterEngine.lib SDL.lib SDLmain.lib SDL_image.lib SDL_mixer.lib SDL_ttf.lib to my linker settings and I have to set the subsystem to windows in my test game. Is there any way to get around having to do that a...
- Tue Dec 07, 2010 6:33 pm
- Forum: Programming Discussion
- Topic: Problems Encountered While Developing a Game Engine
- Replies: 27
- Views: 2692
Re: Game Engine Troubles
Well, I got everything to compile and link fine, the only problem is that I have to add SplinterEngine.lib SDL.lib SDLmain.lib SDL_image.lib SDL_mixer.lib SDL_ttf.lib to my linker settings and I have to set the subsystem to windows in my test game. Is there any way to get around having to do that an...
- Mon Dec 06, 2010 2:42 pm
- Forum: Programming Discussion
- Topic: Problems Encountered While Developing a Game Engine
- Replies: 27
- Views: 2692
Re: Game Engine Troubles
I've uploaded a .rar of both my engine and my test game to rapidshare. The folder is 7.7mb, so it might be a little slow to download.
- Sun Dec 05, 2010 7:14 am
- Forum: Programming Discussion
- Topic: Problems Encountered While Developing a Game Engine
- Replies: 27
- Views: 2692
Re: Game Engine Troubles
the main problem is that I link SDLmain.lib in my engine and everything compiles/links fine, but when I test out my engine, I get this error ... It compiles and links fine until you "test out" the engine... Then it doesn't link right. What do you mean by testing it out? If you get a linke...
- Sat Dec 04, 2010 8:05 pm
- Forum: Programming Discussion
- Topic: Problems Encountered While Developing a Game Engine
- Replies: 27
- Views: 2692
Re: Game Engine Troubles
I can live with the user having to return a value in main(), the main problem is that I link SDLmain.lib in my engine and everything compiles/links fine, but when I test out my engine, I get this error: LINK : fatal error LNK1561: entry point must be defined This is my main.cpp: #include <cstdio> #...
- Sat Dec 04, 2010 5:58 pm
- Forum: Programming Discussion
- Topic: Problems Encountered While Developing a Game Engine
- Replies: 27
- Views: 2692
Re: Game Engine Troubles
I can live with the user having to return a value in main(), the main problem is that I link SDLmain.lib in my engine and everything compiles/links fine, but when I test out my engine, I get this error: LINK : fatal error LNK1561: entry point must be defined This is my main.cpp: #include <cstdio> #i...
- Sat Dec 04, 2010 1:35 pm
- Forum: Programming Discussion
- Topic: Problems Encountered While Developing a Game Engine
- Replies: 27
- Views: 2692
Problems Encountered While Developing a Game Engine
I have been working on a game engine and have come across a few problems. Problem #1 In order to be able to use the regular main() function on windows with SDL, you need to use SDLmain.lib. The problem is, I want my engine to be as simple to use as possible, which means that I only want the user to ...
- Wed Aug 11, 2010 5:10 pm
- Forum: General/Off-Topic
- Topic: Movies with autistic lead characters
- Replies: 22
- Views: 2709
Re: Movies with autistic lead characters
There's one that I really want to see, called Adam. From the bits and pieces of it that I've seen, it represents Asperger's Syndrome extremely good. I should know, having lived with Asperger's for 13 years.
- Tue Aug 03, 2010 10:46 am
- Forum: Programming Discussion
- Topic: The Word Game, C++ edition!
- Replies: 15
- Views: 1721
Re: The Word Game, C++ edition!
#include <iostream> #include <ctype.h> //tolower() anyone? ;) lol hellz yeah int main() { bool exit=false; int i = 100; while (exit == false) { std::cout << "Welcome to the Elysian Shadows Word Game!\n\n"; std::cout << "Let's go dawg! Ready? (Enter Y or N)" << std::endl; char an...