Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: Builderboy on February 01, 2010, 10:12:53 pm

Title: Factory
Post by: Builderboy on February 01, 2010, 10:12:53 pm
Well i made this game in Stats today, I was inspired, what can i say :P  Well it was a very interesting game to code, took a lot of time to figure out how to make it all work and still conserve speed.  The basic premise of the game is this:  You work a claw in a factory, boxes are brought in from the left and into storage compartments on the right.  Boxes of different types are represented by different number.  Three boxes of the same type become packages and are taken out of the storage compartments.  You can use your claw to move the boxes so that they make packages with others.  You get paid $5 for every box you handle and $100 for every successfull package.  If you jam the machine by overflowing any of the storage containers you are fired and lose the game.

(http://i199.photobucket.com/albums/aa72/builderboy2005/SCREEN1.gif?t=1265079638)

The boxes were hard to code because there can be 2 on the screen at any given time, and in no particular order because you can hold onto a box for as long as you want :P  They are coded in as hardcoded objects, as in the engine would NOT be expandable.

The game has mutliple speeds, and multiple difficulty modes.  The different difficulties change how many different types of boxes you are sorting Easy-3 and Expert-6.  You have separate highscores for each difficulty modes, but are free to chose any speed for each difficulty mode.

I have not released the program yet, because as of now it is cluttered, in 6 subprograms, and horribly unoptomised, but I should have it out by the end of the night, or later if i'm slow

EDIT: Released version 1!  Should be free of bugs hopefully! :)
EDIT2: Released version 2! Now has survival mode and multiple bug fixes
Title: Re: Factory
Post by: Hot_Dog on February 01, 2010, 10:16:27 pm
WOW, this is one of the best calc games I've seen.   You've done a great job 
Title: Re: Factory
Post by: jsj795 on February 01, 2010, 10:16:48 pm
Wow! This game looks addicting. I gotta say, with all these new games coming up, I won't be able to concentrate on making my game o.o
Title: Re: Factory
Post by: Eeems on February 01, 2010, 10:17:14 pm
Wow! Looks great! Can't wait for more updates!
Title: Re: Factory
Post by: {AP} on February 01, 2010, 10:29:41 pm
It's annoying how amazing you are. >.<
"i made this game in Stats today"

It looks amazing for a one classer.
Best thing I ever did in one class period was that Simon clone. x.x

Regardless!
Congratulations on another great game, mate. ^^
Title: Re: Factory
Post by: Builderboy on February 01, 2010, 11:01:45 pm
Haha, thanks guys :) And it was more, I made the engine in Stats, finished the UI in English.  Unfortunately i need to add about 500 bytes in order to recall all the subs into one program.  I'm not going to use any tricky sub methods because the memory gain isn't significant, and i'm trying to drag as much speed out of this as possible :P  As it is I don't think it would be very fun on an 83.  I had to put 2 getKey movements in the main loop to keep the control smooth.
Title: Re: Factory
Post by: TIfanx1999 on February 02, 2010, 12:00:10 am
For something "thrown together" This looks sweet. I can definitely see myself "wasting" too much time playing something like this. XD
Title: Re: Factory
Post by: Builderboy on February 02, 2010, 01:21:20 am
ALrighty then, i have version 1.0 uploaded.  Try it out and tell me if you find any problems with it or if you have any suggestions!
Title: Re: Factory
Post by: DJ Omnimaga on February 02, 2010, 02:08:39 am
wow awesome! I hope this gets noticed when released on ticalc too, it looks really great! Are you planning to have a survival mode, where it starts at low difficulty and speed increases slowly with the time, like in Tetris?

Good job on this, seems to run quite fast so far too :)
Title: Re: Factory
Post by: Builderboy on February 02, 2010, 02:15:09 am
Hmmm that's a good idea, although there are only 3 reasonable speed settings (the fastest 3 are being used and any slower would just be annoying) so it would probably be increasing difficulty instead of speed.  In survival you could even have the difficulty be able to go past expert, although I would have to put a cap so that the number of types doesn't go past 9, although I seriously doubt anybody would be able to do that.  It could be a fifth option on the difficulty menu, and then I could use the empty line on the highscores menu :P
Title: Re: Factory
Post by: DJ Omnimaga on February 02, 2010, 02:19:24 am
well we never know :P



This is tool-assisted, though
Title: Re: Factory
Post by: Galandros on February 02, 2010, 09:18:25 am
Another great demonstration of how cool TI-BASIC can be in homescreen.
Title: Re: Factory
Post by: Builderboy on February 02, 2010, 10:44:30 am
O.O Wow Dj that was amazing, if tool assisted.  Maybe you could try to play my game with only 2 columns XD
Title: Re: Factory
Post by: Tribal on February 02, 2010, 11:12:39 am
well we never know :P



This is tool-assisted, though

...I only have one thing to say...

(http://image.fpsbanana.com/ico/sprays/default_4.jpg)
Title: Re: Factory
Post by: DJ Omnimaga on February 02, 2010, 02:39:40 pm
Keep in mind TAS != cheating, though :P. No code were used, just slowed down emulator speed, loads of save states and some glitch abuses. Oh and obviously luck manipulation (the gamer has the debugger open all the time to detect how randomizing works and when to do certain actions to get the pieces he wants)
Title: Re: Factory
Post by: ztrumpet on February 02, 2010, 04:31:50 pm
Wow!  Builderboy this looks really cool!  I can't wait to play it!
I can't believe you made something this great so quickly.  It's really, really neat!  How did you came up with the concept?

Excellent job!
Title: Re: Factory
Post by: Builderboy on February 02, 2010, 05:05:59 pm
Well, the concept was simple http://www.arcadevillage.com/olgquarter/factory/factory.php :P

I was playing it all the night before and realized it would be so awesome if i could port it, so I spent all night thinking up the concept.
Title: Re: Factory
Post by: ztrumpet on February 02, 2010, 05:42:22 pm
Yours is a very accurate and awesome port.  Great job again!
Title: Re: Factory
Post by: TIfanx1999 on February 02, 2010, 07:28:03 pm
Well, I downloaded it and tried it on both my Ti-83+BE and my Ti-83+SE. It functions properly on the BE, but isn't fast enough to be any fun. On the SE however, it was quite fast, and highly addictive as well. Great job!
Title: Re: Factory
Post by: Builderboy on February 02, 2010, 07:37:30 pm
Yeah i suspected as much.  I only every play it on Fast because thats the only mode where i have enough patience XD
Title: Re: Factory
Post by: ztrumpet on February 02, 2010, 08:29:50 pm
I love this game!  I plaied all difficulties, with between 600 and 900 on the hardest three.  I plaied easy for over 30 minutes (cause I could) and got over 15000 before letting it fill up on purpose.  I found two bugs:
1: Easy is spelled wrong on the Highscore table.
2: In the main menu, when you chose the difficulty and press Left on Easy, it Errors.  This is because you have a not(A where it should be a not(Ans. :)

Awesome job!  I can't wait for a final release with numbers up to 9! ;D
Title: Re: Factory
Post by: Builderboy on February 02, 2010, 08:34:24 pm
Thanks, I already found the not(A) error, i made it during my quick optimizing sprint last night :P I also managed to find a very very obscure bug where you are holding a box, and another is falling on the same row, if you drop yours exactly on top of the other one, the second to land will not be displayed.  I'll upload the new version tonight which will include the fixed bugs and Survival mode.
Title: Re: Factory
Post by: jsj795 on February 02, 2010, 09:46:51 pm
Cool! I'll make sure to download when you upload it. I don't want to download this version and few hours later download another one :P Just plain laziness
Title: Re: Factory
Post by: Builderboy on February 03, 2010, 12:24:34 am
Alright, the new version is up!  I believe i fixed all the bugs, as well as crushed a few obscure ones that were popping up.  I also further optimized the engine, so it should be a bit faster now, although it won't be significant.

Tell me what you think!
Title: Re: Factory
Post by: DJ Omnimaga on February 03, 2010, 02:55:54 am
Cool, will check soon :)
Title: Re: Factory
Post by: ztrumpet on February 03, 2010, 08:14:15 am
Fantatic!  This is great!  I love the new mode. When does it change how many Crate-Types there are?  Every 400?

This is a great game! :D
Title: Re: Factory
Post by: Builderboy on February 03, 2010, 10:23:07 am
Hehe, thankz :)

Its every 500 points, oh and by the way, if you pause the game, don't press SIN to unpause it O.O
Title: Re: Factory
Post by: DJ Omnimaga on February 03, 2010, 02:17:31 pm
Because it's a sin to cheat? *runs*
Title: Re: Factory
Post by: Silver Shadow on February 03, 2010, 02:54:34 pm
Better run quickly, BuilderBoy has long legs. ;D
Title: Re: Factory
Post by: Builderboy on February 03, 2010, 03:25:42 pm
No it's not a cheat :P if anything it's a punishment for tryin to cheat!!
Title: Re: Factory
Post by: ztrumpet on February 03, 2010, 04:50:19 pm
What does it do?  I know it erases your progress from the Main Menu.  What's it do when paused?
Title: Re: Factory
Post by: Builderboy on February 03, 2010, 06:40:46 pm
Put it on medium, then pause the game, press sin, and keep playing.  You will see ;)
Title: Re: Factory
Post by: ztrumpet on February 03, 2010, 08:18:34 pm
I didn't see. :(  I'm sorry, but all I notice is P now equals 1, and no effect on gameplay.  What am I doing wrong?
Title: Re: Factory
Post by: jsj795 on February 03, 2010, 08:52:14 pm
I got it... so after pressing sin, how much point did you get, ztrumpet?
Title: Re: Factory
Post by: ztrumpet on February 04, 2010, 07:37:41 am
Ah, I didn't look at the money...
 *ZTrumpet tries again...
Title: Re: Factory
Post by: Builderboy on February 04, 2010, 10:24:04 am
Here I'll give you a hint :P After pressing sin, I want you to count the number of crates you complete before you lose ;D
Title: Re: Factory
Post by: ztrumpet on February 04, 2010, 04:34:58 pm
Ahhhhhhhh!!!  You evil genius!  >:D  That's so clever and frustrating.  Great job, though why is it a cheat?  It is pretty funny, though. ;D
Title: Re: Factory
Post by: Builderboy on February 04, 2010, 05:07:35 pm
Haha, mostly just to trick friends  8)
Title: Re: Factory
Post by: ztrumpet on February 04, 2010, 06:55:54 pm
That's great. ;D

*ZTrumpet hints at his sig...
Title: Re: Factory
Post by: DJ Omnimaga on February 04, 2010, 07:02:04 pm
Oh you're making your own version too?
Title: Re: Factory
Post by: ztrumpet on February 04, 2010, 07:19:28 pm
Kinda, when it's fixed, I'll release it. Builderboy, you've inspired me to come up with something like this. ;D
Title: Re: Factory
Post by: Builderboy on February 04, 2010, 07:25:24 pm
Haha nice, I'll have to turn sigs on so i can see what it is :)

Ooooh Factory Theta eh?  Can't wait to see it ^^
Title: Re: Factory
Post by: DJ Omnimaga on February 05, 2010, 01:58:41 am
You have sigs disabled? D:

but again in large topics they can end up redundant x.x

It is not as bad as TIMGUL, though, back when it was still active. Some people there had signatures that were twice higher than a post
Title: Re: Factory
Post by: Builderboy on February 05, 2010, 02:55:11 am
Yeah I do, Its a Habbit I picked up from an old board.  I just find Anything more than a little bit of yet distracting.