Polar bear survival

Overall★★★★★★★★★★2.53
Fun★★★★★★★★★★2.39
Innovation★★★★★★★★★★2.63
Theme★★★★★★★★★★3.26
Graphics★★★★★★★★★★2.57
Humor★★★★★★★★★★2.24
Mood★★★★★★★★★★2.48
Coolness★★★★★★★★★★50%
Welcome to Polar bear survival! This game is a management/survival/sim game where you are a Polar bear trying to survive. This is my very first ludum dare and i am a novice programmer. Any feedback is great. Thanks for playing!

Things to note:
-if you cant seem to do anything, look at your action points. If they are at 0, sleep in the cave.

-if the river does not have ice over it, you cannot reach the seal.

-Humans give more food than seals.

-Snowstorms freeze you in place.

-Game made with as3

i could not (for whatever reason) upload my flash file, so here is my extremely messy cod:

frame 1:

stop();
import flash.utils.Timer;
var hunger:int = 30;
var threat:int = 0;
var warmpth:int = 100;
var actionPoints:int = 5;
var score:int = 0;

var riverIce:Boolean = true;
var seals:Boolean = true;
var cave:Boolean = true;
var people:Boolean = false;
var wolf:int = 0;
var snowStorm:Boolean = false;

var position:int = 0;

var gameTimer:Timer = new Timer(30000);
var scoreTimer:Timer = new Timer(1000);
var iceTimer:Timer = new Timer(30000);
var wolfTimer:Timer = new Timer(7000);
var snowTimer:Timer = new Timer(10000);
var display:Timer = new Timer(10);
var hungerTimer:Timer = new Timer(2000);
var threatTimer:Timer = new Timer(40000);
var aTimer:Timer = new Timer(4000);
var bTimer:Timer = new Timer(4000);
var cTimer:Timer = new Timer(4000);
var dTimer:Timer = new Timer(4000);
start_btn.addEventListener(MouseEvent.CLICK, onStart);
function onStart(event:MouseEvent):void
{
gotoAndPlay(2);
}

frame 2:

stop();
if (snowStorm == false)
{
removeChild(snowStorm_mc);
}
if (riverIce == false)
{
removeChild(ice_mc);
}
seal_btn.addEventListener(MouseEvent.CLICK, onSeal);
wolf_btn.addEventListener(MouseEvent.CLICK, onWolf);
humans_btn.addEventListener(MouseEvent.CLICK, onHumans);
sleep_btn.addEventListener(MouseEvent.CLICK, onSleep);
gameTimer.addEventListener(TimerEvent.TIMER, onGT);
snowTimer.addEventListener(TimerEvent.TIMER, onS);
wolfTimer.addEventListener(TimerEvent.TIMER, onW);
iceTimer.addEventListener(TimerEvent.TIMER, onI);
display.addEventListener(TimerEvent.TIMER, onDisplay);
hungerTimer.addEventListener(TimerEvent.TIMER, onFood);
threatTimer.addEventListener(TimerEvent.TIMER, onT);
scoreTimer.addEventListener(TimerEvent.TIMER, onScore);
gameTimer.start();
scoreTimer.start();
hungerTimer.start();
wolfTimer.start();
display.start();
threatTimer.start();
function onScore(event:TimerEvent):void
{
score += 1;
}
function onT(event:TimerEvent):void
{
threat -= 1;
}
function onFood(event:TimerEvent):void
{
hunger -= 1;
}
function onDisplay(event:TimerEvent):void
{
if (threat= 10)||(threat >= 10)||(hunger0)&&(snowStorm == false))
{
actionPoints -= 1;
hunger += 5;
trace("seal");
gotoAndPlay(3);
}
}
function onSleep(event:MouseEvent):void
{
if(snowStorm == false)
{
actionPoints += 3;
warmpth += 10;
trace("Sleep");
gotoAndPlay(4);
}
}
function onWolf(event:MouseEvent):void
{
if ((actionPoints>0)&&(snowStorm == false))
{
actionPoints -= 1;
wolf -= 2;
trace("Wolf");
gotoAndPlay(6);
}
}
function onHumans(event:MouseEvent):void
{
if ((actionPoints>0)&&(snowStorm == false))
{
actionPoints -= 1;
hunger += 10;
threat += 2;
trace("Peopsle");
gotoAndPlay(5);
}
}

frame 3 - 6 (aTimer-bTimer-cTimer-dTimer):

stop();
aTimer.addEventListener(TimerEvent.TIMER, onA);
aTimer.start();
function onA(event:TimerEvent):void
{
aTimer.stop();
gotoAndPlay(2);
}

frame 7:

stop();
scoreTimer.stop();
score_txt.text = score.toString();
restart_btn.addEventListener(MouseEvent.CLICK, onRestart);
gameTimer.stop();
iceTimer.stop();
hungerTimer.stop();
wolfTimer.stop();
display.stop();
threatTimer.stop();
aTimer.stop();
bTimer.stop();
cTimer.stop();
dTimer.stop();
snowTimer.stop();

function onRestart(event:MouseEvent):void
{
gotoAndPlay(1);
}

Comments15

Yaroslav Kravtsov
Yaroslav Kravtsov8 Dec 2014, 19:23
You can use for your code sites like http://pastebin.com/ and don't mess description. I can recommend to look at game "Gods will be watching". This is a game borned on previous Ludum Dare and good example of managment game.
wer2chosen
wer2chosen10 Dec 2014, 01:07
Cute game, interesting dynamic. I didn't try the eskimoe, I assumed he would kill me. My daughter thought it was cute too.
cmayhem10 Dec 2014, 11:02
Interesting take on the survival genre and with cure graphics. Good job!
Apple Padle10 Dec 2014, 12:17
very rawrful!
Havi
Havi10 Dec 2014, 13:46
Cute game! I liked it :)
TriSquare10 Dec 2014, 13:51
I like the cute graphics and its an interesting take on the survival genera.
gene-z10 Dec 2014, 22:00
Good Game , Congratulations
Jonapulse
Jonapulse10 Dec 2014, 23:16
Interesting.

I wasn't quite sure why I died when I did.
xWarZonex11 Dec 2014, 20:39
Pretty good game, not really sure what was going on though.:P
Crosstales11 Dec 2014, 20:39
Funny, but I wasn't sure, what I'm doing :-)
But it's a good starting point!
Mekuri11 Dec 2014, 22:24
Nice idea! It was fairly easy, had to "die on purpose" to die. A nice game for a first try. Good job!
6DownStudios
6DownStudios12 Dec 2014, 02:15
Congrats on your first LD! Great concept, and I love the programmer art with the cub's bobbin head, good stuff!
Teesquared
Teesquared14 Dec 2014, 15:40
It was a good interpretation of the theme but it didn't hold my interest for too long.
TaoPhoenix26 Dec 2014, 09:48
Cute game indeed, but I ran into some bugs where it would lock up esp at 0 action points.

Other games by @tmat-productions

Found a bug?
Tell us on Discord