Users browsing this thread: 2 Guest(s)
Enribeaver
#17
I re-read my post and it seemed like i said that datas, although separate from the component, still belong to them? I meant that i would have something like this:

Component:
-TalkableComponent
Data:
-DialogData

Any component can access and alter the data. I could add some kind of security thing, but i don't need it right now.

-----
reply to your post:

For my components, i also have a acquire/release data along with an update or render method. The acquire/release methods get called whenever the component gets added to an entity, or data is added or removed from the entity. The methods simply notify the component to get any data it needs, instead of asking for it every frame. Components don't need to have an input/physics/renderer/collision components. They're searched for and taken from the entity if found.

For you're saving and loading, why don't you just serialize/deserialize the data. Nvm... i remembered that the IntermediateSerializer is for the full Xna Profile only. I can't remember if the binarySerializer or xmlSerializer are also, but you should would check em out. Oh yeah, i don't have any kind of saving yet. I think i'd just serialize the data that's needed to load them except for the graphics data.

I didn't have any collision optimization things added in before. It was just brute force with a few conditions of what can/can't collide with what. Recently i added in a quadtree.....and it didn't help at all. I think ima remove it and add in a broad phase collision detection in instead. Maybe sweep and prune. Theres no harm in whats being drawn right now, so i didn't optimize it yet.
Animations - MFGG TKO (scrapped) - tFR
[Image: QUmE6.gif]
"It feels that time is better spent on original creations" - Konjak
Focus on the performance, the idea, not the technical bits or details - Milt Kahl
Thanked by:


Messages In This Thread
Enribeaver - by recme - 08-17-2012, 09:03 PM
RE: [IN DEVELOPMENT] Enribeaver - by Virt - 08-17-2012, 09:10 PM
RE: Enribeaver - by Zadaben - 08-27-2012, 01:17 PM
RE: Enribeaver - by recme - 01-18-2013, 10:29 PM
RE: Enribeaver - by TheShyGuy - 01-18-2013, 10:41 PM
RE: Enribeaver - by Phaze - 01-19-2013, 11:11 AM
RE: Enribeaver - by recme - 01-19-2013, 11:15 AM
RE: Enribeaver - by TheShyGuy - 02-04-2013, 06:31 PM
RE: Enribeaver - by TheShyGuy - 02-10-2013, 09:42 PM
RE: Enribeaver - by Bombshell93 - 02-11-2013, 02:40 AM
RE: Enribeaver - by TheShyGuy - 02-11-2013, 08:34 AM
RE: Enribeaver - by Bombshell93 - 02-11-2013, 09:23 AM
RE: Enribeaver - by TheShyGuy - 02-11-2013, 06:23 PM
RE: Enribeaver - by Bombshell93 - 02-12-2013, 04:31 AM
RE: Enribeaver - by TheShyGuy - 02-12-2013, 08:20 AM
RE: Enribeaver - by Phaze - 02-12-2013, 01:03 PM
RE: Enribeaver - by TheShyGuy - 02-14-2013, 09:01 PM
RE: Enribeaver - by Bombshell93 - 02-15-2013, 06:44 PM
RE: Enribeaver - by TheShyGuy - 02-15-2013, 09:41 PM
RE: Enribeaver - by Bombshell93 - 02-16-2013, 05:29 AM
RE: Enribeaver - by TheShyGuy - 02-16-2013, 01:06 PM
RE: Enribeaver - by Bombshell93 - 02-16-2013, 02:52 PM
RE: Enribeaver - by TheShyGuy - 02-16-2013, 04:53 PM
EnriBeaver Game - by Zadaben - 08-27-2012, 02:03 AM
RE: EnriBeaver Game - by Kopaka - 08-27-2012, 04:33 AM
RE: EnriBeaver Game - by Goemar - 08-27-2012, 07:11 AM
RE: EnriBeaver Game - by Virt - 08-27-2012, 07:20 AM

Forum Jump: