Skip to content
This repository has been archived by the owner on Sep 10, 2024. It is now read-only.

Commit

Permalink
HScript support lol
Browse files Browse the repository at this point in the history
  • Loading branch information
yophlox committed Aug 2, 2024
1 parent 53b95ff commit eb4d96e
Show file tree
Hide file tree
Showing 5 changed files with 329 additions and 75 deletions.
50 changes: 50 additions & 0 deletions assets/charts/bopeebo/script.hx
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
function create()
{
trace("CREATE FUNC CALLED");
}

function postCreate()
{
trace("POST CREATE FUNC CALLED");
}

function update(elapsed:Float)
{
// during playstate's update function
}

function postUpdate()
{
// after playstate's update function
}

function goodNoteHit(note:Note)
{
trace("GOOD NOTE HIT");
}

function noteMiss(direction:Int)
{
trace("MISSED A NOTE");
}

function stepHit(curStep:Int)
{
//trace("STEP HIT");
}

function beatHit(curBeat:Int)
{
// trace("BEAT HIT");
// todo: get this working :sob:
if (PlayState.curBeat % 8 == 7 && PlayState.curSong == 'Bopeebo')
{
PlayState.boyfriend.playAnim('hey', true);
trace("HEY!");

if (PlayState.SONG.song == 'Tutorial' && PlayState.dad.curCharacter == 'gf')
{
PlayState.dad.playAnim('cheer', true);
}
}
}
39 changes: 39 additions & 0 deletions assets/charts/template/script.hx
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
function create()
{
trace("CREATE FUNC CALLED");
}

function postCreate()
{
trace("POST CREATE FUNC CALLED");
}

function update(elapsed:Float)
{
// during playstate's update function
}

function postUpdate()
{
// after playstate's update function
}

function goodNoteHit(note:Note)
{
trace("GOOD NOTE HIT");
}

function noteMiss(direction:Int)
{
trace("MISSED A NOTE");
}

function stepHit(curStep:Int)
{
//trace("STEP HIT");
}

function beatHit(curBeat:Int)
{
//trace("BEAT HIT");
}
Loading

0 comments on commit eb4d96e

Please sign in to comment.