* WalrusIRC

You need to have 5 posts and not be part of restricted usergroups in order to use the WalrusIRC embedded shoutbox. However, you can also access our IRC channel called #CodeWalrus via EFnet.

Author Topic: Bejeweled CSE  (Read 12160 times)

0 Members and 1 Guest are viewing this topic.

Offline xlibman

  • Omni founder & CW co-founder
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18793
  • Post Rating Ratio: +98/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: Bejeweled CSE
« Reply #60 on: June 29, 2016, 06:17:59 am »
Wow the speed is very nice for BASIC. I'm surprised actually, given the fact that full squares are displayed. Do you use a separate pt-on command per chunk rather than For loops? I often found that this is faster, although much larger. Good job so far :)
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

Offline unknownloner

  • Full User
  • CW 4x3 challenge winner!
  • *
  • Join Date: Dec 2014
  • Location: Yesterday
  • Posts: 221
  • Post Rating Ratio: +1/-0
  • WHY CAN'T I CLICK ALL THESE CIRCLES?!
    • Code Blog
  • Gender: Male
Re: Bejeweled CSE
« Reply #61 on: June 29, 2016, 06:22:30 am »
Yeah I use 4 separate Pt-On commands per tile.

I was originally doing 8 per tile and filling the entire tile with color, but that ended up being too slow
to be playable. I also found a way using 5 Pt-On's that let me do fully-filled 11x11 tiles, but I still
wanted the tiles to be bigger (and it was still a bit too slow). On the bright side, it made the method
for displaying the cursor an easy choice, so I didn't have to think too hard about how to do that. It's
just another 4 Pt-On(s, but with a different point type.

  
/)

Offline JWinslow23

  • Pi is the coolest number in the history of math. :\
  • Super User
  • CW 4x3 challenge - 2nd place
  • *
  • Join Date: May 2015
  • Location: Somewhere between 13 and Graham's Number
  • Posts: 751
  • Post Rating Ratio: +12/-1
  • Use pi! Pi is the absolute greatest! :(
    • @UCu_9qD95nADzc-W6RN-3Z8A
    • 113/11328
  • Gender: Male
Re: Bejeweled CSE
« Reply #62 on: June 29, 2016, 07:23:24 am »
Awesome that this is coming to the CE! Nice work, it's fast already!

Oh, and if you want a different, much faster game-over check, perhaps you can borrow the code in my 84+ version...of course, it's not my code (I'm not that clever :P ), it's lirtosiast's, so ask him over on Cemetech if you like.

Here is the post on Cemetech, if you're not sure what I'm talking about.

Offline xlibman

  • Omni founder & CW co-founder
  • Super User
  • Original 5
  • CodeWalrus Supporter
  • *
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 18793
  • Post Rating Ratio: +98/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • DJ Omnimaga music store
  • Gender: Male
Re: Bejeweled CSE
« Reply #63 on: June 29, 2016, 04:31:07 pm »
Yeah I use 4 separate Pt-On commands per tile.

I was originally doing 8 per tile and filling the entire tile with color, but that ended up being too slow
to be playable. I also found a way using 5 Pt-On's that let me do fully-filled 11x11 tiles, but I still
wanted the tiles to be bigger (and it was still a bit too slow). On the bright side, it made the method
for displaying the cursor an easy choice, so I didn't have to think too hard about how to do that. It's
just another 4 Pt-On(s, but with a different point type.
I see. I had an hard time telling if you used 4 or 9 commands because the video quality was low on my phone for some reasons.  This still shows that we can make somewhat fast games in pure TI-BASIC. :)
  • Calculators owned: TI-57, 73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)

 


You can also use the following HTML or bulletin board code to share it on your page or forum signature!


Also do not forget to check our affiliates below.
Planet Casio TI-Planet Calc.news BroniesQC BosaikNet Velocity Games