Jump to content



0

Rush Hour


19 replies to this topic

#1 lucien2 OFFLINE  

lucien2

    Chopper Commander

  • 160 posts
  • Location:Switzerland

Posted Tue Aug 23, 2011 5:46 PM

Here is my first GCC game: Rush Hour.
http://en.wikipedia....ur_(board_game)

Attached File  RUSH_HOUR.zip   12.17K   13 downloads

Only one level at the moment, no sounds.



Spoiler


#2 insomnia OFFLINE  

insomnia

    Space Invader

  • 36 posts
  • Location:Pittsburgh, PA

Posted Tue Aug 23, 2011 6:36 PM

Great job! That's just too darn cool.

Unfortunately, I see you've had to put in a lot of effort to work around problems in the compiler. I'm sorry about that. You've also pointed out how badly a library of basic functions is needed (display stuff, keyboard support, file IO, sound), but it may be a while before I have a chance to get to that.

First thing's first. Let me see if I can get rid of the problems you've found so far.

#3 OLD CS1 OFFLINE  

OLD CS1

    Moonsweeper

  • 392 posts
  • IT Samurai
  • Location:Tallahassee, FL

Posted Tue Aug 23, 2011 7:51 PM

Indeed, very cool.

Yes, a standard library, as such, with routines like VMBW would be exceptionally useful. I am rather smitten with the constants used, like for color names, etc. and think those could be standardized, as well.

#4 lucien2 OFFLINE  

lucien2

    Chopper Commander

  • 160 posts
  • Location:Switzerland

Posted Tue Aug 23, 2011 11:15 PM

View Postinsomnia, on Tue Aug 23, 2011 6:36 PM, said:

Unfortunately, I see you've had to put in a lot of effort to work around problems in the compiler. I'm sorry about that.

That's part of the fun. It's the first time I'm a beta tester.

Quote

You've also pointed out how badly a library of basic functions is needed (display stuff, keyboard support, file IO, sound), but it may be a while before I have a chance to get to that.

I like to start from scratch. I don't have the ambition to make a standard library. For exemple, my file functions only support DV80, because I know I will never need other formats.

#5 lucien2 OFFLINE  

lucien2

    Chopper Commander

  • 160 posts
  • Location:Switzerland

Posted Tue Aug 23, 2011 11:18 PM

View PostOLD CS1, on Tue Aug 23, 2011 7:51 PM, said:

I am rather smitten with the constants used, like for color names, etc.

But hey, that's the color names from the E/A manual!

#6 sometimes99er OFFLINE  

sometimes99er

    Stargunner

  • 1,922 posts
  • Location:Denmark

Posted Wed Aug 24, 2011 12:07 AM

Very nice. Good job - on both the game and the programming. Hope to see more of GCC.

:thumbsup:

#7 lucien2 OFFLINE  

lucien2

    Chopper Commander

  • 160 posts
  • Location:Switzerland

Posted Sun Aug 28, 2011 5:06 AM

I studied the linker (LD) manual. Now the code loads at >A000 instead of >6000 and it can be run on real hardware. :ponder:

Three levels, press (N)ext or (P)revious to switch, (space) to select a block and (ESDX) to move.
Rules: Push the red block to the exit.

Attached File  RUSH_HOUR2.zip   10.96K   8 downloads

#8 OX. OFFLINE  

OX.

    Chopper Commander

  • 136 posts

Posted Sun Aug 28, 2011 11:08 AM

Can you make a .bin cart image so we can run it on Classic99?

#9 lucien2 OFFLINE  

lucien2

    Chopper Commander

  • 160 posts
  • Location:Switzerland

Posted Sun Aug 28, 2011 12:12 PM

View PostOX., on Sun Aug 28, 2011 11:08 AM, said:

Can you make a .bin cart image so we can run it on Classic99?

You can. It's a standard EA5 file (E/A cartridge, "RUN PROGRAM FILE").

Here's your .bin file: Attached File  cartridge binary for OX.zip   13.73K   4 downloads
It's not finished yet, don't put it in your gamebase! ;)

I think I need to increase the gap between the blocks. :|

Posted Image

#10 Vorticon OFFLINE  

Vorticon

    Moonsweeper

  • 494 posts
  • Location:St. Paul, MN, USA

Posted Sun Aug 28, 2011 12:26 PM

View Postlucien2, on Sun Aug 28, 2011 5:06 AM, said:

I studied the linker (LD) manual. Now the code loads at >A000 instead of >6000 and it can be run on real hardware. :ponder:

Three levels, press (N)ext or (P)revious to switch, (space) to select a block and (ESDX) to move.
Rules: Push the red block to the exit.

Attachment RUSH_HOUR2.zip
Is this your final version or are you still tweaking it?

#11 lucien2 OFFLINE  

lucien2

    Chopper Commander

  • 160 posts
  • Location:Switzerland

Posted Sun Aug 28, 2011 12:32 PM

View PostVorticon, on Sun Aug 28, 2011 12:26 PM, said:

Is this your final version or are you still tweaking it?

Not finished.

TO DO:
- Scores (moves)
- Highscores and current level saved into a file
- Small animation and sound when a level is finished
- 30 levels (minimum)
- There is still a strange bug when you move a 3-tiles block

#12 Vorticon OFFLINE  

Vorticon

    Moonsweeper

  • 494 posts
  • Location:St. Paul, MN, USA

Posted Sun Aug 28, 2011 12:35 PM

View Postlucien2, on Sun Aug 28, 2011 12:32 PM, said:

View PostVorticon, on Sun Aug 28, 2011 12:26 PM, said:

Is this your final version or are you still tweaking it?

Not finished.

TO DO:
- Scores (moves)
- Highscores and current level saved into a file
- Small animation and sound when a level is finished
- 30 levels (minimum)
- There is still a strange bug when you move a 3-tiles block
Really looking forward to seeing the finished product :)

#13 lucien2 OFFLINE  

lucien2

    Chopper Commander

  • 160 posts
  • Location:Switzerland

Posted Mon Aug 29, 2011 3:51 PM

View Postlucien2, on Sun Aug 28, 2011 12:32 PM, said:

TO DO:
- Scores (moves)
- Highscores and current level saved into a file
- Small animation and sound when a level is finished
- 30 levels (minimum)
- There is still a strange bug when you move a 3-tiles block

Now, I can call it finished! :)

Attached File  RUSH_HOUR3.zip   19.03K   15 downloads

#14 OX. OFFLINE  

OX.

    Chopper Commander

  • 136 posts

Posted Mon Aug 29, 2011 4:39 PM

View Postlucien2, on Mon Aug 29, 2011 3:51 PM, said:

View Postlucien2, on Sun Aug 28, 2011 12:32 PM, said:

TO DO:
- Scores (moves)
- Highscores and current level saved into a file
- Small animation and sound when a level is finished
- 30 levels (minimum)
- There is still a strange bug when you move a 3-tiles block

Now, I can call it finished! :)

Attached File  RUSH_HOUR3.zip   19.03K   15 downloads

Wow! That's what I call a fast update. Thanks.

#15 Vorticon OFFLINE  

Vorticon

    Moonsweeper

  • 494 posts
  • Location:St. Paul, MN, USA

Posted Mon Aug 29, 2011 4:54 PM

View Postlucien2, on Mon Aug 29, 2011 3:51 PM, said:

View Postlucien2, on Sun Aug 28, 2011 12:32 PM, said:

TO DO:
- Scores (moves)
- Highscores and current level saved into a file
- Small animation and sound when a level is finished
- 30 levels (minimum)
- There is still a strange bug when you move a 3-tiles block

Now, I can call it finished! :)

Attached File  RUSH_HOUR3.zip   19.03K   15 downloads
Damn! I'm going to have to update the gameshelf site again much sooner than I expected! And the beauty of it is that most of the material I have has been recent projects! I can definitely tell that the TI is currently undergoing a renaissance :) Can I assume that you are OK with your program being posted on the site?

#16 lucien2 OFFLINE  

lucien2

    Chopper Commander

  • 160 posts
  • Location:Switzerland

Posted Mon Aug 29, 2011 10:26 PM

View PostVorticon, on Mon Aug 29, 2011 4:54 PM, said:

Can I assume that you are OK with your program being posted on the site?

Sure, I would be honored. :)

Maybe don't upload the source until the GCC bugs are removed. I don't know if it would be good advertising for GCC.

#17 Vorticon OFFLINE  

Vorticon

    Moonsweeper

  • 494 posts
  • Location:St. Paul, MN, USA

Posted Tue Aug 30, 2011 5:00 AM

View Postlucien2, on Mon Aug 29, 2011 10:26 PM, said:

View PostVorticon, on Mon Aug 29, 2011 4:54 PM, said:

Can I assume that you are OK with your program being posted on the site?

Sure, I would be honored. :)

Maybe don't upload the source until the GCC bugs are removed. I don't know if it would be good advertising for GCC.
Great! Is Insomnia the programmer of GCC for the TI?

#18 lucien2 OFFLINE  

lucien2

    Chopper Commander

  • 160 posts
  • Location:Switzerland

Posted Tue Aug 30, 2011 11:21 AM

View PostVorticon, on Tue Aug 30, 2011 5:00 AM, said:

Great! Is Insomnia the programmer of GCC for the TI?

Yes, that's him.

#19 insomnia OFFLINE  

insomnia

    Space Invader

  • 36 posts
  • Location:Pittsburgh, PA

Posted Thu Mar 15, 2012 12:46 AM

Now that the compiler has had a lot of fixes applied, I can replace some of the workarounds with the code which was originally intended, This makes for more compact and much easier to understand code.

My intent was just to undo the damage which was forced upon this code by the problems in the compiler. I've also added a rush.dsk disk image (containing an EA5 file named RUSH) to make it easier to try the resulting program.

Hopefully this will make lucien feel better about making the source code available.

Attached Files



#20 lucien2 OFFLINE  

lucien2

    Chopper Commander

  • 160 posts
  • Location:Switzerland

Posted Thu Mar 15, 2012 5:25 AM

View Postinsomnia, on Thu Mar 15, 2012 12:46 AM, said:

Hopefully this will make lucien feel better about making the source code available.

I hope when other people see the code without any "GCC bug" comment, they will be more enthusiast to try GCC.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users