How do your components communicate?
Moderator: Coders of Rage
- epicasian
- 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?
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?
- Falco Girgis
- 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?
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
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