Erik Ogenvik
86318d5f6e
Make database persistence standard.
...
We now use sqlite to persist the world by default.
Postgresql support is provided as an option.
2018-05-19 23:33:58 +02:00
Erik Ogenvik
3ad6d2ad8d
Move all rules to "share" directory.
...
And load rules from the "var" directory if there are any, allowing for
over riding.
2018-05-16 11:51:48 +02:00
Erik Ogenvik
d7960b3100
Improve on how updated types are handled.
...
By installing and changing some types, other types might update. This is
now handled.
2018-05-08 14:32:02 +02:00
Erik Ogenvik
b72aa95c94
Removed obsolete files.
...
We want to control behaviour through properties and move away from using
hierarchical structure.
2018-05-08 14:31:48 +02:00
Erik Ogenvik
cad9733413
Make trees not roll as much.
2018-05-01 14:21:35 +02:00
Erik Ogenvik
a6195c1ac6
Made all game entities definable through xml.
...
This makes it easier to alter properties in real time.
2018-04-29 11:58:35 +02:00
Erik Ogenvik
144bfb7e87
Fixed incorrect type declaration.
2018-04-22 14:07:48 +02:00
Erik Ogenvik
b24cfe5e5a
Make humans move a bit quicker.
...
So as to make traversal not too boring.
2018-04-21 20:46:47 +02:00
Erik Ogenvik
197c373402
Moved to more correct place.
2018-04-21 10:02:08 +02:00
Erik Ogenvik
e4e3e204a0
Fish swim in water.
2018-04-19 15:37:09 +02:00
Erik Ogenvik
f582e0613b
Allow scaling axis to be set using "scaler" attr.
2018-04-18 20:19:31 +02:00
Erik Ogenvik
f09675cec6
Use "planted" for floating entities.
...
Entities that are "planted" on bodies of water are floating.
This does away with the "floating" mode.
To mark that entities should by default be floating when placed in
water the boolean property "floats" has been added.
2018-03-24 17:06:02 +01:00
Erik Ogenvik
380b4e21d9
Added rolling and spinning friction.
2018-03-12 18:15:20 +01:00
Erik Ogenvik
065505b07e
Added compound shapes.
...
These are useful when you want to represent concave shapes with more
fidelity (since they otherwise would be represented by a convex hull
when on "free" mode).
2018-03-07 15:22:13 +01:00
Erik Ogenvik
d0585e9eb8
Enabled oceans and lakes.
...
Through the "water_body" property. An entity which has this is a water
body. If there's a bbox the entity is a lake (bounded), otherwise it's
an ocean (infinite bounds).
2018-02-28 09:34:05 +01:00
Erik Ogenvik
264fc7294a
Update animals.
2018-02-23 14:16:24 +01:00
Erik Ogenvik
b2799db1f2
Only update bbox from geometry if none set.
2018-02-22 19:34:08 +01:00
Erik Ogenvik
6c2c33a6be
Added more entities.
2018-02-21 14:37:47 +01:00
Erik Ogenvik
c19576d694
Added property for jumping, "speed-jump".
...
Entities without it cannot jump.
2018-02-20 23:08:14 +01:00
Erik Ogenvik
2bbbad4c58
Restructure and add "present" properties.
...
Also make sure that the correct geometry is used whenever possible.
2018-02-20 22:26:27 +01:00
Erik Ogenvik
9bc54bca52
Reorganize and add "present-" properties.
...
The ambition is to have "present-" properties for all types.
2018-02-15 12:39:34 +01:00
Erik Ogenvik
ca2abb94b5
Refactor how movement is handled and sent.
...
We've introduced the properties "speed-ground", "speed-water" and
"speed-flight" which specifies the top speed in m/s for each medium.
The "propel" attribute is now normalized, since it's multiplied with the
applicable top speed (depending on the medium, although currently we
only use the ground speed, TODO).
2018-02-11 23:22:20 +01:00
Erik Ogenvik
934fa8db88
Use correct parent type.
2018-02-08 21:47:22 +01:00
Erik Ogenvik
91790df31c
Added some more assets.
2018-02-06 13:45:11 +01:00
Erik Ogenvik
6ea1fb6ffe
Sync types with media.
2018-02-06 13:45:11 +01:00
Erik Ogenvik
d57512fff8
Fixed parent of don_jon.
2018-02-06 13:45:11 +01:00
Erik Ogenvik
3f8d39047e
Update bbox from the mesh.
...
When a mesh is used for geometry, a bbox should not be specified as
that's inferred from the mesh.
2018-02-06 13:45:11 +01:00
Erik Ogenvik
e6315e143d
Use assets for geometry.
2018-02-06 13:45:11 +01:00
Erik Ogenvik
67b907bee3
Declare asset geometry on the "geometry" property.
...
I.e. don't use the GeometryFile property.
2018-02-06 13:45:11 +01:00
Erik Ogenvik
67549fc362
Added geometry file property.
...
The mesh specified in the property will be read and a "geometry" mesh
property installed on the type onto which the property is installed.
2018-02-06 13:45:11 +01:00
Erik Ogenvik
e856e82700
Expose pig geometry.
2018-02-06 13:45:10 +01:00
Erik Ogenvik
99640d26aa
Use a left hand coord system.
2018-02-06 13:45:10 +01:00
Erik Ogenvik
aa4a536ffc
Only use "deeds" ruleset.
...
The other have bitrotted and are not usable.
2017-08-05 17:16:52 +02:00
Erik Ogenvik
c323b078aa
Install into unversioned doc directory.
...
As this is preferred on most distros.
2017-08-01 23:36:27 +02:00
Erik Ogenvik
0286bcd47d
Replace "parents" with "parent".
2017-07-24 15:05:18 +02:00
Erik Ogenvik
5f21daffa2
Use correct value type.
2017-05-28 14:26:26 +02:00
Erik Ogenvik
737005b624
Added step-factor to control stepping.
...
It's a float property which determines how high the entity can step,
relative to its height.
2017-03-24 17:19:10 +01:00
Erik Ogenvik
7c9f0da03a
Prevent mobiles from slipping on slopes.
...
Any mobile should manage to cling onto slopes.
2017-03-16 21:32:05 +01:00
Erik Ogenvik
e8a17d3673
Sync more buildings with 3d meshes.
2017-01-02 00:35:09 +01:00
Erik Ogenvik
1e6611fd58
Remove autotools.
2016-12-22 14:39:37 +01:00
Erik Ogenvik
98c7eb66c8
Convert to cmake.
2016-12-22 14:39:36 +01:00
Erik Ogenvik
5db33e15ca
Provide meshes for some buildings.
2016-12-15 18:27:42 +01:00
Erik Ogenvik
d8a2b59ba0
Provide mesh geometry for some types.
2016-12-15 18:27:42 +01:00
Erik Ogenvik
c025cee692
Added a max size property.
...
When scaling plants, they are scaled using their bbox if they have a
density. The "maxsize" property limits their max size.
2016-12-15 18:27:42 +01:00
Erik Ogenvik
fd34c235e4
Remove "transforms" and "modespec" property.
...
These properties didn't work out when we moved to a physics based world.
Instead we've introduced the properties "planted-offset" and "planted-scaled-offset".
These properties takes a float and specified vertical offset for planted entities.
Likewise with "planted-rotation" which specifies a rotation applied for planted entities.
"active-rotation" keeps track of any applied rotation.
2016-12-15 18:27:42 +01:00
Erik Ogenvik
6a43956404
Provide free moving apple archetype.
2016-12-15 18:27:42 +01:00
Erik Ogenvik
4f496cd9dc
Make apples round.
2016-12-15 18:27:42 +01:00
Erik Ogenvik
a37a863d28
Fixed visibility.
2016-12-15 18:27:42 +01:00
Erik Ogenvik
da4477dc01
Use horizontal capsule for pigs.
2016-12-15 18:27:42 +01:00
Erik Ogenvik
596ffad815
Added properties for geometry and angular factor.
...
For now we'll only support a limited set of geometry shapes.
2016-12-15 18:27:42 +01:00