Jump to content

0

Lego game for kids (or lego enthusiasts?)


8 replies to this topic

#1 TEXAS_JOE OFFLINE  

TEXAS_JOE

    Chopper Commander

  • 179 posts
  • Currently working on Final Furlong

Posted Sun Feb 12, 2012 6:16 AM

Using keys S and D to navigate left and right,  select any brick type by pressing the corresponding key shown on screen.
to drop the brick press the Space bar.  If you go wrong, simply press U to undo.
Pressing C key will clear the screen.

More brick types have been added, there's even a chimney pot thrown in, and there's a couple of different blue door tiles too.



Attached File  ti 99 lego.bmp   165.78K   13 downloadsAttached File  LEGO2.zip   3.83K   8 downloads

Edited by TEXAS_JOE, Mon Feb 13, 2012 2:55 PM.


#2 sometimes99er ONLINE  

sometimes99er

    River Patroller

  • 2,304 posts
  • Location:Denmark

Posted Sun Feb 12, 2012 6:49 AM

Very nice.

#3 TEXAS_JOE OFFLINE  

TEXAS_JOE

    Chopper Commander

  • 179 posts
  • Currently working on Final Furlong

Posted Sun Feb 12, 2012 7:09 AM

Thankyou, Sometimes .

I'm really enjoying coding on the TI again, and I'm experimenting with Willhelm's Compiler, which is what I used to speed up this program.

#4 sometimes99er ONLINE  

sometimes99er

    River Patroller

  • 2,304 posts
  • Location:Denmark

Posted Sun Feb 12, 2012 9:52 AM

That's actually quite a nice picture with houses you made there.

If you can forget about the lack of sprites, then Wilhelm's Compiler is actually quite slick. Also it wouldn't be totally impossible to extend the package (the source is there) to take more commands, and maybe even make a cross compiler and linker (like taking a file from a Classic99 directory and putting a new file there in a split second).

#5 Willsy ONLINE  

Willsy

    Stargunner

  • 1,220 posts
  • Location:Uzbekistan (no, really!)

Posted Mon Feb 13, 2012 6:42 AM

Where's the source? Perhaps I can add sprites to it? Heck, all it needs is VPOKE & VPEEK. I presume the vdp tables are in their default BASIC locations?

#6 TEXAS_JOE OFFLINE  

TEXAS_JOE

    Chopper Commander

  • 179 posts
  • Currently working on Final Furlong

Posted Mon Feb 13, 2012 7:10 AM

View PostWillsy, on Mon Feb 13, 2012 6:42 AM, said:

Where's the source? Perhaps I can add sprites to it? Heck, all it needs is VPOKE & VPEEK. I presume the vdp tables are in their default BASIC locations?

Forgive me, I assumed you meant my source.  Ah well ... hehe

Edited by TEXAS_JOE, Tue Feb 14, 2012 9:32 AM.


#7 TEXAS_JOE OFFLINE  

TEXAS_JOE

    Chopper Commander

  • 179 posts
  • Currently working on Final Furlong

Posted Mon Feb 13, 2012 7:14 AM

:-D

Edited by TEXAS_JOE, Tue Feb 14, 2012 9:32 AM.


#8 Vorticon OFFLINE  

Vorticon

    Dragonstomper

  • 757 posts
  • Location:Chicago, IL, USA

Posted Mon Feb 13, 2012 7:58 AM

View PostTEXAS_JOE, on Sun Feb 12, 2012 6:16 AM, said:

Using keys S and D to navigate left and right,  select any brick type by pressing the corresponding key shown on screen.
to drop the brick press the Space bar.  If you go wrong, simply press U to undo.
Pressing C key will clear the screen.

This is perhaps as far as I can go with this project, maybe others can add to it, improve it, hack it to death but mainly just
have fun with it!

Attachment LEGO.zip

Attachment lego program.bmpAttachment ti 99 lego.bmpAttachment LEGO2.zip

Very nice idea :) One suggestion though: it would be easier if one could move the bricks in all directions instead of just right and left. This will facilitate the placement of the bricks. I don't think you really need sprites with this program especially since you are compiling it and therefore have a lot of speed available. One way to handle the situation where one brick overlaps another is to save the underlying brick in a temporary variable and then restore it when the overlapping brick moves away. If you want to get fancy, you can even have a small window in a corner that will show the content of the area under the overlapping brick for reference. With this set up, then one will have the option of replacing one brick with another, making for easy editing.
You really can get very creative with this program! Just like Legos :)

#9 sometimes99er ONLINE  

sometimes99er

    River Patroller

  • 2,304 posts
  • Location:Denmark

Posted Mon Feb 13, 2012 9:10 AM

View PostWillsy, on Mon Feb 13, 2012 6:42 AM, said:

Where's the source? Perhaps I can add sprites to it? Heck, all it needs is VPOKE & VPEEK. I presume the vdp tables are in their default BASIC locations?

Guess you were asking about the source for Wilhelm's Compiler. It's in the compiler section in the pinned Development Resources thread. It's all XB, except only a subset, similar to TI-Basic, multi statements on a line though, integers only, and then something like INT(RND*6) will workaround and give you random numbers between 0 and 5 (or was it thereabout). Use the INT to have the original and the compiled version behave much the same.

The idea of just adding VPOKE and VPEEK is actually not bad, only XB does not have these. TI Basic with Mini Memory has the commands but a different VDP layout. Resulting program is XB program with compiled code in memory above XB program (I have to assume TI allowed this wonderful trick on purpose).

Edited by sometimes99er, Tue Feb 14, 2012 2:10 AM.





0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users