initial commit, kind of working.

This commit is contained in:
2026-10-10 15:50:17 -06:00
commit 4db96b0bae
1041 changed files with 51423 additions and 0 deletions
@@ -0,0 +1,129 @@
package com.arc.dh.state
{
import com.arc.dh.util.Data;
import com.newgrounds.API;
import com.newgrounds.Medal;
import org.flixel.FlxG;
public class Newgrounds
{
public function Newgrounds()
{
super();
}
public static function connect() : void
{
API.connect(FlxG.root,"20663:ioaF01MQ","VvUV6AX4nPAMsy99C3Kss7NEhphnph9u","DH2-1");
}
private static function medal(param1:String) : void
{
var _loc2_:Medal = API.getMedal(param1);
if(!_loc2_.unlocked)
{
_loc2_.unlock();
}
}
public static function medals() : void
{
if(Data.totaldiamonds >= 100)
{
medal("100 Diamonds");
}
if(Data.totaldiamonds >= 5000)
{
medal("5000 Diamonds");
}
if(Data.totaldiamonds >= 25000)
{
medal("25000 Diamonds");
}
if(Data.chapters[0][0] > 0)
{
medal("Chapter 1");
}
if(Data.chapters[6][0] > 0)
{
medal("Chapter 7");
}
if(Data.maxheight >= 500)
{
medal("Escape 500");
}
if(Data.maxheight >= 1000)
{
medal("Escape 1000");
}
if(Data.maxheight >= 1500)
{
medal("Escape 1500");
}
if(Data.maxheight >= 2000)
{
medal("Escape 2000");
}
var _loc1_:int = 0;
var _loc2_:int = 0;
while(_loc2_ < Data.heartcrystals.length)
{
_loc1_ += Data.heartcrystals[_loc2_];
_loc2_++;
}
if(_loc1_ >= 5)
{
medal("5 Hearts");
}
if(_loc1_ >= 17)
{
medal("17 Hearts");
}
_loc1_ = 0;
_loc2_ = 0;
while(_loc2_ < Data.redDiamonds.length)
{
_loc1_ += Data.redDiamonds[_loc2_];
_loc2_++;
}
if(_loc1_ >= 5)
{
medal("5 Red Diamonds");
}
if(_loc1_ >= 15)
{
medal("15 Red Diamonds");
}
if(_loc1_ >= 35)
{
medal("35 Red Diamonds");
}
if(Data.enemies >= 300)
{
medal("300 Enemies");
}
if(Data.enemies >= 1000)
{
medal("1000 Enemies");
}
if(Data.maxTadpoleDistance >= 1000)
{
medal("Just Keep Swimming");
}
if(Data.maxRunDistance >= 2000)
{
medal("Tired Yet?");
}
if(Data.boss[0] > 0)
{
medal("Normalbrine");
}
if(Data.boss[2] > 0)
{
medal("Herobrine");
}
}
}
}