BackDoor- Door 1
You find yourself in a strange house with only a man on the phone as a guide.
4.13 / 5.00 25,829 ViewsMini Commando
Action adventure game with nazi enemies in the second world war.
3.96 / 5.00 21,034 Viewspackage
{
import com.newgrounds.*;
import com.newgrounds.components.*;
import flash.display.MovieClip;
public class Preloader extends MovieClip
{
public function Preloader()
{
var apiConnector:APIConnector = new APIConnector();
apiConnector.className = "MyGame";
apiConnector.apiId = "Your API ID";
apiConnector.encryptionKey = "Your Encryption Key";
addChild(apiConnector);
// center connector on screen
if(stage)
{
apiConnector.x = (stage.stageWidth - apiConnector.width) / 2;
apiConnector.y = (stage.stageHeight - apiConnector.height) / 2;
}
}
}
}package
{
import com.newgrounds.components.*;
import org.flixel.FlxGame;
public class MyGame extends FlxGame
{
override protected function create(FlashEvent:Event):void
{
super.create(FlashEvent);
API.connect(root, "Your API ID", "Your Encryption Key");
}
}package
{
import com.newgrounds.components.*;
import org.flixel.FlxGame;
public class MyGame extends FlxGame
{
override protected function create(FlashEvent:Event):void
{
super.create(FlashEvent);
var medalPopup:MedalPopup = new MedalPopup();
medalPopup.x = medalPopup.y = 5;
root.addChild(medalPopup);
}
}