You are browsing as a guest. Sign up (or log in) to start making projects!

2h 44m 5s logged

I’ve got a good basis for the Engine integration library for the ObSL Scripting Language.

In the attached video, I’m changing the player’s size using a ping-pong function (?forgot the name…), fully through an ObSL script (ScriptComponent) attached to the “Player” entity.

The language now has support for the following through the EngineLib:

Entity Objects

  • Find
  • GetName
  • SetName
  • GetComponent

Components

Transform

  • SetPosition

  • SetRotation

  • SetScale

  • GetPosition

  • GetRotation

  • GetScale

    (uses ObSL arrays)

Point Light

  • SetColor (Vec3)
  • SetIntensity
  • SetRadius

MovementComponent

  • GetIsMoving
  • SetIsMoving
  • SetTimePerStep

MapStateComponent

  • GetHasSelection
  • GetSelectedHex
  • GetPathToHex

DirectionalTextureComponent

  • SetIndex
  • GetIndex

PlayerInputComponent is still w.i.p.

Tag Components currently don’t have any methods since they are only used as tags.

Planned

I’m planning to keep expanding the EngineLib api with more methods, such as:

  • Has(component)
  • AddComponent
  • RemoveComponent(name or ref)
  • Destroy(EntityID)
  • GetEntityID(entity object ref)
0
17

Comments 0

No comments yet. Be the first!