I just got ICE and can find no documentation on how to display sprites or move them around. Any Help?
First you need to create a sprite, and convert it with ConvPNG. I believe there is a text file in the download which explains how to do that. Then, paste that code into a DefineSprite.
If you're using ICE v1.5, the first DefineSprite is index 0, the second index 1 etc, so you can display sprites based on their index. If you sprite has index 0, you can display it with det(59,0,X,Y). If you want to move around, just change X and Y and see what's going on Smile
If you're using ICE v2.0, DefineSprite returns a pointer to the data, so save that in a variable with DefineSprite(...)->A. Then you can display it with det(59,A,X,Y).
If you want double-buffering to create smooth scrolling sprites or whatever, take a look here:
https://www.cemetech.net/learn/ICE:Tips_and_Tricks Hope this helps! Smile
PT_ wrote:
First you need to create a sprite, and convert it with ConvPNG. I believe there is a text file in the download which explains how to do that. Then, paste that code into a DefineSprite.
If you're using ICE v1.5, the first DefineSprite is index 0, the second index 1 etc, so you can display sprites based on their index. If you sprite has index 0, you can display it with det(59,0,X,Y). If you want to move around, just change X and Y and see what's going on Smile
If you're using ICE v2.0, DefineSprite returns a pointer to the data, so save that in a variable with DefineSprite(...)->A. Then you can display it with det(59,A,X,Y).
If you want double-buffering to create smooth scrolling sprites or whatever, take a look here:
https://www.cemetech.net/learn/ICE:Tips_and_Tricks Hope this helps! Smile


Ok thanks I just didn’t understand what the index meant. Smile
I have no idea where to find ICE version 2. The only downloads I can find are for version 1.5...
ICE V2 is a pre release on Git Hub (https://github.com/PeterTillema/ICE/releases)
I'm also trying to display a sprite it it's not going well. My sprite is suppose to be 320x30, but it came out corrupted and much smaller.

Code:
YT
ClrHome
det(0
minY320,30,"0000008101020183020402850306038704080489050A058B060C068D070E078F08100891091209930A140A950B160B970C180C990D1A0D9B0E1C0E9D0F1E0F9F9000908191029183920492859306938794089489950A958B960C968D970E978F98109891991299939A149A959B169B979C189C999D1A9D9B9E1C9E9D9F1E9F9F202020A1212221A3222422A5232623A7242824A9252A25AB262C26AD272E27AF283028B1293229B32A342AB52B362BB72C382CB92D3A2DBB2E3C2EBD2F3E2FBFB020B0A1B122B1A3B224B2A5B326B3A7B428B4A9B52AB5ABB62CB6ADB72EB7AFB830B8B1B932B9B3BA34BAB5BB36BBB7BC38BCB9BD3ABDBBBE3CBEBDBF3EBFBF404040C1414241C3424442C5434643C7444844C9454A45CB464C46CD474E47CF485048D1495249D34A544AD54B564BD74C584CD94D5A4DDB4E5C4EDD4F5E4FDFD040D0C1D142D1C3D244D2C5D346D3C7D448D4C9D54AD5CBD64CD6CDD74ED7CFD850D8D1D952D9D3DA54DAD5DB56DBD7DC58DCD9DD5ADDDBDE5CDEDDDF5EDFDF606060E1616261E3626462E5636663E7646864E9656A65EB666C66ED676E67EF687068F1697269F36A746AF56B766BF76C786CF96D7A6DFB6E7C6EFD6F7E6FFFF060F0E1F162F1E3F264F2E5F366F3E7F468F4E9F56AF5EBF66CF6EDF76EF7EFF870F8F1F972F9F3FA74FAF5FB76FBF7FC78FCF9FD7AFDFBFE7CFEFDFF7EFFFF")→TEST
det(57,TEST,1,1
Pause
det(1

I hope this is just a stupid mistake on my part Razz
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement