Commit graph

7 commits

Author SHA1 Message Date
Erik Ogenvik
9c3868a495 Improved validity checks.
We've padded the search area a bit, to handle those entities created on
the fringe. We also now check if the bbox is valid before accessing the
radius.
2015-05-02 00:22:19 +02:00
Erik Ogenvik
79d6bda7b2 Properly remove properties with delegates. 2014-08-26 21:09:02 +02:00
Erik Ogenvik
83782764c3 Make extra sure a valid position is used. 2013-11-24 00:58:43 +01:00
Erik Ogenvik
b1c1bbebc9 Dial back the logging a bit. 2013-11-21 21:36:58 +01:00
Erik Ogenvik
db2accfc45 Added "internal" property.
If set to 1, entities will be spawned as children of the entity to which
the property belong.
2013-10-11 16:42:53 +02:00
Erik Ogenvik
e6ff0acfb6 Extended spawner with entity and interval.
"entity" allows one to better specify how the new entity should be
created. It's optional; if omitted a default entity of the type in "m_type" is
created.
"interval" allows for specification of the interval between ticks. It's
optional.
2013-10-10 23:32:37 +02:00
Erik Ogenvik
419b4d0342 Added "spawner" property.
When an entity has this property it acts a an spawner entity. At an
interval it checks if there are enough of the specified entities
available, and if not it spawn new ones. This allows for some better
gameplay mechanics.
2013-10-03 13:42:54 +02:00