Polar bear survival by TMAT Productions

[raw]
made by TMAT Productions for LD31 (COMPO)
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<0)
{
threat = 0;
}
if (wolf<0)
{
wolf = 0;
}
threat_txt.text = threat.toString();
hunger_txt.text = hunger.toString();
actionPoints_txt.text = actionPoints.toString();
warmpth_txt.text = warmpth.toString();
wolf_txt.text = wolf.toString();

if ((wolf >= 10)||(threat >= 10)||(hunger<=0)||(warmpth<=0))
{
gotoAndStop(7);
}
}
function onGT(event:TimerEvent):void
{
var randomEvent:int = (Math.random()*4);
if (randomEvent==0)
{
trace("ice");
removeChild(ice_mc);
iceTimer.start();
riverIce = false;
}
else if (randomEvent==1)
{
trace("Storm");
snowTimer.start();
snowStorm = true;
warmpth -= 50;
}
else if (randomEvent==2)
{
trace("ice");
removeChild(ice_mc);
iceTimer.start();
riverIce = false;
}
}
function onI(event:TimerEvent):void
{
iceTimer.stop();
riverIce = true;
}
function onW(event:TimerEvent):void
{
wolf += 1;
}
function onS(event:TimerEvent):void
{
removeChild(snowStorm_mc);
snowStorm = false;
snowTimer.stop();
}
function onSeal(event:MouseEvent):void
{
if ((riverIce == true)&&(actionPoints>0)&&(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);
}

Ratings

Coolness 50% 3
Overall 2.53 1108
Fun 2.39 1069
Graphics 2.57 892
Humor 2.24 737
Innovation 2.63 886
Mood 2.48 935
Theme 3.26 937

Feedback

Yaroslav Kravtsov
08. Dec 2014 · 19:18 UTC
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
10. Dec 2014 · 01:02 UTC
Cute game, interesting dynamic. I didn't try the eskimoe, I assumed he would kill me. My daughter thought it was cute too.
cmayhem
10. Dec 2014 · 10:57 UTC
Interesting take on the survival genre and with cure graphics. Good job!
Apple Padle
10. Dec 2014 · 12:12 UTC
very rawrful!
Havi
10. Dec 2014 · 13:41 UTC
Cute game! I liked it :)
TriSquare
10. Dec 2014 · 13:46 UTC
I like the cute graphics and its an interesting take on the survival genera.
gene-z
10. Dec 2014 · 21:55 UTC
Good Game , Congratulations
Jonapulse
10. Dec 2014 · 23:11 UTC
Interesting.

I wasn't quite sure why I died when I did.
Crosstales
11. Dec 2014 · 20:34 UTC
Funny, but I wasn't sure, what I'm doing :-)
But it's a good starting point!
xWarZonex
11. Dec 2014 · 20:34 UTC
Pretty good game, not really sure what was going on though.:P
Mekuri
11. Dec 2014 · 22:19 UTC
Nice idea! It was fairly easy, had to "die on purpose" to die. A nice game for a first try. Good job!
6DownStudios
12. Dec 2014 · 02:10 UTC
Congrats on your first LD! Great concept, and I love the programmer art with the cub's bobbin head, good stuff!
Teesquared
14. Dec 2014 · 15:35 UTC
It was a good interpretation of the theme but it didn't hold my interest for too long.
TaoPhoenix
26. Dec 2014 · 09:43 UTC
Cute game indeed, but I ran into some bugs where it would lock up esp at 0 action points.
maxmetallica
28. Dec 2014 · 02:50 UTC
osm game