GameData - fowlmouth/roids GitHub Wiki

Emitters

Emitters either create a single entity or they fire multiple sub-emitters.

  • delay - cooldown time after firing
  • inherit-velocity - (0.0 .. 1.0) percentage of velocity inherited from the firing vehicle
  • muzzle-velocity - velocity the projectile has when it leaves the muzzle
  • angle - angle offset
  • energy-cost - guess.
  • fire-sound - sound played

Rooms

Rooms are where entities live.

  • bounds - world boundaries. Can be in the form of a list of points, or {"shape":"circle","radius":1000} or {"width":1000,"height":1000}
  • playable - list of playable entities
  • objects - list of "things" in the room (entities to populate the room with when it's created)

JSON Functions

There are a few functions that can be called depending on what kind of functions you want to call. The kind of functions you want to call depends on the kind of things you want to happen, in terms of functionality. Functionally, they all function in ways that enable functions to function.

Float functions

  • "degrees" (float deg) - radians are used everywhere, this converts degrees to radians
  • "milliseconds" (int milliseconds) - all time is stored in seconds. The result is milliseconds/1000
  • "seconds" (float seconds) - result is the parameter passed in
  • "minutes" (float minutes) - result is minutes * 60
  • "infinity" () - returns infinity
  • "random" () - returns random ( 0 .. 1.0 )
  • "random" (float max) - returns random up to max

Boolean functions

  • "<", ">", "<=", ">=", "==", "!=", "not", "and", "or"

Vector functions

  • "direction" (float radians) -
  • "direction-degrees" (float degrees) - gives a directional vector from degrees
  • "mul_f" (vector a, float b) - multiplies the vector a by the scalar magnitude b
⚠️ **GitHub.com Fallback** ⚠️