Author Topic: Axe drawing questions  (Read 5625 times)

0 Members and 1 Guest are viewing this topic.

Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Axe drawing questions
« on: January 01, 2011, 07:41:04 pm »
Hello!

Some questions regarding Axe:
1) Can anyone explain to me how tunnel side drawing/generation works? And if possible, could I get an example to play with?
2) How big can sprites be?
3) Where/how are sprites drawn? Like text?
4) For "special" big font, are they just sprites?
5) Is there a good sprite drawing tool I could use? (Both calculator and PC)
Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/


Proud member of ClrHome!

Miss my old signature? Here it is!
Spoiler For Signature:
Alternate "New" IRC post notification bot (Newy) down? Go here to reset it! http://withg.org/albert/cpuhero/

Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/

Activity remains limited due to busyness from school et al. Sorry! :( Feel free to PM, email, or if you know me well enough, FB me if you have a question/concern. :)

Don't expect me to be online 24/7 until summer. Contact me via FB if you feel it's urgent.


Proud member of ClrHome!

Spoiler For "My Projects! :D":
Projects:

Computer/Web/IRC Projects:
C______c: 0% done (Doing planning and trying to not forget it :P)
A_____m: 40% done (Need to develop a sophisticated process queue, and a pretty web GUI)
AtomBot v3.0: 0% done (Planning stage, may do a litmus test of developer wants in the future)
IdeaFrenzy: 0% done (Planning and trying to not forget it :P)
wxWabbitemu: 40% done (NEED MOAR FEATURES :P)

Calculator Projects:
M__ C_____ (an A____ _____ clone): 0% done (Need to figure out physics and Axe)
C2I: 0% done (planning, checking the demand for it, and dreaming :P)

Offline nemo

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1203
  • Rating: +95/-11
    • View Profile
Re: Axe drawing questions
« Reply #1 on: January 01, 2011, 08:29:20 pm »
Hello!

Some questions regarding Axe:
1) Can anyone explain to me how tunnel side drawing/generation works? And if possible, could I get an example to play with?
2) How big can sprites be?
3) Where/how are sprites drawn? Like text?
4) For "special" big font, are they just sprites?
5) Is there a good sprite drawing tool I could use? (Both calculator and PC)

1) do you mean like a tunnel game?
2) 8x8 is the biggest the Pt-Change/On/Off routines will draw. Bitmap( will draw as large as you want, but it is a slow TIOS routine. you can join together multiple 8x8 routines to draw bigger sprites.
3)they're drawn onto the buffer, and then DispGraph copies the buffer to the screen.
4) see the Fix command in the commands list to change the font size.
5)Runer112 made a good one awhile back, i forget where it is. somewhere in the forum. PC there are no specific ones i can think of.


Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Axe drawing questions
« Reply #2 on: January 01, 2011, 08:30:22 pm »
Hello!

Some questions regarding Axe:
1) Can anyone explain to me how tunnel side drawing/generation works? And if possible, could I get an example to play with?
2) How big can sprites be?
3) Where/how are sprites drawn? Like text?
4) For "special" big font, are they just sprites?
5) Is there a good sprite drawing tool I could use? (Both calculator and PC)

For the 5th, use Tokens :)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Axe drawing questions
« Reply #3 on: January 01, 2011, 08:37:51 pm »
On-calc, there are lots of spriters to choose from. Mine's at http://ourl.ca/8276/152459, and squidgetx's is at http://www.omnimaga.org/index.php?action=downloads;sa=view;down=587. There are a lot more around the forums, though. I liked Runer112's, but I can't seem to find it...




Offline Michael_Lee

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1019
  • Rating: +124/-9
    • View Profile
Re: Axe drawing questions
« Reply #4 on: January 02, 2011, 02:29:48 am »
Careful with bitmaps -- if you try to draw them outside of the boundaries of the screen, you get RAM clears.  With sprites, you can draw them wherever you want -- it`s safe.
For number 5, I usually just use Microsoft Paint.  Tokens also has a good one, although I don`t know if it can handle gray.
My website: Currently boring.

Projects:
Axe Interpreter
   > Core: Done
   > Memory: Need write code to add constants.
   > Graphics: Rewritten.  Needs to integrate sprites with constants.
   > IO: GetKey done.  Need to add mostly homescreen IO stuff.
Croquette:
   > Stomping bugs
   > Internet version: On hold until I can make my website less boring/broken.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Axe drawing questions
« Reply #5 on: January 02, 2011, 10:29:56 am »
Careful with bitmaps -- if you try to draw them outside of the boundaries of the screen, you get RAM clears.

Just for clarification, vertically :) Same thing happens with text, both Output( and Text(.




Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Axe drawing questions
« Reply #6 on: January 02, 2011, 10:32:30 am »
how do you draw bitmaps and whats the syntax??
I'm not a nerd but I pretend:

Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: Axe drawing questions
« Reply #7 on: January 02, 2011, 10:51:57 am »
First byte, height. Second byte, width. then the bitmap. So if you wanted to draw an 8x8 black square...
Code: [Select]
Bitmap(X,Y,[0808FFFFFFFFFFFFFFFF])
« Last Edit: January 02, 2011, 10:53:54 am by squidgetx »

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Axe drawing questions
« Reply #8 on: January 02, 2011, 10:52:46 am »
Bitmaps are stored 8 pixels per byte (like sprites), byte by byte in the row rounded up to the nearest 8 pixels, then row by row. Two bytes are added before the data for height, then width. So if you had a 14x6 block, it'd look something like this:

Code: (Axe data) [Select]
:[060E]→Pic0
:[FFFC]
:[FFFC]
:[FFFC]
:[FFFC]
:[FFFC]
:[FFFC]

The last two bits of each row are out of the 14-pixel width, so they don't get drawn, so I left them zero (hence the Cs).

To draw that, use

Code: (Axe) [Select]
:Bitmap(X,Y,Pic0)

It's a very slow TI-OS routine, so use it only for titles and stuff like that.
« Last Edit: January 02, 2011, 10:53:41 am by Deep Thought »




Offline aeTIos

  • Nonbinary computing specialist
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3915
  • Rating: +184/-32
    • View Profile
    • wank.party
Re: Axe drawing questions
« Reply #9 on: January 02, 2011, 10:53:48 am »
ah okay so you can easy draw big sprites with this i didnt know this
I'm not a nerd but I pretend:

Offline Munchor

  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6199
  • Rating: +295/-121
  • Code Recycler
    • View Profile
Re: Axe drawing questions
« Reply #10 on: January 02, 2011, 11:00:38 am »
I had no idea about this, in spite of having seen code with this. Thanks Deep!

Offline alberthrocks

  • Moderator
  • LV8 Addict (Next: 1000)
  • ********
  • Posts: 876
  • Rating: +103/-10
    • View Profile
Re: Axe drawing questions
« Reply #11 on: January 02, 2011, 01:49:16 pm »
1) do you mean like a tunnel game?
2) 8x8 is the biggest the Pt-Change/On/Off routines will draw. Bitmap( will draw as large as you want, but it is a slow TIOS routine. you can join together multiple 8x8 routines to draw bigger sprites.
3)they're drawn onto the buffer, and then DispGraph copies the buffer to the screen.
4) see the Fix command in the commands list to change the font size.
5)Runer112 made a good one awhile back, i forget where it is. somewhere in the forum. PC there are no specific ones i can think of.

1) yup, the tunnel game, but just the sides. I'm aiming for something similar to some program called 7G/G7.
2) I'll probably do that.. although I'm wondering if there's any programs that will autosplit it. (Yeah, I'm lazy with gfx :P)
3) Gotcha. But you still didn't answer my question - to be clearer, I'm referring to cursor position drawing. Is it like the Text( command where the top right corner of the text starts at the coor. specified?
4) No no, I've used Axe long enough to know that. :) I'm talking about custom font... big ones.
5) I'll have to look for it, unless someone can find it for me :)

Thanks for the links and help everyone! :D

Some more questions:
1) Does Text( really cause issues? I've done (a little) out of boundary drawing, and as far as I know it doesn't hurt it.
2) Is there transparency in sprites? If so, how?
3) Is there a program that can auto-split sprites, or is that something I'll have to do myself?
Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/


Proud member of ClrHome!

Miss my old signature? Here it is!
Spoiler For Signature:
Alternate "New" IRC post notification bot (Newy) down? Go here to reset it! http://withg.org/albert/cpuhero/

Withgusto Networks Founder and Administrator
Main Server Status: http://withg.org/status/
Backup Server Status: Not available
Backup 2/MC Server Status: http://mc.withg.org/status/

Activity remains limited due to busyness from school et al. Sorry! :( Feel free to PM, email, or if you know me well enough, FB me if you have a question/concern. :)

Don't expect me to be online 24/7 until summer. Contact me via FB if you feel it's urgent.


Proud member of ClrHome!

Spoiler For "My Projects! :D":
Projects:

Computer/Web/IRC Projects:
C______c: 0% done (Doing planning and trying to not forget it :P)
A_____m: 40% done (Need to develop a sophisticated process queue, and a pretty web GUI)
AtomBot v3.0: 0% done (Planning stage, may do a litmus test of developer wants in the future)
IdeaFrenzy: 0% done (Planning and trying to not forget it :P)
wxWabbitemu: 40% done (NEED MOAR FEATURES :P)

Calculator Projects:
M__ C_____ (an A____ _____ clone): 0% done (Need to figure out physics and Axe)
C2I: 0% done (planning, checking the demand for it, and dreaming :P)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Axe drawing questions
« Reply #12 on: January 02, 2011, 02:22:06 pm »
1. Only when it's shifted vertically off the screen after Fix 5 (saving the text to the buffer).
2. Yes, Pt-On( draws with OR logic, so white pixels are "transparent" in that they leave what was originally there untouched.
3. Nope. What do you mean by that, though? Converting it to hex? Most spriters do that.




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: Axe drawing questions
« Reply #13 on: January 02, 2011, 05:01:57 pm »
As for the tunnel thing, you could look at Blur's source code. It was my contest entry.
Linky.


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.