Author Topic: Drawing flipped sprites.  (Read 7734 times)

0 Members and 1 Guest are viewing this topic.

Offline Downsider

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 12
  • Rating: +0/-0
    • View Profile
Drawing flipped sprites.
« on: November 20, 2010, 12:48:12 pm »
Hey, guys, first post here. Love the Axe parser, I always wanted to write ASM on the calculator itself, and this is the closest thing I can get. Well done!

Anyway, got a few questions to throw at you guys.

1) Flipping/rotating a sprite. How can I do this? Would be incredibly useful..

2) In drawing a sprite larger than 8x8, do you need to use multiple calls to pt-mask or pt-on? That's how I've been doing it, calling it multiple times, incrementing the X and Y values and the data pointer.

And finally, I get so many RAM resets it's incredibly annoying and makes me lose an awful amount of work.. Is there a way to put something in both the archive and RAM at the same time? Otherwise, I'm terrified to edit anything whatsoever..

Thanks in advance!

Offline Xeda112358

  • they/them
  • Moderator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 4704
  • Rating: +719/-6
  • Calc-u-lator, do doo doo do do do.
    • View Profile
Re: Drawing flipped sprites.
« Reply #1 on: November 20, 2010, 12:53:16 pm »
Well, you can not edit the archive directly, but you can definitely invest in Grouping. Press [2nd][mem][8] and you can backup your RAM. After a RAM clear, just Ungroup from the same menu.

I don't know much about Axe, myself, but I do program in hex on the calculator. It is my primary method of programming :D, so it can be done.
And welcome to Omnimaga!

Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: Drawing flipped sprites.
« Reply #2 on: November 20, 2010, 12:55:01 pm »
1) Yes. In the DISTR>DRAW menu you will find flipH, flipV, rotC and rotCC comands for that :)

2) That's the only way I know how, unless you use the bitmap command which is slow since it is a bcall and not a handwritten routines.

3) You can use Axe's auto backup feature which helps a lot with that. Also, archiving source before running untested programs will help. Also there are many assembly utilities like this one and this one that may help.

And welcome to Omnimaga :)

edit: woo 500th post
« Last Edit: November 20, 2010, 12:57:35 pm by squidgetx »

Offline Downsider

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 12
  • Rating: +0/-0
    • View Profile
Re: Drawing flipped sprites.
« Reply #3 on: November 20, 2010, 12:57:12 pm »
Brilliant! Thanks!

This is quite honestly one of the greatest things I've ever stumbled upon; no longer bored in class, perfect! :D

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: Drawing flipped sprites.
« Reply #4 on: November 20, 2010, 04:28:54 pm »
I think I'm a little late, but CalcUtil lets you edit and run archived programs. I'd post a link, but it's kinda hard to do from my iPod, sorry.


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 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: Drawing flipped sprites.
« Reply #5 on: November 20, 2010, 04:48:51 pm »
Hi and welcome here. Glad you like Axe. I hope you enjoy your stay around here. :)

By the way the reason why those resets occurs is because like ASM, to ensure the highest speed possible, no error checking is done during program execution, so if a bad thing happens, it can cause a RAM clear. Always backup your progress, not just on the calc but also the computer, from time to time.

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: Drawing flipped sprites.
« Reply #6 on: November 20, 2010, 05:00:24 pm »
I think I'm a little late, but CalcUtil lets you edit and run archived programs. I'd post a link, but it's kinda hard to do from my iPod, sorry.
Here's a link: http://www.ticalc.org/archives/files/fileinfo/400/40029.html

Welcome to Omnimaga by the way. :)

Offline Downsider

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 12
  • Rating: +0/-0
    • View Profile
Re: Drawing flipped sprites.
« Reply #7 on: November 20, 2010, 05:42:03 pm »
Been running into a ridiculous amount of RAM resets..

After running the 8x8 sprite editor from here, I encounter one of two errors:

1) Bad address. Lets me quit without a RAM reset.

2) It shows:
  G:
     1) No
     2) Yes

Clicking either results in a screen with two series of horizontal dots, one above the other, and pressing any button after results in a RAM reset. RAM resets are EVERYWHERE.

Is it the firmware version I'm using? The frequency of them has gotten ridiculous..

Offline squidgetx

  • Food.
  • CoT Emeritus
  • LV10 31337 u53r (Next: 2000)
  • *
  • Posts: 1881
  • Rating: +503/-17
  • rawr.
    • View Profile
Re: Drawing flipped sprites.
« Reply #8 on: November 20, 2010, 05:44:54 pm »
Wait, that's my sprite editor o.o! When running it, you say it gives you those errors....? Weird...

Edit; k, I just tested it on wabbit and it works fine... I didn't use any weird instructions that should cause those errors... >.< Did you compile it yourself or are you using the included excecutable with the Asm() token?

Oh and btw, the sprites that that thing produces are meant for use with the Pt-Mask command...although you can use the first 8 bytes (16chars) for monochrome standard Pt-On and Pt-Off stuff
« Last Edit: November 20, 2010, 05:50:55 pm by squidgetx »

Offline Downsider

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 12
  • Rating: +0/-0
    • View Profile
Re: Drawing flipped sprites.
« Reply #9 on: November 20, 2010, 06:52:27 pm »
I compiled it myself. I even looked through the source, as you did, to ensure there was nothing that would do something like that.

I have no clue where the G: prompt comes from, and it's fucking annoying, because I feel so powerless; I'm forced to click yes or no, and regardless of which I click, it gives me the two horizontal line dots  ::)

I don't think it's your fault; I'm going to try resetting the beast completely. And yeah, I figured out how to get monochrome output from your editor too.

And just wondering.. Does anybody know how to get the output from Runer112's sprite editor? It seems like a great tool, but I've no clue how to get the output from it without manually copying down the hex on the bottom..

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: Drawing flipped sprites.
« Reply #10 on: November 20, 2010, 07:08:19 pm »
I think I'm a little late, but CalcUtil lets you edit and run archived programs. I'd post a link, but it's kinda hard to do from my iPod, sorry.

this is very late, but I would reccommend against calcutil if you have 2.53MP, I've lost progress on the save menu way more than from Axe.  ;)

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Drawing flipped sprites.
« Reply #11 on: November 20, 2010, 08:23:59 pm »
And just wondering.. Does anybody know how to get the output from Runer112's sprite editor? It seems like a great tool, but I've no clue how to get the output from it without manually copying down the hex on the bottom..

It's a mess, even I'm sometimes confused as to how I structured it lol. One of the things on my to-do list is to remake the sprite editor with features like output of the hex, which wasn't yet implemented in the version of Axe with which I made the program.
« Last Edit: November 20, 2010, 08:25:04 pm by Runer112 »

Offline AngelFish

  • Is this my custom title?
  • Administrator
  • LV12 Extreme Poster (Next: 5000)
  • ************
  • Posts: 3242
  • Rating: +270/-27
  • I'm a Fishbot
    • View Profile
Re: Drawing flipped sprites.
« Reply #12 on: November 20, 2010, 08:49:18 pm »
Would it be feasible to store the hex to the TI-OS Ans variable?
∂²Ψ    -(2m(V(x)-E)Ψ
---  = -------------
∂x²        ℏ²Ψ

Offline Runer112

  • Project Author
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2289
  • Rating: +639/-31
    • View Profile
Re: Drawing flipped sprites.
« Reply #13 on: November 20, 2010, 08:59:28 pm »
It's feasible, but not with Axe. It would have to be assembly. You could put the hex in an OS string, though.

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: Drawing flipped sprites.
« Reply #14 on: November 20, 2010, 10:31:09 pm »
There's a great 8*8 editor in Binder News's sig (link to his profile: http://www.omnimaga.org/index.php?action=profile;u=1067 ).  It's made in pure Asm and exports to Str1. :)