Skip to content

Commit

Permalink
go gf yeah yeah
Browse files Browse the repository at this point in the history
  • Loading branch information
DidgieDeez committed Jun 28, 2024
1 parent 19a9c4c commit 0e04dde
Show file tree
Hide file tree
Showing 4 changed files with 131 additions and 10 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
91 changes: 91 additions & 0 deletions assets/shared/images/characters/gogirlfriendgo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
<?xml version="1.0" encoding="utf-8"?>
<TextureAtlas imagePath="gogirlfriendgo.png">
<!-- Created with Adobe Animate version 22.0.0.93 -->
<!-- http://www.adobe.com/products/animate.html -->
<SubTexture name="dance0000" x="0" y="0" width="89" height="158"/>
<SubTexture name="dance0001" x="89" y="0" width="89" height="158"/>
<SubTexture name="dance0002" x="178" y="0" width="89" height="158"/>
<SubTexture name="dance0003" x="267" y="0" width="89" height="158"/>
<SubTexture name="dance0004" x="356" y="0" width="89" height="158"/>
<SubTexture name="dance0005" x="445" y="0" width="89" height="158"/>
<SubTexture name="dance0006" x="534" y="0" width="89" height="158"/>
<SubTexture name="dance0007" x="623" y="0" width="89" height="158"/>
<SubTexture name="dance0008" x="712" y="0" width="89" height="158"/>
<SubTexture name="dance0009" x="801" y="0" width="89" height="158"/>
<SubTexture name="dance0010" x="890" y="0" width="89" height="158"/>
<SubTexture name="dance0011" x="979" y="0" width="89" height="158"/>
<SubTexture name="dance0012" x="1068" y="0" width="89" height="158"/>
<SubTexture name="dance0013" x="1157" y="0" width="89" height="158"/>
<SubTexture name="dance0014" x="1246" y="0" width="89" height="158"/>
<SubTexture name="dance0015" x="1335" y="0" width="89" height="158"/>
<SubTexture name="dance0016" x="1424" y="0" width="89" height="158"/>
<SubTexture name="dance0017" x="1513" y="0" width="89" height="158"/>
<SubTexture name="dance0018" x="1602" y="0" width="89" height="158"/>
<SubTexture name="dance0019" x="1691" y="0" width="89" height="158"/>
<SubTexture name="dance0020" x="1780" y="0" width="89" height="158"/>
<SubTexture name="dance0021" x="1869" y="0" width="89" height="158"/>
<SubTexture name="dance0022" x="1958" y="0" width="89" height="158"/>
<SubTexture name="dance0023" x="2047" y="0" width="89" height="158"/>
<SubTexture name="dance0024" x="2136" y="0" width="89" height="158"/>
<SubTexture name="dance0025" x="2225" y="0" width="89" height="158"/>
<SubTexture name="dance0026" x="2314" y="0" width="89" height="158"/>
<SubTexture name="dance0027" x="2403" y="0" width="89" height="158"/>
<SubTexture name="dance0028" x="2492" y="0" width="89" height="158"/>
<SubTexture name="dance0029" x="2581" y="0" width="89" height="158"/>
<SubTexture name="dance0030" x="2670" y="0" width="89" height="158"/>
<SubTexture name="dance0031" x="2759" y="0" width="89" height="158"/>
<SubTexture name="dance0032" x="2848" y="0" width="89" height="158"/>
<SubTexture name="dance0033" x="2937" y="0" width="89" height="158"/>
<SubTexture name="dance0034" x="3026" y="0" width="89" height="158"/>
<SubTexture name="dance0035" x="3115" y="0" width="89" height="158"/>
<SubTexture name="dance0036" x="3204" y="0" width="89" height="158"/>
<SubTexture name="dance0037" x="3293" y="0" width="89" height="158"/>
<SubTexture name="dance0038" x="3382" y="0" width="89" height="158"/>
<SubTexture name="dance0039" x="3471" y="0" width="89" height="158"/>
<SubTexture name="dance0040" x="3560" y="0" width="89" height="158"/>
<SubTexture name="dance0041" x="3649" y="0" width="89" height="158"/>
<SubTexture name="dance0042" x="3738" y="0" width="89" height="158"/>
<SubTexture name="dance0043" x="0" y="158" width="89" height="158"/>
<SubTexture name="dance0044" x="89" y="158" width="89" height="158"/>
<SubTexture name="dance0045" x="178" y="158" width="89" height="158"/>
<SubTexture name="dance0046" x="267" y="158" width="89" height="158"/>
<SubTexture name="dance0047" x="356" y="158" width="89" height="158"/>
<SubTexture name="dance0048" x="445" y="158" width="89" height="158"/>
<SubTexture name="dance0049" x="534" y="158" width="89" height="158"/>
<SubTexture name="dance0050" x="623" y="158" width="89" height="158"/>
<SubTexture name="dance0051" x="712" y="158" width="89" height="158"/>
<SubTexture name="dance0052" x="801" y="158" width="89" height="158"/>
<SubTexture name="dance0053" x="890" y="158" width="89" height="158"/>
<SubTexture name="dance0054" x="979" y="158" width="89" height="158"/>
<SubTexture name="dance0055" x="1068" y="158" width="89" height="158"/>
<SubTexture name="dance0056" x="1157" y="158" width="89" height="158"/>
<SubTexture name="dance0057" x="1246" y="158" width="89" height="158"/>
<SubTexture name="dance0058" x="1335" y="158" width="89" height="158"/>
<SubTexture name="dance0059" x="1424" y="158" width="89" height="158"/>
<SubTexture name="dance0060" x="1513" y="158" width="89" height="158"/>
<SubTexture name="dance0061" x="1602" y="158" width="89" height="158"/>
<SubTexture name="dance0062" x="1691" y="158" width="89" height="158"/>
<SubTexture name="dance0063" x="1780" y="158" width="89" height="158"/>
<SubTexture name="dance0064" x="1869" y="158" width="89" height="158"/>
<SubTexture name="dance0065" x="1958" y="158" width="89" height="158"/>
<SubTexture name="dance0066" x="2047" y="158" width="89" height="158"/>
<SubTexture name="dance0067" x="2136" y="158" width="89" height="158"/>
<SubTexture name="dance0068" x="2225" y="158" width="89" height="158"/>
<SubTexture name="dance0069" x="2314" y="158" width="89" height="158"/>
<SubTexture name="dance0070" x="2403" y="158" width="89" height="158"/>
<SubTexture name="dance0071" x="2492" y="158" width="89" height="158"/>
<SubTexture name="dance0072" x="2581" y="158" width="89" height="158"/>
<SubTexture name="dance0073" x="2670" y="158" width="89" height="158"/>
<SubTexture name="dance0074" x="2759" y="158" width="89" height="158"/>
<SubTexture name="dance0075" x="2848" y="158" width="89" height="158"/>
<SubTexture name="dance0076" x="2937" y="158" width="89" height="158"/>
<SubTexture name="dance0077" x="3026" y="158" width="89" height="158"/>
<SubTexture name="dance0078" x="3115" y="158" width="89" height="158"/>
<SubTexture name="dance0079" x="3204" y="158" width="89" height="158"/>
<SubTexture name="dance0080" x="3293" y="158" width="89" height="158"/>
<SubTexture name="dance0081" x="3382" y="158" width="89" height="158"/>
<SubTexture name="dance0082" x="3471" y="158" width="89" height="158"/>
<SubTexture name="dance0083" x="3560" y="158" width="89" height="158"/>
<SubTexture name="dance0084" x="3649" y="158" width="89" height="158"/>
<SubTexture name="dance0085" x="3738" y="158" width="89" height="158"/>
</TextureAtlas>
14 changes: 14 additions & 0 deletions source/Character.hx
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,20 @@ class Character extends FlxSprite
addOffset('scared', -2, -17);

playAnim('danceRight');

case 'gogfgo':
// GIRLFRIEND CODE
tex = Paths.getSparrowAtlas('characters/gogirlfriendgo');
frames = tex;
animation.addByPrefix('idle', 'dance', 30, true);

addOffset("idle", -200, -400);

playAnim('idle');

setGraphicSize(Std.int(width * 2));
updateHitbox();


case 'gf-christmas':
tex = Paths.getSparrowAtlas('characters/christmas/gfChristmas');
Expand Down
36 changes: 26 additions & 10 deletions source/PlayState.hx
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ class PlayState extends MusicBeatState
var songScore:Int = 0;
var scoreTxt:FlxText;

var specialgf:Bool = false;

public static var campaignScore:Int = 0;

var defaultCamZoom:Float = 1.05;
Expand Down Expand Up @@ -183,6 +185,11 @@ class PlayState extends MusicBeatState

override public function create()
{
if (FlxG.random.bool(1))
{
specialgf = true;
}

theFunne = FlxG.save.data.newInput;
if (FlxG.sound.music != null)
FlxG.sound.music.stop();
Expand Down Expand Up @@ -661,20 +668,29 @@ class PlayState extends MusicBeatState

var gfVersion:String = 'gf';

switch (curStage)
if (specialgf == false || SONG.song.toLowerCase() == 'tutorial')
{
case 'limo':
switch (curStage)
{
case 'limo':
gfVersion = 'gf-car';
case 'mall' | 'mallEvil':
gfVersion = 'gf-christmas';
case 'school':
gfVersion = 'gf-pixel';
case 'schoolEvil':
gfVersion = 'gf-pixel';

}
if (curStage == 'limo')
gfVersion = 'gf-car';
case 'mall' | 'mallEvil':
gfVersion = 'gf-christmas';
case 'school':
gfVersion = 'gf-pixel';
case 'schoolEvil':
gfVersion = 'gf-pixel';
}
else
{
gfVersion = 'gogfgo';
}

if (curStage == 'limo')
gfVersion = 'gf-car';


gf = new Character(400, 130, gfVersion);
gf.scrollFactor.set(0.95, 0.95);
Expand Down

0 comments on commit 0e04dde

Please sign in to comment.