Search found 767 matches
- Tue May 31, 2011 9:00 am
- Forum: Programming Discussion
- Topic: Component Systems (formerly: Component Oriented Programming)
- Replies: 70
- Views: 9462
Re: Component Systems (formerly: Component Oriented Programm
@EccentricDuck - Hmm, I didn't quite run into that conclusion when I was reading articles. It seemed like everyone did have functionality within components, but for certain reasons that I don't really remember, that was where the main complaints against them came. So that made me think about how I h...
- Mon May 30, 2011 10:51 pm
- Forum: Programming Discussion
- Topic: Component Systems (formerly: Component Oriented Programming)
- Replies: 70
- Views: 9462
Re: Component Systems (formerly: Component Oriented Programm
@Falco - Yeah, today I thought about it again, and I was thinking about Scripts as a main argument for putting the OnUpdate function back into the base class. But I had already planned to have some sort of ScriptingSystem to manage any component that has a script, so then again I find that component...
- Mon May 30, 2011 4:51 pm
- Forum: Programming Discussion
- Topic: Component Systems (formerly: Component Oriented Programming)
- Replies: 70
- Views: 9462
Re: Component Systems (New Question)
Well, I thought it'd be a waste to start an entire new topic, when my question pertains to this topic. Anyways, I started programming a simple Component Entity System, just so that I could see how I like it. Well, after getting through a bit of it, I my base Component class had a single pure virtual...
- Mon May 30, 2011 3:15 pm
- Forum: Programming Discussion
- Topic: Using Templates for Game Object Inheritance
- Replies: 5
- Views: 1048
Re: Using Templates for Game Object Inheritance
Im not sure if I'm correct, but it seems like a way to pick and choose your super classes via templates. Is this right? Yeah, pretty much. I really enjoyed reading it, and after a few link jumps, and reading through other opinions on different ways to style objects, I'm content with the way I have ...
- Fri May 27, 2011 11:56 pm
- Forum: General/Off-Topic
- Topic: Soo... guess who just got their degree.
- Replies: 23
- Views: 4215
Re: Soo... guess who just got their degree.
Congratulations :D!
- Sat May 21, 2011 10:52 am
- Forum: General/Off-Topic
- Topic: When did your journey with programming start and why?
- Replies: 38
- Views: 8513
Re: When did your journey with programming start and why?
Well, for a large part of my life, I've been interested in math and computers. I was always the top of my class in math, and I always knew more about computers in general than most people within my school. Around my 8th grade year, I stumbled upon a video of a Super Smash Bros DS homebrew. A few lin...
- Wed May 18, 2011 4:48 pm
- Forum: Programming Discussion
- Topic: [SOLVED]Deleting Objects
- Replies: 9
- Views: 835
Re: Deleting Objects
Adding to what Ginto said, when you are adding entities to the vector, it's also a good idea to loop through them, and check to see if there's a NULL pointer, if so, assign the value of your entity pointer to that NULL pointer. That way you don't always have to reallocate the vector when you add an...
- Wed May 18, 2011 4:37 pm
- Forum: Programming Discussion
- Topic: [SOLVED]Deleting Objects
- Replies: 9
- Views: 835
Re: Deleting Objects
Adding to what Ginto said, when you are adding entities to the vector, it's also a good idea to loop through them, and check to see if there's a NULL pointer, if so, assign the value of your entity pointer to that NULL pointer. That way you don't always have to reallocate the vector when you add an ...
- Thu May 12, 2011 4:20 pm
- Forum: Game Development
- Topic: Tiling with SDL/OpenGL
- Replies: 9
- Views: 2831
Re: Tiling with SDL/OpenGL
I remember saying something about this in a previous thread a while back... Now note, I've never actually tried this myself, but I would think it should work (I haven't done much with OGL, been using SFML). But anyways, have a function that instead of rendering, stores each "tile" in an ad...
- Wed Apr 27, 2011 11:38 pm
- Forum: Programming Discussion
- Topic: Is it even necessary?
- Replies: 11
- Views: 1171
Re: Is it even necessary?
From my understanding, it does have an impact on compile time... The inclusion of a header takes place before the code is actually compiled and (from what I understand) more or less "copies and pastes" the header into whatever file. So if you define your functions in there, you'll have tho...
- Sun Apr 24, 2011 10:08 am
- Forum: Programming Discussion
- Topic: C++ O.O.P HELP NEEDED!
- Replies: 9
- Views: 871
Re: C++ O.O.P HELP NEEDED!
Your header guards aren't right... They should be like:
The define shouldn't come after the class.
Code: Select all
#ifndef CLASS_NAME
#define CLASS_NAME
//class....
#endif
- Sat Apr 02, 2011 10:27 am
- Forum: Game Development
- Topic: The 6 Indie Game Development Mistakes
- Replies: 9
- Views: 2040
Re: The 6 Indie Game Development Mistakes
Well, I think 4 of those 6 can be very easily applied to noncommercial development: "I'm going to make an RPG with 3,000 enemy types, real-time combat, and a first-person shooter mode. And dancing, lots of dancing." "I've got my design in my head, and now I just have to make it."...
- Sun Mar 27, 2011 9:18 pm
- Forum: Programming Discussion
- Topic: Web Dev'
- Replies: 14
- Views: 1320
Re: Web Dev'
Out of curiosity, what's the point in making those web apps?
- Sun Mar 27, 2011 6:06 pm
- Forum: Programming Discussion
- Topic: Card game engine?
- Replies: 11
- Views: 1202
Re: Card game engine?
If you're using C++, I'd recommend a map
- Wed Mar 02, 2011 11:19 pm
- Forum: General/Off-Topic
- Topic: Math Field Day...
- Replies: 3
- Views: 863
Re: Math Field Day...
Well, just looking at a few things, A = 1 + sqrt(3). Why? Well, if you've taken geometry, the height of an equilateral triangle with base b is b/2*sqrt(3). With 4 equilateral triangles with bases of 1, the final total area comes out to sqrt(3). 1 is the area of the square. So, fitting it into your ...