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

CE Textlib/Basic Drawing

Started by Dudeman313, March 11, 2016, 11:34:14 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Dream of Omnimaga

Don't you mean decade, not month? My last revolution was over a decade ago. :P (granted, perhaps the fact Supersonic Ball ran at 6 MHz even with parallax scrolling and still keeping 20 FPS could count, but that game never was very popular and most people probably thinks it runs at 15 MHz)
  • 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
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Dudeman313

Quote from: DJ Omnimaga on April 13, 2016, 10:12:23 PM
Don't you mean decade, not month? My last revolution was over a decade ago. :P (granted, perhaps the fact Supersonic Ball ran at 6 MHz even with parallax scrolling and still keeping 20 FPS could count, but that game never was very popular and most people probably thinks it runs at 15 MHz)
Who's to say you won't make a revolution about xLIBCE next month? :P
  • Calculators owned: TI-84 PCE
  • Consoles, mobile devices and vintage computers owned: Android O Phone
Does this qualify as a signature? 
The answer is "Sure."


Dream of Omnimaga

We never know, but since I am so focused on CE Textlib right now, I doubt I'll do much xLIBCE stuff right away. I might however do some minor changes to my older games, though, depending of how fast they run on the CE.
  • 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
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Dudeman313

It'd be cool to see a CE Textlib v xLIB showdown.
You could remake some of your older games in CE Textlib and do a side by side speed comparison.
  • Calculators owned: TI-84 PCE
  • Consoles, mobile devices and vintage computers owned: Android O Phone
Does this qualify as a signature? 
The answer is "Sure."


Dream of Omnimaga

#79
So this program draws 4x4 squares to form a grid of 78x57 of them:



{33,12,1,12,27,12,1
Asm(prgmTEXTLIB
For(A,1,26
For(Z,38,766,13
{33,Z,A,13,43,randInt(10,25),33,Z-13,A+107,13,43,randInt(10,25),33,Z-26,A+214,13,43,randInt(10,25)
Asm(prgmTEXTLIB

End
End
Pause


Notice how I am drawing 3 squares at a time and see what I did to the horizontal and vertical offsets (A and Z).

Also I realized that it's not necessary to use 780 to draw at the very top of the screen, but rather 12, which might make you save some bytes. But the trick used in the screenshot above won't let you draw everywhere in the top rows, so it's better not to use the top rows when using aligned 4x4 squares. I also didn't use the last row at the bottom because the squares would be 4x3 and I was too lazy to use the left and right edges. :P

Quote from: Dudeman313 on April 18, 2016, 06:54:08 PM
It'd be cool to see a CE Textlib v xLIB showdown.
You could remake some of your older games in CE Textlib and do a side by side speed comparison.
xLIB would definitively win, hands down, partly due to not having to store a large list then run an ASM program every loop iteration. It's still cool to see what can be done with more limited softwares, though.
  • 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
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Dudeman313

Even if xLIB would win, I thought maybe CE Textlib might be somewhere in speed comparison to Monochrome xLIB.
  • Calculators owned: TI-84 PCE
  • Consoles, mobile devices and vintage computers owned: Android O Phone
Does this qualify as a signature? 
The answer is "Sure."


Dream of Omnimaga

It depends. Some stuff would be faster in CE Textlib, such as drawing rectangles, because you can chain commands, but sprites are definitively slower.

On a side note, I plan to experiment with scaled sprites in CE Textlib at some point (probably the ones where rectangle offsets are multiples of 12,4 (X,Y) to start). Not that this would be practical at all, but it would still be cool to watch.
  • 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
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Dudeman313

A lot of programs are made to watch. ;)
  • Calculators owned: TI-84 PCE
  • Consoles, mobile devices and vintage computers owned: Android O Phone
Does this qualify as a signature? 
The answer is "Sure."


Dream of Omnimaga

Yeah true. Also my first attempt at making scaled sprites was futile, because horizontal values cannot exceed 255, so past 255 things glitched out. I'll try again later I guess.
  • 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
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Dudeman313

Quote from: DJ Omnimaga on April 18, 2016, 07:58:48 PM
So this program draws 4x4 squares to form a grid of 78x57 of them:



{33,12,1,12,27,12,1
Asm(prgmTEXTLIB
For(A,1,26
For(Z,38,766,13
{33,Z,A,13,43,randInt(10,25),33,Z-13,A+107,13,43,randInt(10,25),33,Z-26,A+214,13,43,randInt(10,25)
Asm(prgmTEXTLIB

End
End
Pause

This might be a bit off-topic, but in that picture I see some colonial version of Einstein wearing a gray wig and an American-Revolution-style colonial hat, who has a pudgy nose, round :walrii: eyes, a huge mustache, and a fat chin.
He also is sticking out his lounge while holding something looking like either a Magnifying glass or a tongue depressor or a teddy bear or a rubber chicken or a beaker.

I know, my mind is strange. :P
  • Calculators owned: TI-84 PCE
  • Consoles, mobile devices and vintage computers owned: Android O Phone
Does this qualify as a signature? 
The answer is "Sure."


Dream of Omnimaga

Wait, where do you see that? O.O, you should maybe circle the parts where you see it and post an edited pic. :P
  • 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
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Dudeman313

Something like this, but it changes every time I look; It didn't look like this the first time.

  • Calculators owned: TI-84 PCE
  • Consoles, mobile devices and vintage computers owned: Android O Phone
Does this qualify as a signature? 
The answer is "Sure."


Dream of Omnimaga

Well, I definitively don't see this :P
  • 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
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Dudeman313

Quote from: DJ Omnimaga on April 19, 2016, 08:59:59 PM
Well, I definitively don't see this :P
This coming from a person who instantly sees the walrus in everything? :P
  • Calculators owned: TI-84 PCE
  • Consoles, mobile devices and vintage computers owned: Android O Phone
Does this qualify as a signature? 
The answer is "Sure."


aetios

I actually know what you mean, @Dudeman313. I kinda see that too :P
ceci n'est pas une signature

Powered by EzPortal