diff --git a/assets/images/christmas/santa.png b/assets/images/christmas/santa.png new file mode 100644 index 000000000..1e86c6dfd Binary files /dev/null and b/assets/images/christmas/santa.png differ diff --git a/assets/images/christmas/santa.xml b/assets/images/christmas/santa.xml new file mode 100644 index 000000000..32d8c089e --- /dev/null +++ b/assets/images/christmas/santa.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + diff --git a/source/PlayState.hx b/source/PlayState.hx index 21e9ef60c..e56c7fc22 100644 --- a/source/PlayState.hx +++ b/source/PlayState.hx @@ -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)