-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes #104. - On setup, blue1 will initiate a regular rumble or a medium constant rumble, depending on whether you've got the blue pearl. - On setup, blue2 will initiate a heavy constant rumble if the blue pearl is already activated. - When the blue pearl activates, blue2 initiates a heavy constant rumble. - Ring7 stops all regular and constant rumbles. - When one type of rumble begins, the others stop. - The types of rumbling are automatically managed, taking the burden off the area scripts. This means once you step outside the house with the blue pearl, you enter into a medium constant rumble. Also, if you activate the blue pearl, then step down to blue1, your rumble will go down from a heavy constant rumble to a medium constant rumble. It will resume back to a heavy constant rumble when you return to blue2. This gives the player a sense of energy while in blue2.
- Loading branch information
Showing
6 changed files
with
59 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
def rumble(rate, intensity, duration): | ||
__end_regular_rumble() | ||
Driftwood.script.call("stdlib/viewport.py", "rumble", rate, intensity, duration) | ||
|
||
|
||
def regular_rumble(rate, intensity, duration, interval): | ||
__end_regular_rumble() | ||
def rumble(): | ||
Driftwood.script.call("stdlib/viewport.py", "rumble", rate, intensity, duration) | ||
Driftwood.vars["regular_rumble"] = rumble | ||
Driftwood.tick.register(rumble, delay=interval) | ||
|
||
|
||
def __end_regular_rumble(): | ||
if "regular_rumble" in Driftwood.vars: | ||
Driftwood.tick.unregister(Driftwood.vars["regular_rumble"]) | ||
del Driftwood.vars["regular_rumble"] | ||
|
||
|
||
def constant_rumble(rate, intensity): | ||
__end_regular_rumble() | ||
Driftwood.script.call("stdlib/viewport.py", "rumble", rate, intensity, None) | ||
|
||
|
||
def end_rumble(): | ||
__end_regular_rumble() | ||
Driftwood.script.call("stdlib/viewport.py", "end_rumble") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters