00:00
00:00
View Profile Jeffmakesgames
Well, I tinker around with small game projects. I hope to have something neat for you all to play around with.

Jeff @Jeffmakesgames

Age 37, Male

Oregon, USA

Joined on 10/27/09

Level:
3
Exp Points:
64 / 100
Exp Rank:
> 100,000
Vote Power:
3.03 votes
Rank:
Civilian
Global Rank:
> 100,000
Blams:
0
Saves:
0
B/P Bonus:
0%
Whistle:
Normal
Medals:
506

Number Factor - Setup

Posted by Jeffmakesgames - June 16th, 2015


Well, I am about to test something in game maker to see if it can see my data file and load/save to it, if it works, I can begin doing stuff with it for Number Factor.

Anyway, I feel like sharing something behind the scenes in the game, how it makes a setup of discs when you start a game.  We'll take... Classic Mode for example.

First, it decides how many discs the setup should be made of.  This is between 7 and 21 discs.  Other modes may use different amounts.

Now that it has a number of discs, I made it look at each column and ask whether or not that specific column has less than 6 discs in it.  If so, I tell it to make it a possibility to add a disc to it.  Then to randomly add a disc to a column.  I repeat this until all discs are added to columns.  If a column has 6 discs, it cannot be added as a possibility.  Under no circumstances in any game mode will any columns be full when you start a game.

Okay, all discs added.  The thing is, these are not the normal game discs you drop, these are special 'setup' discs.  Once added, they are given a random value.  These determine if it will be a gray disc or a numbered color disc.

Now, a check is made with the ''setup' discs.  Does it match its connected horizontal or vertical group?  If so, I make that setup disc change its value to become a gray disc.  Now that the check is done, I tell the game to make all the 'setup' discs into the actual game discs and the screen fades in.  This entire setup is done in pretty much an instant.

So, every time you play, you get a new setup randomly generated.  PERFECT!

---------------------------------------------------------------------

UPDATE: Well, it seems my read and write to the save file was a success!  I will begin looking into Number Factor and see if I can't get you guys some way to have local high scores + achievements and stuff.


Comments

Ooh yeah