Skip to content
This repository was archived by the owner on Mar 17, 2021. It is now read-only.

Obstacle

megamaz edited this page Mar 16, 2021 · 5 revisions

This is the Obstacle class. It is a simple data container for Wall objects.

Create Instance

The Wall does not need to exist inside the level.dat for 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
)

Functions

Variables

fromDict

Create a new Obstacle object from a Wall data dictionary.

classmethod fromDict

  • Parameters
    • data (dict)

obstacle

The wall's data.

dict obstacle

_time

The beat at which the wall starts.

float _time

_lineIndex

The left side of the wall.

int _lineIndex

_type

The wall type.

int _type

_duration

The amount of beats the wall lasts.

float _duration

_width

How many tiles wide the wall is.

int _width

_customData

The wall's customData property.

dict _customData

If it doesn't link, it's a WIP. If you want to read it anywyas, Check the pages above.

Objects

Events

Clone this wiki locally