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);
}
Downloads and Links
Ratings
![]() | Coolness | 50% |
#737 | Humor | 2.24 |
#886 | Innovation | 2.63 |
#892 | Graphics | 2.57 |
#935 | Mood | 2.48 |
#937 | Theme | 3.26 |
#1069 | Fun | 2.39 |
#1108 | Overall | 2.53 |
Comments
Cute game, interesting dynamic. I didn't try the eskimoe, I assumed he would kill me. My daughter thought it was cute too.
Interesting take on the survival genre and with cure graphics. Good job!
I like the cute graphics and its an interesting take on the survival genera.
Funny, but I wasn't sure, what I'm doing :-)
But it's a good starting point!
Pretty good game, not really sure what was going on though.:P
Nice idea! It was fairly easy, had to "die on purpose" to die. A nice game for a first try. Good job!
Congrats on your first LD! Great concept, and I love the programmer art with the cub's bobbin head, good stuff!
It was a good interpretation of the theme but it didn't hold my interest for too long.
Cute game indeed, but I ran into some bugs where it would lock up esp at 0 action points.
You must sign in to comment.
TEAMS: Teams entering the Jam should pick a single representative to submit your game, or create a team specific account you can share. We currently do not support Team Voting, but sharing an account and together playing and rating games is acceptable.
NOT LOGGED IN?: If you get a message about not being logged in, even though you are, it’s because your web browser cached the non-logged in page. You can fix this by either refreshing your cache or clearing your cache. CTRL+F5 in many browsers. Chrome is a bit more work. Press F12 to enable Developer Mode, then you can right click on the refresh button and select “Empty Cache and Hard Reload”. This option is unavailable if you are not in Developer Mode.
PORTS: Ports to other platforms can be done after the deadline. That said, the sooner you finish your port, the sooner people can play your game, improving your chances of placing in the final results. For best results, provide a Web version of your game, or a Windows version with no dependencies. Also be sure to rate about 20 games to improve your visibility.
MY GAME DOESN’T SHOW UP: If you can’t find your game, it’s usually because the URL to your downloads are missing ‘http://‘. Fix your URLs (http://mysite.com/mygame.zip) and you will show up. Alternatively, if you just posted it, wait a minute. The cache may not have refreshed yet.
MY GAME CRASHES, IS UNBEATABLE, OR I MADE A TYPO: We allow you to fix crash or win condition bugs after the deadline (in a sense, like “porting” to support more players). We also allow “typo” bugs. I.e. A true that should have been a false, a word that should have been a different word, very tiny changes that you would have caught if you had more sleep. We leave this open to interpretation, but generally speaking your game should be identical to the game you submitted. No new features, just things you messed up last minute. Typos.
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.