Chunky by FelipeFS
Chunky by FelipeFS
GPWiki.org
It is currently Fri Dec 19, 2014 3:08 pm

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Blast from the past
PostPosted: Thu Mar 28, 2013 2:19 am 
Digerati

Joined: Thu Sep 09, 2004 1:17 pm
Posts: 1820
Location: burrowed
I've been polishing and updating my website and trying to build a decent portfolio up there when i remembered. My actual first game.

viewtopic.php?f=3&t=249

Does someone by chance still have a copy of it? :P The host is down by now (naturally) and i have absolutely no clue where to look for another copy.

Also, reading a good bunch of the first posts i made on this board made me cringe in embarassment.

_________________
Long pork is people!

wzl's burrow


Top
 Profile  
 
 Post subject: Re: Blast from the past
PostPosted: Fri Mar 29, 2013 1:12 pm 
Dexterous Droid
User avatar

Joined: Wed Aug 18, 2004 7:40 pm
Posts: 3825
Location: South Africa
I've got copies of everything I've done apart from unbacked-up stuff I lost in my first and only hard drive failure. It's really amusing reading old code, some of it I feel quite impressed by my solutions - most of it is just "wtf" worthy.

_________________
Whatever the mind can conceive and believe, it can achieve


Top
 Profile  
 
 Post subject: Re: Blast from the past
PostPosted: Sun Mar 31, 2013 8:58 am 
BANNED

Joined: Sun Jun 24, 2012 12:49 am
Posts: 504
Minesweeper clone made in Game Maker at age 12; uncover_squares() script:

Code:
var unc,uncI,uncJ,goagain,mx,my,clipl,clipu,clipr,clipd;
unc = 1;
uncI[0] = i;
uncJ[0] = j;
square[i,j] = false;
squares_left -= 1;
goagain = true;
if num[i,j] == 0
while(goagain == true)
{
    goagain = false;
    for(e = 0; e < unc; e += 1)
    {
        mx = uncI[e];
        my = uncJ[e];
        clipl = mx == 0;
        clipu = my == 0;
        clipr = mx == global.horizontal_squares-1;
        clipd = my == global.vertical_squares-1;
        if !clipl
        {
            if square[mx-1,my] && !bad[mx-1,my] begin square[mx-1,my] = false; squares_left -= 1; goagain = true; if num[mx-1,my] == 0 {uncI[unc] = mx-1; uncJ[unc] = my; unc += 1} end
            if !clipu if square[mx-1,my-1] && !bad[mx-1,my-1] begin square[mx-1,my-1] = false; squares_left -= 1; goagain = true; if num[mx-1,my-1] == 0 {uncI[unc] = mx-1; uncJ[unc] = my-1; unc += 1} end
            if !clipd if square[mx-1,my+1] && !bad[mx-1,my+1] begin square[mx-1,my+1] = false; squares_left -= 1; goagain = true; if num[mx-1,my+1] == 0 {uncI[unc] = mx-1; uncJ[unc] = my+1; unc += 1} end
        }
        if !clipr
        {
            if square[mx+1,my] && !bad[mx+1,my] begin square[mx+1,my] = false; squares_left -= 1; goagain = true; if num[mx+1,my] = 0 {uncI[unc] = mx+1; uncJ[unc] = my; unc += 1} end
            if !clipu if square[mx+1,my-1] && !bad[mx+1,my-1] begin square[mx+1,my-1] = false; squares_left -= 1; goagain = true; if num[mx+1,my-1] == 0 {uncI[unc] = mx+1; uncJ[unc] = my-1; unc += 1} end
            if !clipd if square[mx+1,my+1] && !bad[mx+1,my+1] begin square[mx+1,my+1] = false; squares_left -= 1; goagain = true; if num[mx+1,my+1] == 0 {uncI[unc] = mx+1; uncJ[unc] = my+1; unc += 1} end
        }
        if !clipu if square[mx,my-1] && !bad[mx,my-1] begin square[mx,my-1] = false; squares_left -= 1; goagain = true; if num[mx,my-1] == 0 {uncI[unc] = mx; uncJ[unc] = my-1; unc += 1} end
        if !clipd if square[mx,my+1] && !bad[mx,my+1] begin square[mx,my+1] = false; squares_left -= 1; goagain = true; if num[mx,my+1] == 0 {uncI[unc] = mx; uncJ[unc] = my+1; unc += 1} end
        if unc > global.horizontal_squares*global.vertical_squares begin show_message("Detected non-stop repeat. Terminating loop at once."); goagain = false; break; end
    }
}
if squares_left == global.mines win = true;

Try to read it... haha. It's a bit interesting though.


Top
 Profile  
 
 Post subject: Re: Blast from the past
PostPosted: Sat Apr 13, 2013 3:59 am 
Funky Monkey

Joined: Mon Aug 16, 2004 2:48 pm
Posts: 1609
Location: Minneapolis, MN USA
So is this the thread I'm supposed to post on then? ;) :P

Cheers ... hope everyone is well!

-Bryk

_________________
www.mwgames.com ... Dicey Curves, Space Mission, Jump Gate, Gem Raider, DareBase, Castle Danger, Keeps & Moats Chess


Top
 Profile  
 
 Post subject: Re: Blast from the past
PostPosted: Sat Apr 13, 2013 8:03 pm 
Bibliotherapist
User avatar

Joined: Wed Nov 03, 2004 1:28 pm
Posts: 7120
Location: Wilts, Englandshire
Hi Bryk, Long time no see. How you doing?

_________________
10 PRINT "Bad Monkey ";
20 GOTO 10


Top
 Profile  
 
 Post subject: Re: Blast from the past
PostPosted: Sat Apr 13, 2013 8:46 pm 
Funky Monkey

Joined: Mon Aug 16, 2004 2:48 pm
Posts: 1609
Location: Minneapolis, MN USA
Hi Codey ... I'm doing pretty well. Staying busy on the board game front ... started playing around with some coding stuff again (but nothing to show publicly). Otherwise, busy with real life stuff -- day job, homefront, etc. :)

I stop by to take a peak at what's going on here once in a while ... pretty sure I've fallen way behind the tech now to be very useful in helping out though.

Are you in the 'stan right now? Or back in the UK again?

-Matt

_________________
www.mwgames.com ... Dicey Curves, Space Mission, Jump Gate, Gem Raider, DareBase, Castle Danger, Keeps & Moats Chess


Top
 Profile  
 
 Post subject: Re: Blast from the past
PostPosted: Sat Apr 13, 2013 9:13 pm 
Bibliotherapist
User avatar

Joined: Wed Nov 03, 2004 1:28 pm
Posts: 7120
Location: Wilts, Englandshire
Still hot and sandy, but only for a few more days.... :thumbs

_________________
10 PRINT "Bad Monkey ";
20 GOTO 10


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

Powered by phpBB® Forum Software © phpBB Group