Join us on Discord!
You can help CodeWalrus stay online by donating here.

Bitty Bird!

Started by JWinslow23, May 12, 2015, 02:55:57 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Snektron

What does Text(-1 btw?
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


CKH4

Its the large size text so Text(10,10,"123 would display small text and its large text equivalent would be Text(-1,10,10,"123
  • Calculators owned: TI-83+, TI-84+


JWinslow23

Quote from: DJ Omnimaga on May 15, 2015, 07:09:26 AM
That's actually a good trick I guess. I was wondering if anyone would use it in BASIC. Since you just fill the entire screen then it counts as using the allowed resolutions, just rendered slowly during pre-rendering (I would have issues with it if you did fancy animations such as rendering every two line of pixel then the rest, though :P)

And yeeah I am really impressed by the speed considering the large amount of Text commands that are being used. Maybe I just forgot how fast screen drawing can be on the monochrome models, though. :P Do you use For loops? Those can slow things down a lot, although they reduce the code size a lot too.
Yes, I use For( loops to draw. I loop through my gameboard (which is a binary number P) and draw it pixel by pixel. And I'm impressed with myself at the speed as well :D .

Dream of Omnimaga

#18
Ah ok thanks for the info. Because if you used 24 Text(-1 commands instead of For loops with 1 Text(-1 command, then the game would run noticeably faster. This screen invertion program is a prime example: http://www.ticalc.org/archives/files/fileinfo/352/35264.html . On the other hand, the file size would suffer (although nowhere as much as that screen inverting program and maybe not enough to actually hurt the final judging score) so it would be up to you to judge if the speed gain is worth it.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Snektron

That reminds me of my matrix mul subroutine in ASM. 400 lines of almost the same code O.O
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


JWinslow23

Quote from: DJ Omnimaga on May 16, 2015, 07:07:11 AM
Ah ok thanks for the info. Because if you used 24 Text(-1 commands instead of For loops with 1 Text(-1 command, then the game would run noticeably faster. This screen invertion program is a prime example: http://www.ticalc.org/archives/files/fileinfo/352/35264.html . On the other hand, the file size would suffer (although nowhere as much as that screen inverting program and maybe not enough to actually hurt the final judging score) so it would be up to you to judge if the speed gain is worth it.
I don't feel like ballooning the program just to get a what-will-probably-be-tiny speed gain. At this point, IMO, I have a good balance between size and speed (all of that was under 1 KB, too!).

Dream of Omnimaga

Ok it's up to you really. So far I am impressed by the result, considering it's pure BASIC. The size is pretty nice too.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Snektron

Turns out TI-Basic was usable for the contest after all :P
  • Calculators owned: TI-84+
Legends say if you spam more than DJ Omnimaga, you will become a walrus...


JWinslow23

Quote from: DJ Omnimaga on May 18, 2015, 04:11:52 AM
Ok it's up to you really. So far I am impressed by the result, considering it's pure BASIC. The size is pretty nice too.
Thanks so much. :)
Quote from: Cumred_Snektron on May 18, 2015, 06:12:02 AM
Turns out TI-Basic was usable for the contest after all :P
Well, if you're reeeeally clever, you can use Golfscript :P

Unicorn

Quote from: Cumred_Snektron on May 18, 2015, 06:12:02 AM
Turns out TI-Basic was usable for the contest after all :P
I guess Hybrid for displaying doesn't count?  <_<
  • Calculators owned: I own all of them: PICKACHUP TI 84+ CSE TI 83+ SE TI something something ??? ??? ??? ??? ???
  • Consoles, mobile devices and vintage computers owned: PICKACHUP ??? ??? ??? ??? ???



??? ??? ??? ??? ???

Dream of Omnimaga

Well with hybrid you usually can display anything that looks like ASM, just at much slower speed.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

Dream of Omnimaga

By the way, something I noticed is that your game fills the entire screen with black rather than just the area that is being used during gameplay. Maybe you should use Line() instead of Horizontal and only make the playable area black (the 3x4 grid, that is), else it kinda looks weird with the calc LCD margins having no pixel, and some people might think the game isn't truly 3x4.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

JWinslow23

Quote from: DJ Omnimaga on May 29, 2015, 04:23:49 AM
By the way, something I noticed is that your game fills the entire screen with black rather than just the area that is being used during gameplay. Maybe you should use Line() instead of Horizontal and only make the playable area black (the 3x4 grid, that is), else it kinda looks weird with the calc LCD margins having no pixel, and some people might think the game isn't truly 3x4.
Too late at this point, but I'll change it when I release it to archives.

Also, you can play the game in its current form! Download the program files in the original post, or all in one zip file along with a readme in the voting thread.

Dream of Omnimaga

Very nice game by the way. I am surprised at how well it plays for TI-Basic despite updating so much in the screen every frame.
  • Calculators owned: TI-82 Advanced Edition Python TI-84+ TI-84+CSE TI-84+CE TI-84+CEP TI-86 TI-89T cfx-9940GT fx-7400G+ fx 1.0+ fx-9750G+ fx-9860G fx-CG10 HP 49g+ HP 39g+ HP 39gs (bricked) HP 39gII HP Prime G1 HP Prime G2 Sharp EL-9600C
  • Consoles, mobile devices and vintage computers owned: Huawei P30 Lite, Moto G 5G, Nintendo 64 (broken), Playstation, Wii U

JWinslow23

Quote from: DJ Omnimaga on June 03, 2015, 07:25:00 PM
Very nice game by the way. I am surprised at how well it plays for TI-Basic despite updating so much in the screen every frame.
Thanks.

I also added the link in my signature to the zip. Just click on Bitty Bird.

Powered by EzPortal