From 24b098c7b8a39a4e393d1f4aa2541e9bdec01fdf Mon Sep 17 00:00:00 2001 From: Joalor64 Date: Thu, 7 Nov 2024 19:55:53 -0500 Subject: [PATCH] did uhh --- assets/songs/test/script.hxs | 2 +- assets/tipText.txt | 2 +- docs/01 - scripting.md | 12 ++++++------ 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/assets/songs/test/script.hxs b/assets/songs/test/script.hxs index 5788a05..424ff50 100644 --- a/assets/songs/test/script.hxs +++ b/assets/songs/test/script.hxs @@ -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); } \ No newline at end of file diff --git a/assets/tipText.txt b/assets/tipText.txt index b25fad9..9a17d6f 100644 --- a/assets/tipText.txt +++ b/assets/tipText.txt @@ -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! diff --git a/docs/01 - scripting.md b/docs/01 - scripting.md index 5c41517..0272880 100644 --- a/docs/01 - scripting.md +++ b/docs/01 - scripting.md @@ -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.
Otherwise, here is a list of the current classes you can use that are already imported: @@ -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). @@ -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); } ```