Skip to content

Commit

Permalink
did uhh
Browse files Browse the repository at this point in the history
  • Loading branch information
Joalor64GH authored Nov 8, 2024
1 parent 38b547d commit 24b098c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion assets/songs/test/script.hxs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import('flixel.FlxSprite');
import('states.PlayState');

function create() {
var spr:FlxSprite = new FlxSprite(0, 0).makeGraphic(50, 50, 0xFF000000);
var spr:FlxSprite = new FlxSprite(0, 0).makeGraphic(50, 50, FlxColor.BLACK);
PlayState.instance.add(spr);
}
2 changes: 1 addition & 1 deletion assets/tipText.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ ROCK ON THE GROUND
AIR DETECTED
we lost berlin
Fugnkin--bird
Fun Fact: Through scripting, you can force anti-mash on.--But you didn't hear me say that.
Fun Fact: Through scripting, you can force anti-mash on.--But why would you want to do that?
Cooking Tip: Use the right amount.--Not the white amount.
Put the Lunchly down!--I like my cheese drippy, bruh.
Put the still water down!--This is for those who know!
Expand Down
12 changes: 6 additions & 6 deletions docs/01 - scripting.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,6 @@ To import an enumerator, use:
import('package.Enum');
```

To import another script, use:
```hx
importScript('path.script');
```

You can basically use this to import any class/enum you'd like. <br>
Otherwise, here is a list of the current classes you can use that are already imported:

Expand Down Expand Up @@ -99,6 +94,11 @@ Otherwise, here is a list of the current classes you can use that are already im
* Song
* Utilities

Additionally, if you want to import another script, use:
```hx
importScript('path.script');
```

## Templates
Some useful templates. For the default template, use [this](/assets/scripts/template.hxs).

Expand All @@ -108,7 +108,7 @@ import('flixel.FlxSprite');
import('states.PlayState');
function create() {
var spr:FlxSprite = new FlxSprite(0, 0).makeGraphic(50, 50, 0xFF000000);
var spr:FlxSprite = new FlxSprite(0, 0).makeGraphic(50, 50, FlxColor.BLACK);
PlayState.instance.add(spr);
}
```
Expand Down

0 comments on commit 24b098c

Please sign in to comment.