Jump to content
A 2021 backup has been restored. Forums are closed and work in progress. Join our Discord server for more updates! ×
SoaH City Message Board

addictive game - Red Square


Rael0505

Recommended Posts

0.256 seconds and I gave up. I think I'm the only person who hates playing games that are needlessly difficult. I hate getting angry over a flash game. And I know if I were to actually play this, I would end up getting seriously angry.

However, a quick viewsource was very interesting..

function movenemy(num,step_x,step_y){

	var enemy = "enemy" + num + ""
	var enemyx = givesize(enemy, 'x');
	var enemyy = givesize(enemy, 'y');

	if (giveposX(enemy) >= (450 - enemyx) || giveposX(enemy) <= 0) {
		enemyxdir[num] = -1 * enemyxdir[num];
		}
	if (giveposY(enemy) >= (450 - enemyy) || giveposY(enemy) <= 0) {
		enemyydir[num] = -1 * enemyydir[num];
		}

	var newposx = giveposX(enemy) + (step_x*enemyxdir[num]) + 0;
	var newposy = giveposY(enemy) + (step_y*enemyydir[num]) + 0;

	setposX(enemy, newposx);
	setposY(enemy, newposy);

	checktouching(num + "");
	if (touch == 1) {
		stop(); reset();
		}
}

Link to comment
Share on other sites

It's not as hard as it seems. On my fourth try I lasted 21 seconds!

There should be a high score (time) table.

There is, he just has it commented out for some reason..

//		var entername = window.confirm('Enter your name?');
// if (entername) {
// window.open("?" + finaltime,'winwin','width=300,height=500,left=40,top=40,status=1,resizable');
// document.location.reload();
// }
// else document.location.reload();
document.location.reload();
}[/CODE]

Link to comment
Share on other sites

I guess considering that you'll likely want to try it again and again really quickly, having to close a pop-up message each time would get kinda annoying.

Might be better if it only did this when you get a higher score, but I don't see any limiting statements in there.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...