User Tools

Site Tools


proton_entity

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
proton_entity [2010/10/26 14:16] sethproton_entity [2011/01/11 23:59] seth
Line 36: Line 36:
 If you take a look at Entity.h you'll see some functions but nothing about thinking/updating or drawing.  So what can an entity do? If you take a look at Entity.h you'll see some functions but nothing about thinking/updating or drawing.  So what can an entity do?
  
-Well, not much, alone.  It's fairly lightweight at about 200 bytes.+Well, not much, alone.  It's fairly lightweight at about 200 byte memory footprint.
  
 The power comes from Components.  Components can (but don't have to) render, think, and process input. The power comes from Components.  Components can (but don't have to) render, think, and process input.
Line 67: Line 67:
 {{:entity_1.png?|}} {{:entity_1.png?|}}
  
-Well, we see the logo there.  If you looked inside of CreateOverlayEntity, you'd see it creates an Entity, and adds a RenderOverlay component to it and sets some properties. (All of which are storied in either entity's VariantDB (like pos2d, color, scale2d, etc) or the components VariantDB if it is specific to the component. (properties like fileName, and framex, framey)+Well, we see the logo there.  If you looked inside of CreateOverlayEntity, you'd see it creates an Entity, and adds a RenderOverlay component to it and sets some properties. (All of which are stored in either entity's VariantDB (like pos2d, color, scale2d, etc) or the component'VariantDB if it is specific to the component. (properties like fileName, and framex, framey)
  
 Add a few more lines of code: Add a few more lines of code:
proton_entity.txt · Last modified: 2012/02/07 09:38 by aki