santa lol

This commit is contained in:
Cameron Taylor 2021-01-19 23:29:18 -05:00
parent 5f119e092b
commit 69434ab7e5
3 changed files with 27 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
<TextureAtlas imagePath="santa.png">
<!-- Created with Adobe Animate version 20.0.0.17400 -->
<!-- http://www.adobe.com/products/animate.html -->
<SubTexture name="santa idle in fear0000" x="0" y="0" width="663" height="722" frameX="0" frameY="-25" frameWidth="663" frameHeight="748"/>
<SubTexture name="santa idle in fear0001" x="673" y="0" width="662" height="722" frameX="-1" frameY="-25" frameWidth="663" frameHeight="748"/>
<SubTexture name="santa idle in fear0002" x="1345" y="0" width="658" height="724" frameX="-3" frameY="-24" frameWidth="663" frameHeight="748"/>
<SubTexture name="santa idle in fear0003" x="2013" y="0" width="658" height="723" frameX="-3" frameY="-24" frameWidth="663" frameHeight="748"/>
<SubTexture name="santa idle in fear0004" x="2681" y="0" width="650" height="732" frameX="-7" frameY="-16" frameWidth="663" frameHeight="748"/>
<SubTexture name="santa idle in fear0005" x="3341" y="0" width="650" height="732" frameX="-7" frameY="-16" frameWidth="663" frameHeight="748"/>
<SubTexture name="santa idle in fear0006" x="0" y="742" width="650" height="735" frameX="-7" frameY="-13" frameWidth="663" frameHeight="748"/>
<SubTexture name="santa idle in fear0007" x="660" y="742" width="650" height="735" frameX="-7" frameY="-13" frameWidth="663" frameHeight="748"/>
<SubTexture name="santa idle in fear0008" x="1320" y="742" width="650" height="747" frameX="-7" frameY="-1" frameWidth="663" frameHeight="748"/>
<SubTexture name="santa idle in fear0009" x="1980" y="742" width="650" height="748" frameX="-7" frameY="0" frameWidth="663" frameHeight="748"/>
<SubTexture name="santa idle in fear0010" x="2640" y="742" width="650" height="748" frameX="-7" frameY="0" frameWidth="663" frameHeight="748"/>
<SubTexture name="santa idle in fear0011" x="3300" y="742" width="650" height="748" frameX="-7" frameY="0" frameWidth="663" frameHeight="748"/>
<SubTexture name="santa idle in fear0012" x="1980" y="742" width="650" height="748" frameX="-7" frameY="0" frameWidth="663" frameHeight="748"/>
<SubTexture name="santa idle in fear0013" x="2640" y="742" width="650" height="748" frameX="-7" frameY="0" frameWidth="663" frameHeight="748"/>
</TextureAtlas>

View File

@ -95,6 +95,7 @@ class PlayState extends MusicBeatState
var upperBoppers:FlxSprite;
var bottomBoppers:FlxSprite;
var santa:FlxSprite;
var talking:Bool = true;
var songScore:Int = 0;
@ -299,6 +300,12 @@ class PlayState extends MusicBeatState
fgSnow.active = false;
fgSnow.antialiasing = true;
add(fgSnow);
santa = new FlxSprite(-840, 150);
santa.frames = FlxAtlasFrames.fromSparrow('assets/images/christmas/santa.png', 'assets/images/christmas/santa.xml');
santa.animation.addByPrefix('idle', 'santa idle in fear', 24, false);
santa.antialiasing = true;
add(santa);
}
else
{
@ -1782,6 +1789,7 @@ class PlayState extends MusicBeatState
case 'mall':
upperBoppers.animation.play('bop', true);
bottomBoppers.animation.play('bop', true);
santa.animation.play('idle', true);
case 'limo':
grpLimoDancers.forEach(function(dancer:BackgroundDancer)