Author Topic: TI-BASIC Images  (Read 6088 times)

0 Members and 2 Guests are viewing this topic.

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
TI-BASIC Images
« on: October 31, 2010, 02:39:55 pm »
Hello Everyone, some of you have made games in Axe and Asm that use images, sprites, maps, etc.

However, I don't program those. I program TI Basic. Is there anyway to make a sprite in the computer and convert it to TI Basic code, so, make images in TI BASIC?

Thanks much, David

Offline JosJuice

  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1344
  • Rating: +66/-14
    • View Profile
Re: TI-BASIC Images
« Reply #1 on: October 31, 2010, 02:42:41 pm »
You can do it using Pt-On( and/or Line(, but it's very slow. If you want something faster, you need to use ASCII characters (or a Pic variable, but they're 767 bytes and fill the whole screen).

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: TI-BASIC Images
« Reply #2 on: October 31, 2010, 02:44:02 pm »
something i made could be of help. though it's still rather slow.


Offline FinaleTI

  • Believe in the pony that believes in you!
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1830
  • Rating: +121/-2
  • Believe in the pony that believes in you!
    • View Profile
    • dmuckerman.tumblr.com
Re: TI-BASIC Images
« Reply #3 on: October 31, 2010, 02:45:19 pm »
You can do it using Pt-On( and/or Line(, but it's very slow. If you want something faster, you need to use ASCII characters (or a Pic variable, but they're 767 bytes and fill the whole screen).
You could also go the hybrid BASIC approach, but until you're very comfortable and pretty good with pure BASIC, I wouldn't recommend it.


Spoiler For Projects:

My projects haven't been worked on in a while, so they're all on hiatus for the time being. I do hope to eventually return to them in some form or another...

Spoiler For Pokemon TI:
Axe port of Pokemon Red/Blue to the 83+/84+ family. On hold.

Spoiler For Nostalgia:
My big personal project, an original RPG about dimensional travel and a few heroes tasked with saving the world.
Coding-wise, on hold, but I am re-working the story.

Spoiler For Finale's Super Insane Tunnel Pack of Doom:
I will be combining Blur and Collision Course into a single gamepack. On hold.

Spoiler For Nostalgia Origins: Sky's Story:
Prequel to Nostalgia. On hold, especially while the story is re-worked.

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: TI-BASIC Images
« Reply #4 on: October 31, 2010, 08:23:24 pm »
Ya, I think everyone kinda covered it. The main way probably is to just use the picture variables though, as JosJuice said, they are 767 bytes each and you can't do a whole lot with them unless you constantly store and restore to them since they take up the "whole" screen (I said "whole" because the screen is technically 96*64 pixels but since it's TI-BASIC it only uses the 95*63 pixels). The other way of doing pictures/images/sprites is to hard code or "hard code" them in using the drawing commands (Line(, Pxl-On(, Pt-Off(, etc.). Then there are ways of making sprites by using Text Sprites, which is clever way of using the Text( command, and there are also Dual Layers too, which is using both the Text( and picture variables cleverly to achieve good graphics (there are topics on both of these around Omnimaga). Then, technically, as nemo said you can use hexadecimal code to make sprites and such but in TI-BASIC, at least Pure TI-BASIC, it is quite slow. I have created a sprite editor that lets you create a sprite/image and then export it into hexadecimal code and nemo has that program that converts it back. Finally, if you're experienced enough to use Hybrid TI-BASIC, you can get much faster sprites and such using those and all, though I don't know much about those so I can't help much. Hope this helps.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: TI-BASIC Images
« Reply #5 on: October 31, 2010, 08:32:35 pm »
the one thing meishe didn't mention are plot sprites.


Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: TI-BASIC Images
« Reply #6 on: October 31, 2010, 09:17:40 pm »
Oh ya, I forgot about those. I've never used them nor ever, knowingly, seen them really used so that's why I forgot.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: TI-BASIC Images
« Reply #7 on: November 01, 2010, 02:25:48 am »
If you need a computer program to convert bitmaps you created with paint to 8xi you can use TI-Connect screen capture (if you don't have TiLP installed) or Image Studio at http://www.omnimaga.org/index.php?action=downloads;sa=view;down=236 . Image Studio erases the 96th row of pixel, though. Also, I think Source Coder 2.5 can convert images: http://www.cemetech.net/projects/basicelite/sourcecoder2.php

Offline MRide

  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 711
  • Rating: +14/-0
  • You can't see this.
    • View Profile
Re: TI-BASIC Images
« Reply #8 on: November 01, 2010, 10:13:20 am »
It depends on what your looking for.  If you want to do maps, dual layer (Serenity style or not) is a great way to go.
Otherwise, if your trying to draw an actual pictures, lines are the only way to go (unless, of course you want to use a picture file)

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: TI-BASIC Images
« Reply #9 on: November 01, 2010, 04:43:11 pm »
Oh ya, I forgot about those. I've never used them nor ever, knowingly, seen them really used so that's why I forgot.
*cough* http://www.ticalc.org/archives/files/fileinfo/430/43045.html *cough*

I recommend using horizontal text sprites for beginning graphics.  They're easy to use and don't take a lot of time to display if you only need to update one or two. :)

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: TI-BASIC Images
« Reply #10 on: November 01, 2010, 05:11:25 pm »
Oh ya, I forgot about those. I've never used them nor ever, knowingly, seen them really used so that's why I forgot.
*cough* http://www.ticalc.org/archives/files/fileinfo/430/43045.html *cough*

I recommend using horizontal text sprites for beginning graphics.  They're easy to use and don't take a lot of time to display if you only need to update one or two. :)

Well they are the square plot token but are they actually Plot Sprites? ;)
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: TI-BASIC Images
« Reply #11 on: November 01, 2010, 05:27:20 pm »
Oh ya, I forgot about those. I've never used them nor ever, knowingly, seen them really used so that's why I forgot.
*cough* http://www.ticalc.org/archives/files/fileinfo/430/43045.html *cough*

I recommend using horizontal text sprites for beginning graphics.  They're easy to use and don't take a lot of time to display if you only need to update one or two. :)

Well they are the square plot token but are they actually Plot Sprites? ;)
Yup.  * ZTrumpet points to the speed, size, and code. ;)

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: TI-BASIC Images
« Reply #12 on: November 01, 2010, 05:55:11 pm »
Oh, well I did not know that :P My apologies.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: TI-BASIC Images
« Reply #13 on: November 01, 2010, 10:04:22 pm »
I kinda found dual layer easier, personally. I guess it migth be because of the speed, though.

Offline gangsterveggies

  • LV2 Member (Next: 40)
  • **
  • Posts: 36
  • Rating: +2/-1
  • Asm rules
    • View Profile
Re: TI-BASIC Images
« Reply #14 on: November 09, 2010, 03:36:34 pm »
Didn't know about those plot graphics... pretty cool. Scout... if you want graphics and stuff like that you should use AXE or ASM. I know you do so... I know you want to have a good time during physics class... there are other things :)
I'm waiting for someone to do a calc Farmville. Maybe one day I'll do it!