Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Entity-Component System

Name: Anonymous 2013-07-14 15:04

okay /prog/. I am on the crossroads of destiny, I have only one choice for a game engine design pattern. Actually entity control pattern. Entity-Component System seems egin groski. Suggest me something /prog/, i have only chance  for a design pattern.

Name: Anonymous 2013-07-17 0:04

>>31
A b-tree underneath, I was talking more about a relational database schema, not how it may be implemented.

B-trees aren't needed much for games, don't need to support arbitrary insertions/deletions, most everything is pre-allocated. Just need fast searching and updating.

Name: Anonymous 2013-07-17 13:25

>>33
You don't really need "money_owned" or "inventory" parameters for Player character; but instead a purse with gold coins should be character's pocket, like any other physical object, unaffected by any of IDs.
I'm pretty sure that's the idea, you just need an ID to tie the components together, like >>40 kun says.

Name: Anonymous 2013-07-17 14:42

>>42
You don't need ID. Components should tie themselves automatically.

Of course if you simulate gravity, then after a planets have formed, they could be assigned entities to optimize physics, but it should be done in totally transparent way, so a meteor could break planet back into particle clouds with some attached thermodynamic simulation.

Name: Anonymous 2013-07-17 14:48

>>39
Jews are full of infinite lies, just like how the "real" numbers are full of non-computable numbers--numbers that don't actually exist, nothing more than lies.

Of course a stupid non-Jewish russian would never understand pure mathematics.

Shalom indeed, goyim.

Name: Anonymous 2013-07-17 14:56

>>44
goyim
goyim
im
Fucking stupid Gentile trying to look like a God's chosen.

Name: Anonymous 2013-07-17 15:12

>>43
well actually everything a component provides is just some data. I mean if you will make the entity responsible for gravity, you just  provide him a gravity value which is added with a component. the actual thing that creates the gravity is named 'system'. for example gravity system, checks all entities which have gravity component then applies the physics check according to the component's value.

Name: Anonymous 2013-07-17 15:22

>>46
The problem with that is that calculating your environment based on loop ticks makes your game move at the speed of childbirth.
For proof, see: Second Life

Name: Anonymous 2013-07-17 15:28

>>47

but why, you just have one iteration in the world object, that iterates through all entities and checks if there is appropriate system to update the entity. how can it be costly ?

Name: Anonymous 2013-07-17 15:28

hi every1 im new!!!!!!!

holds up spork my name is schlomo goldbergsteinbaum but u can call me t3h v4mP1R3 oF sh3Kels!!!!!!!! LEL... as u can see im very shalom!!!! thats why i came here, 2 meet shalom ppl like me _... im 13 years old (im mature 4 my age tho!!) i like 2 watch invader zion w/ my boyfreind (im bi if u dont like it deal w/it) its our favorite tv show!!! bcuz its SOOOO shalom!!!! hes shalom 2 of course but i want 2 meet more shalom ppl =) like they say the more the merrier!!!! LEL... neways i hope 2 make alot of shekels here so give me lots of commentses!!!!
OY VEYYYYYYYYY!!!!!!!!!!!!!!!! <--- me bein shalom again _^ hehe...toodles!!!!!

love and waffles,

t3h v4mP1R3 oF sh3Kels

Name: Anonymous 2013-07-17 16:23

>>45
God
Stupid fucking goy trying to look like one of G d's chosen.

Name: Anonymous 2013-07-17 16:50

>>50
hi every1 im JEW!!!!!!!

holds up spork my name is schlomo goldbergsteinbaum but u can call me t3h v4mP1R3 oF sh3Kels!!!!!!!! LEL... as u can see im very shalom!!!! thats why i came here, 2 meet shalom ppl like me _... im 13 years old (im mature 4 my age tho!!) i like 2 watch invader zion w/ my boyfreind (im bi if u dont like it deal w/it) its our favorite tv show!!! bcuz its SOOOO shalom!!!! hes shalom 2 of course but i want 2 meet more shalom ppl =) like they say the more the merrier!!!! LEL... neways i hope 2 make alot of shekels here so give me lots of commentses!!!!
OY VEYYYYYYYYY!!!!!!!!!!!!!!!! <--- me bein shalom again _^ hehe...toodles!!!!!

love and waffles,

t3h v4mP1R3 oF sh3Kels

Name: Anonymous 2013-07-17 16:54

>>51
you aint real. true godchosen are all smart.

Name: Anonymous 2013-07-17 19:47

>>51

invader zion

shalom!

Name: Anonymous 2013-07-18 2:17

shalım

Name: Anonymous 2013-07-18 14:10

check my entities

Name: Anonymous 2013-07-24 2:53

es spürdo

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List