Omnimaga

Calculator Community => TI Calculators => TI-BASIC => Topic started by: johnbchron on November 06, 2018, 06:07:31 pm

Title: Basic Sprites
Post by: johnbchron on November 06, 2018, 06:07:31 pm
Hello all,


I have not put any extensive research into this question but I was wondering if anyone who has successfully made or used sprites in basic could tell me how they did it / what or what not to do so I can save some time (emotional energy)? (That’s what forums are for, right?)
Title: Re: Basic Sprites
Post by: TIfanx1999 on November 06, 2018, 08:26:34 pm
There are a number of ways to do this, and it also depends on which platform you are programming for. Keep in mind Sprites in pure BASIC are generally going to be slow. Again this depends on the method and platform.
Title: Re: Basic Sprites
Post by: johnbchron on November 07, 2018, 01:42:42 pm
Oh yeah. Forgot to mention this is for the CE.
Title: Re: Basic Sprites
Post by: Runer112 on November 07, 2018, 01:55:38 pm
In that case, there's really no good option other than to ditch BASIC. It sounds like you might want to try ICE (https://www.cemetech.net/programs/index.php?mode=file&id=1481) instead of BASIC.
Title: Re: Basic Sprites
Post by: johnbchron on November 07, 2018, 06:00:00 pm
I have worked in ice before and I was curious about basic because I thought that sprites might work differently. Does anyone know of any good on-calc sprite editors? I at one point was making one myself but a ram clear meant that I would have to start from scratch again so I gave it up.
Title: Re: Basic Sprites
Post by: TIfanx1999 on November 07, 2018, 07:55:49 pm
I'm not as familiar with the CE, but you should still be able to make sprites with individual pixels or lines and for commands. If the speed is comparable to the TI-84+, this will be (relativley)slow. You can use asm libs, but that wouldn't be pure BASIC. If I remember right, there's a version of Xlib out there for the CE, and maybe something else. The 84+ also had Dual layer Ascill that could be done, but I think saving and storing pictures is a bit different on the CE and that causes this not to work (someone more knowledgeable would have to verify). There are other techniques that were used on the 84+ using text to make sprites, but they are limited on what they can produce, and again I'm not sure if or how well they work on the CE. Here's a link describing some of these from TIBD. http://tibasicdev.wikidot.com/graphics As I said this applies to the 84+/83+ line, and I'm not sure how relevant it is to the CE.