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

Commit

Permalink
score text shit, week6 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
RadiantCorium committed Jun 11, 2022
1 parent c2e9d94 commit d96ad28
Show file tree
Hide file tree
Showing 8 changed files with 296 additions and 82 deletions.
45 changes: 4 additions & 41 deletions assets/preload/data/introText.txt
Original file line number Diff line number Diff line change
@@ -1,41 +1,4 @@
shoutouts to tom fulp--lmao
Ludum dare--extraordinaire
cyberzone--coming soon
love to thriftman--swag
ultimate rhythm gaming--probably
dope ass game--playstation magazine
in loving memory of--henryeyes
dancin--forever
funkin--forever
ritz dx--rest in peace lol
rate five--pls no blam
rhythm gaming--ultimate
game of the year--forever
you already know--we really out here
rise and grind--love to luis
like parappa--but cooler
album of the year--chuckie finster
free gitaroo man--with love to wandaboy
better than geometry dash--fight me robtop
kiddbrute for president--vote now
play dead estate--on newgrounds
this is a god damn prototype--we workin on it okay
women are real--this is official
too over exposed--newgrounds cant handle us
Hatsune Miku--biggest inspiration
too many people--my head hurts
newgrounds--forever
refined taste in music--if i say so myself
his name isnt keith--dumb eggy lol
his name isnt evan--silly tiktok
stream chuckie finster--on spotify
never forget to--pray to god
dont play rust--we only funkin
good bye--my penis
dababy--biggest inspiration
fashionably late--but here it is
yooooooooooo--yooooooooo
pico funny--pico funny
updates each friday--on time every time
shoutouts to mason--for da homies
bonk--get in the discord call
also check out--sublime engine
engin--engin
sublime engine--is cool
funfact--you exist
Binary file modified assets/preload/images/newgrounds_logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
59 changes: 32 additions & 27 deletions source/engine/base/Character.hx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package engine.base;

import states.gameplay.PlayState;
import engine.io.Modding;
import engine.io.Paths;
import flixel.FlxG;
import flixel.FlxSprite;
Expand Down Expand Up @@ -33,7 +35,7 @@ class Character extends FlxSprite
{
case 'gf':
// GIRLFRIEND CODE
tex = Paths.getSparrowAtlas('GF_assets');
tex = Modding.getSparrow("GF_assets", Modding.findModOfName(PlayState.mod));
frames = tex;
animation.addByPrefix('cheer', 'GF Cheer', 24, false);
animation.addByPrefix('singLEFT', 'GF left note', 24, false);
Expand Down Expand Up @@ -64,7 +66,7 @@ class Character extends FlxSprite
playAnim('danceRight');

case 'gf-christmas':
tex = Paths.getSparrowAtlas('christmas/gfChristmas');
tex = Modding.getSparrow("christmas/gfChristmas", ["week5"], Modding.findModOfName(PlayState.mod));
frames = tex;
animation.addByPrefix('cheer', 'GF Cheer', 24, false);
animation.addByPrefix('singLEFT', 'GF left note', 24, false);
Expand Down Expand Up @@ -95,7 +97,7 @@ class Character extends FlxSprite
playAnim('danceRight');

case 'gf-car':
tex = Paths.getSparrowAtlas('gfCar');
tex = Modding.getSparrow("gfCar", ["week4"], Modding.findModOfName(PlayState.mod));
frames = tex;
animation.addByIndices('singUP', 'GF Dancing Beat Hair blowing CAR', [0], "", 24, false);
animation.addByIndices('danceLeft', 'GF Dancing Beat Hair blowing CAR', [30, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "", 24, false);
Expand All @@ -108,7 +110,7 @@ class Character extends FlxSprite
playAnim('danceRight');

case 'gf-pixel':
tex = Paths.getSparrowAtlas('weeb/gfPixel');
tex = Modding.getSparrow("weeb/gfPixel", ["week6"], Modding.findModOfName(PlayState.mod));
frames = tex;
animation.addByIndices('singUP', 'GF IDLE', [2], "", 24, false);
animation.addByIndices('danceLeft', 'GF IDLE', [30, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14], "", 24, false);
Expand All @@ -125,7 +127,7 @@ class Character extends FlxSprite

case 'dad':
// DAD ANIMATION LOADING CODE
tex = Paths.getSparrowAtlas('DADDY_DEAREST');
tex = Modding.getSparrow("DADDY_DEAREST", null, Modding.findModOfName(PlayState.mod));
frames = tex;
animation.addByPrefix('idle', 'Dad idle dance', 24);
animation.addByPrefix('singUP', 'Dad Sing Note UP', 24);
Expand All @@ -141,7 +143,7 @@ class Character extends FlxSprite

playAnim('idle');
case 'spooky':
tex = Paths.getSparrowAtlas('spooky_kids_assets');
tex = Modding.getSparrow("spooky_kids_assets", ["week2"], Modding.findModOfName(PlayState.mod));
frames = tex;
animation.addByPrefix('singUP', 'spooky UP NOTE', 24, false);
animation.addByPrefix('singDOWN', 'spooky DOWN note', 24, false);
Expand All @@ -160,7 +162,7 @@ class Character extends FlxSprite

playAnim('danceRight');
case 'mom':
tex = Paths.getSparrowAtlas('Mom_Assets');
tex = Modding.getSparrow("Mom_Assets", ["week4"], Modding.findModOfName(PlayState.mod));
frames = tex;

animation.addByPrefix('idle', "Mom Idle", 24, false);
Expand All @@ -180,7 +182,7 @@ class Character extends FlxSprite
playAnim('idle');

case 'mom-car':
tex = Paths.getSparrowAtlas('momCar');
tex = Modding.getSparrow("momCar", ["week4"], Modding.findModOfName(PlayState.mod));
frames = tex;

animation.addByPrefix('idle', "Mom Idle", 24, false);
Expand All @@ -199,7 +201,7 @@ class Character extends FlxSprite

playAnim('idle');
case 'monster':
tex = Paths.getSparrowAtlas('Monster_Assets');
tex = Modding.getSparrow("Monster_Assets", ["week2"], Modding.findModOfName(PlayState.mod));
frames = tex;
animation.addByPrefix('idle', 'monster idle', 24, false);
animation.addByPrefix('singUP', 'monster up note', 24, false);
Expand All @@ -214,7 +216,7 @@ class Character extends FlxSprite
addOffset("singDOWN", -30, -40);
playAnim('idle');
case 'monster-christmas':
tex = Paths.getSparrowAtlas('christmas/monsterChristmas');
tex = Modding.getSparrow("christmas/monsterChristmas", ["week5"], Modding.findModOfName(PlayState.mod));
frames = tex;
animation.addByPrefix('idle', 'monster idle', 24, false);
animation.addByPrefix('singUP', 'monster up note', 24, false);
Expand All @@ -229,7 +231,7 @@ class Character extends FlxSprite
addOffset("singDOWN", -40, -94);
playAnim('idle');
case 'pico':
tex = Paths.getSparrowAtlas('Pico_FNF_assetss');
tex = Modding.getSparrow("Pico_FNF_assetss", ["week3"], Modding.findModOfName(PlayState.mod));
frames = tex;
animation.addByPrefix('idle', "Pico Idle Dance", 24);
animation.addByPrefix('singUP', 'pico Up note0', 24, false);
Expand Down Expand Up @@ -268,7 +270,7 @@ class Character extends FlxSprite
flipX = true;

case 'bf':
var tex = Paths.getSparrowAtlas('BOYFRIEND');
var tex = Modding.getSparrow("BOYFRIEND", null, Modding.findModOfName(PlayState.mod));
frames = tex;
animation.addByPrefix('idle', 'BF idle dance', 24, false);
animation.addByPrefix('singUP', 'BF NOTE UP0', 24, false);
Expand Down Expand Up @@ -307,7 +309,7 @@ class Character extends FlxSprite
flipX = true;

case 'bf-christmas':
var tex = Paths.getSparrowAtlas('christmas/bfChristmas');
var tex = Modding.getSparrow("christmas/bfChristmas", ["week5"], Modding.findModOfName(PlayState.mod));
frames = tex;
animation.addByPrefix('idle', 'BF idle dance', 24, false);
animation.addByPrefix('singUP', 'BF NOTE UP0', 24, false);
Expand Down Expand Up @@ -335,7 +337,7 @@ class Character extends FlxSprite

flipX = true;
case 'bf-car':
var tex = Paths.getSparrowAtlas('bfCar');
var tex = Modding.getSparrow("bfCar", ["week4"], Modding.findModOfName(PlayState.mod));
frames = tex;
animation.addByPrefix('idle', 'BF idle dance', 24, false);
animation.addByPrefix('singUP', 'BF NOTE UP0', 24, false);
Expand All @@ -360,7 +362,7 @@ class Character extends FlxSprite

flipX = true;
case 'bf-pixel':
frames = Paths.getSparrowAtlas('weeb/bfPixel');
frames = Modding.getSparrow("weeb/bfPixel", ["week6"], Modding.findModOfName(PlayState.mod));
animation.addByPrefix('idle', 'BF IDLE', 24, false);
animation.addByPrefix('singUP', 'BF UP NOTE', 24, false);
animation.addByPrefix('singLEFT', 'BF LEFT NOTE', 24, false);
Expand Down Expand Up @@ -393,7 +395,7 @@ class Character extends FlxSprite

flipX = true;
case 'bf-pixel-dead':
frames = Paths.getSparrowAtlas('weeb/bfPixelsDEAD');
frames = Modding.getSparrow("weeb/bfPixelDEAD", ["week6"], Modding.findModOfName(PlayState.mod));
animation.addByPrefix('singUP', "BF Dies pixel", 24, false);
animation.addByPrefix('firstDeath', "BF Dies pixel", 24, false);
animation.addByPrefix('deathLoop', "Retry Loop", 24, true);
Expand All @@ -411,7 +413,7 @@ class Character extends FlxSprite
flipX = true;

case 'senpai':
frames = Paths.getSparrowAtlas('weeb/senpai');
frames = Modding.getSparrow("weeb/senpai", ["week6"], Modding.findModOfName(PlayState.mod));
animation.addByPrefix('idle', 'Senpai Idle', 24, false);
animation.addByPrefix('singUP', 'SENPAI UP NOTE', 24, false);
animation.addByPrefix('singLEFT', 'SENPAI LEFT NOTE', 24, false);
Expand All @@ -431,7 +433,7 @@ class Character extends FlxSprite

antialiasing = false;
case 'senpai-angry':
frames = Paths.getSparrowAtlas('weeb/senpai');
frames = Modding.getSparrow("weeb/senpai", ["week6"], Modding.findModOfName(PlayState.mod));
animation.addByPrefix('idle', 'Angry Senpai Idle', 24, false);
animation.addByPrefix('singUP', 'Angry Senpai UP NOTE', 24, false);
animation.addByPrefix('singLEFT', 'Angry Senpai LEFT NOTE', 24, false);
Expand All @@ -451,7 +453,7 @@ class Character extends FlxSprite
antialiasing = false;

case 'spirit':
frames = Paths.getPackerAtlas('weeb/spirit');
frames = Modding.getPacker("weeb/spirit", ["week6"], Modding.findModOfName(PlayState.mod));
animation.addByPrefix('idle', "idle spirit_", 24, false);
animation.addByPrefix('singUP', "up_", 24, false);
animation.addByPrefix('singRIGHT', "right_", 24, false);
Expand All @@ -472,7 +474,7 @@ class Character extends FlxSprite
antialiasing = false;

case 'parents-christmas':
frames = Paths.getSparrowAtlas('christmas/mom_dad_christmas_assets');
frames = Modding.getSparrow("christmas/mom_dad_christmas_assets", ["week5"], Modding.findModOfName(PlayState.mod));
animation.addByPrefix('idle', 'Parent Christmas Idle', 24, false);
animation.addByPrefix('singUP', 'Parent Up Note Dad', 24, false);
animation.addByPrefix('singDOWN', 'Parent Down Note Dad', 24, false);
Expand Down Expand Up @@ -567,14 +569,17 @@ class Character extends FlxSprite
switch (curCharacter)
{
case 'gf':
if (!animation.curAnim.name.startsWith('hair'))
if (animation.curAnim != null)
{
danced = !danced;

if (danced)
playAnim('danceRight');
else
playAnim('danceLeft');
if (!animation.curAnim.name.startsWith('hair'))
{
danced = !danced;

if (danced)
playAnim('danceRight');
else
playAnim('danceLeft');
}
}

case 'gf-christmas':
Expand Down
77 changes: 77 additions & 0 deletions source/engine/base/ModAPI.hx
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package engine.base;

import openfl.display.BitmapData;
import flixel.graphics.frames.FlxAtlasFrames;
import openfl.media.Sound;
import haxe.Json;
import sys.io.File;
Expand Down Expand Up @@ -117,6 +119,81 @@ class ModAPI
}
return shit;
}

public function getImageShit(path:String, ?mod:Mod):BitmapData
{
trace("looking for image file: " + path);
var shit:BitmapData = null;
if (mod != null)
{
trace("getting the path: " + mod.path + path);
shit = BitmapData.fromFile(mod.path + path);
}
else
{
for (mod in loaded)
{
trace("scanning mod: " + mod.name);
if (FileSystem.exists(mod.path + path))
{
trace("getting the path: " + mod.path + path);
shit = BitmapData.fromFile(mod.path + path);
break;
}
}
}
return shit;
}

public function getSparrowShit(pathPng:String, pathXml:String, ?mod:Mod):FlxAtlasFrames
{
trace("looking for sparrow file: " + pathPng);
var shit:FlxAtlasFrames = null;
if (mod != null)
{
trace("getting the path: " + pathPng);
shit = FlxAtlasFrames.fromSparrow(getImageShit(pathPng, mod), getTextShit(pathXml, mod));
}
else
{
for (mod in loaded)
{
trace("scanning mod: " + mod.name);
if (FileSystem.exists(pathPng))
{
trace("getting the path: " + pathPng);
shit = FlxAtlasFrames.fromSparrow(getImageShit(pathPng, mod), getTextShit(pathXml, mod));
break;
}
}
}
return shit;
}

public function getPackerShit(pathPng:String, pathXml:String, ?mod:Mod):FlxAtlasFrames
{
trace("looking for sparrow file: " + pathPng);
var shit:FlxAtlasFrames = null;
if (mod != null)
{
trace("getting the path: " + pathPng);
shit = FlxAtlasFrames.fromSpriteSheetPacker(getImageShit(pathPng, mod), getTextShit(pathXml, mod));
}
else
{
for (mod in loaded)
{
trace("scanning mod: " + mod.name);
if (FileSystem.exists(pathPng))
{
trace("getting the path: " + pathPng);
shit = FlxAtlasFrames.fromSpriteSheetPacker(getImageShit(pathPng, mod), getTextShit(pathXml, mod));
break;
}
}
}
return shit;
}
}

typedef Mod =
Expand Down
Loading

0 comments on commit d96ad28

Please sign in to comment.