This repository was archived by the owner on Mar 17, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Obstacle
megamaz edited this page Mar 16, 2021
·
5 revisions
This is the Obstacle class. It is a simple data container for Wall objects.
The Wall does not need to exist inside the
level.datfor the instance to exist.
import noodleExtensions as NE
note = NE.Obstacle(
_time=1, # the start beat of the wall
_lineIndex=1, # The left side of the wall
_type=0, # Crouch/Height wall
_duration=10, # how many beats the wall lasts
_width=0, # How many tiles wide the wall is
# you can insert custom data as [property]=[data]
_track="WallTrack",
_fake=True # this will not kill the player if they stand inside of it
)Create a new Obstacle object from a Wall data dictionary.
classmethodfromDict
- Parameters
-
data(dict)
-
The wall's data.
dictobstacle
The beat at which the wall starts.
float_time
The left side of the wall.
int_lineIndex
The wall type.
int_type
The amount of beats the wall lasts.
float_duration
How many tiles wide the wall is.
int_width
The wall's customData property.
dict_customData
There is no more support for this.
If it doesn't link, it's a WIP. If you want to read it anywyas, Check the pages above.