Alternatively, join us on Discord.

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?
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


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 .

DJ Omnimaga

May 16, 2015, 07:07:11 am #18 Last Edit: May 16, 2015, 07:11:11 am by DJ Omnimaga
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.

Snektron

That reminds me of my matrix mul subroutine in ASM. 400 lines of almost the same code O.O
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!).

DJ 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.

Snektron

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



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?  <_<



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

DJ Omnimaga

Well with hybrid you usually can display anything that looks like ASM, just at much slower speed.

DJ 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.

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.

DJ 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.


Powered by EzPortal