Overworld - hpgDesigns/hpgdesigns-dev.io GitHub Wiki

TODO: Explain what the Overworld resource is.

This page is the site of plans for the Overworld resource and for the room system extension.

Try to keep it productive, and let the admins decide whose ideas are to just be deleted. Don't start an edit war. If two functions are in dispute and no one can agree, which I think is unlikely, just leave them both in.

Room Region Functions

  • : Inconvenience function to create a new region. Returns the index of the region created. Operates in O(N), N=number of existing regions.

  • : Function to remove a region from the room.

  • : Returns whether an object matching the passed id is contained inside a region. If an object index is passed, the first instance by that object index is checked.

  • : Returns the number of room regions in the current room. The user can iterate room regions by counting from 0 to this value.

  • : Returns an array of coordinates in the format [x1,y1,x2,y2].

  • : Deactivates all instances in the given region.

  • : Activates all instances in the given region.

  • : Deactivates all instances outside of the given region.

Overworld Functions

  • Returns an array of the coordinates of the first room by the given id. Coordinates are in format [x1,y1,x2,y2].

  • Same as its room id overload, but returns coordinates of the room with the given name in the Overworld.

  • Returns the overworld coordinates matching the given room-coordinates in the current room, as an array of [x,y].

  • Returns the room coordinates as an array of [x,y] inside the room containing the given absolute coordinates.

  • : Returns the id of the room containing the given absolute coordinates.

  • : Returns the name of the room containing the given absolute coordinates.