AutomaticKingdom icon indicating copy to clipboard operation
AutomaticKingdom copied to clipboard

Implement WorldObject

Open ADefWebserver opened this issue 5 years ago • 0 comments
trafficstars

Implement the Initial WorldObject

image

What is it: WorldObject is the object passed to the AnimationLoop method and returned by the AnimationLoop method. The AnimationLoop method is called once each cycle in the Game Loop, (initially usually 1-3 times a second).

Long Range Plan: The WorldObject will be expandable, as needed, to have unlimited properties (methods?) (both incoming and outgoing)

Initial Definition

WorldObject

  • [ ] CurrentWorld (World) - Describes what is around the current user
  • [ ] CurrentLocation (WorldLocation) - Describes where the current user is in the CurrentWorld
  • [ ] Response (String) - Describes the output of the AnimationLoop. The Game engine will animate the user's character to show this response and to also show the result.

World

  • [ ] WorldLocations (List of WorldLocation objects) - A 100x100 grid around the current user

WorldLocation

  • [ ] Latitude (integer)
  • [ ] Longitude (integer)
  • [ ] WorldObjects (List of WorldObject objects) - World Objects occupying this location

WorldObject

  • [ ] ObjectId (integer) - Unique Identifier
  • [ ] ObjectType (String) - Type/Class of Object
  • [ ] ObjectMesh (Mesh) - Mesh to use to display the object
  • [ ] ObjectState (Animation) - Name of Animation in the Mesh
  • [ ] ObjectData (String) - Custom data associated with the object

Blockly Block

  • [ ] Create a custom "WorldObject" Blockly Block that has all the properties of the WorldObject

Notes

Need to create additional custom Blockly Blocks that make it easy to "See" items in the "World" and "React" to them

  • [ ] SearchForWorldObject - Returns WorldObject object by ObjectId
  • [ ] SearchForWorldObjects - Returns all WorldObject objects by ObjectType

ADefWebserver avatar Aug 12 '20 01:08 ADefWebserver