How do your components communicate?

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
User avatar
epicasian
Chaos Rift Junior
Chaos Rift Junior
Posts: 232
Joined: Mon Feb 22, 2010 10:32 pm
Current Project: Gigazilla Engine
Favorite Gaming Platforms: Dreamcast, SNES, PS2, PC
Programming Language of Choice: C/++
Location: WoFo, KY

How do your components communicate?

Post by epicasian »

I'm in the process of building a 2D game engine. I now need to figure out how the components are supposed to communicate. I want to settle for a messaging system but am not entirely sure. How are you implementing component communication?
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Re: How do your components communicate?

Post by Falco Girgis »

I absolutely hate messaging systems for this kind of ordeal.

A game is a real-time application in which many, MANY components/subsystems have direct dependencies upon one-another. Encapsulating pretty little messages into strings that are sent back and forth hundreds and hundreds of times per frame is waaay too pricey for my liking.

There is a really good topic on components here: http://elysianshadows.com/phpBB3/viewto ... art=999999
Post Reply