openworld library

Classes

Actor
Procedures related to animated actors
BaseObject
This is the base class for all objects and includes sprites, models, actors, planes
Camera
All camera turning should be done here
ColorLib
Procedures related to color
Config
Loading and creating objects specified in config file or runtime Allow scene objects to be placed an oriented and is defined in a config file rather than hard coded Also includes poolobjects which allows things like vegetation where rather than define 1000 trees in a forest, define say 20 and have only the closest 20 appear near the camera Poolobjects can also be defined runtime rather than config file and is useful for defining crowds of actors
CustomTrigger
Class to allow creation of customer trigger for any object eg models, sprites, actors - eg a trigger when actor is attacked
DistanceTrigger
Class to allow creation of distance trigger for rooms, npcs, plants etc
Doorway
Keyboard
Functions for game control with keyboard
KeyboardCallback
KeyboardCallbacks
Light
Procedures related to light sources such as flickering and fading to different intensities
MapItem
A map item that holds a map image, two world positions and corresponding pixel positions on the image
Maps
Functions related to maps Allows placing of markers and showing the correct map
Math
Math functions that are useful for openworld
Mob
Mob procedures specifically for NPC's such as walking around, showing speech text for NPC
Model
Procedures related to mesh models
Ms3dAnimDef
One animation of an actor (config.xml ACTORANIMATION).
Ms3dGroup
Ms3dJoint
Ms3dKeys
Ms3dLoader
Ms3dMaterial
Ms3dModel
Ms3dSkeleton
Ms3dSkinner
Ms3dTerrain
MusicItem
Class for a single music item including the songs filename and chance of it being played
Musics
Functions related to playing music
Obstacle
Class allows run time obstacles to be placed in a game. Also includes a callback when an obstacle is hit by a player Allows a player to be stopped without relying on walls defined in terrain model
Obstacles
Persistence
Procedures related to storing persistent data
Plane
Procedures for creating planes including planes with text
PoolObject
Load a pool object specified in config.json poolsize is how many objects in the pool maxdistance is distance where ignore the object if too far away - make zero if no maxdistance name is the name of the object3d in the pool positions is a list of every position of the object - really should be more positions than poolsize otherwise no point
Portal
Class allows players to jump between areas It made up of a rectangle where if hit by player, takes them to a second define point It is useful for allowing players transition to different level eg a portal at the bottom of some stairs that takes them to the top of the stairs at a different level
Portals
Position
Position as specified in config.json
Room
Procedures related to rooms As a player moves around can enter a room which has a position with width and height Can set that indoors so it doesn't rain inside and also set the background sound of the room Can also set trigger so when enter a room certain things can happen
SmdFile
SmdNode
SmdTriangle
SmdVertex
Sound
functions for sound such as fading in and out
Space
Sprite
Procedures related to sprites such as text sprites
System
Status and procedures related to overall system
Texture
Functions for textures such as creating a text texture and lerping opacity of texture
Time
Procedures related to game time such as night, day, length of day
TouchTrigger
Class for a trigger when an object such as a model, plane, sprite or actor is touched
Updateables
Executes all updateables such a fire, water, smoke
VirtualJoystick
Functions for game control with virtual joystick for smartphones
Weather
Procedures related to weather such as wind, cloud, rain and fog
You
Functions and info related to the player

Enums

KeyboardCallbackType
Keyboardcallbacks allow callback for keyboard presses with conditions including distance and angle facing an object For example if a certain distance from a donkey to ride and facing direction the callback will be called if the key is pressed

Functions

ms3dAngleMatrix(Float32List a, Float32List m) → void
MathLib.AngleMatrix: Euler (x=roll, y=pitch, z=yaw) radians -> rotation.
ms3dAngleQuaternion(double ax, double ay, double az, Float64List q) → void
MathLib.AngleQuaternion. Output order x, y, z, w.
ms3dConcat(Float32List a, Float32List b, Float32List out) → void
MathLib.R_ConcatTransforms: out = in1 * in2 (3x4 affine).
ms3dQuaternionMatrix(Float64List q, Float32List m) → void
MathLib.QuaternionMatrix (rotation part only).
ms3dQuaternionSlerp(Float64List p, Float64List q, double t, Float64List qt) → void
MathLib.QuaternionSlerp (note: may negate q in place, like the Java).

Exceptions / Errors

Ms3dFormatException