#include "hostAPI.txt"

func initSystem() {
	htSetBulletScreenRect(150, -25, 650, 625);
}

func initScript() {
	var iStartScriptID = htLoadScript("start.txt");
	if(iStartScriptID != -1) {
		htSetCurrActiveScript(iStartScriptID);
	}
	else {
		htMessageBox("Error loading entrance script.Exiting...", "Fatal Error");
		htExit();
	}
}

func initDifficulty() {
	htAddDifficultyIdent("ÆÕÍ¨");
	htAddDifficultyIdent("À§ÄÑ");
}

func initBullet() {
	htSetBulletManagerTexture("bullet.png");
	htAddBulletIdent(0, 0, 0, 16, 16, 8, 3);
	htAddBulletIdent(1, 0, 16, 32, 32, 8, 6);
	htAddBulletIdent(2, 0, 48, 24, 24, 9, 3);
	htAddBulletIdent(3, 0, 72, 24, 24, 9, 3);
	htAddBulletIdent(4, 0, 96, 24, 24, 9, 2);
	htAddBulletIdent(5, 0, 144, 16, 16, 16, 3);
	
	htAddBulletIdent(10, 0, 392, 24, 48, 8, 3);
}

func initBackground() {
//	htSet2DBackground("tydjnh.png", 3, 0);
//	htSetBackgroundAlpha(0.9);
//	htEnable2DFog1(true, 5);
}

func init() {
	//do something here?
}

func initSoundEffects() {
	htAddSoundEffect(SE_SCOREBOARD, "StageClear.wav");
}