- Snorlax's Lunch Time port to TI-84+/SE
- 30 Jul 2021 11:34:57 am
- Last edited by TIny_Hacker on 02 Feb 2023 02:25:20 pm; edited 2 times in total
I've been bored with no project ideas this summer so I finally decided to make something! I'm porting Snorlax's Lunch Time from the Pokemon Mini handheld to monochrome TI-84+ calculators! (It should also work on the 83+ but I don't have one to test it on.) I'm using TI-BASIC with the DSC7 Basic Libraries. So far, I've managed to make food fall from the sky onto Snorlax's plate, as well as the occasional Pichu. I haven't incorporated any method of gameplay yet, so all there is is falling food.
Eye Candy:
Project To-do List:
Fallling Food: 100%
Timer and Pichu Mechanics: 100%
Scoring/Yums: 100%
Menus and other Sprites: 100%
This has been released! Download it here: http://ceme.tech/DL2206
Questions:
Right now I'm having an trouble figuring out a good way to fix the issue of the falling food being transparent in the center. Here's what it should look like:
I would like to know if there is a way I can fill in the sprite with white and have the white outline, but keep the rest transparent. Here's how I'm displaying sprites right now:
I also need a way to invert the LCD when you attempt to eat the Pichu or miss a food:
Last but not least, it looks like I'll be needing to use a lot of Picture Variables for this project. Should I use the Picture Variables, or is there a better way such as displaying fullscreen hex sprites (If that's even possible)? I tend to like to use as little built in TI-OS variables as possible, so that I don't directly impact the users calculator as much, but if this is the only way I guess I will use the Picture Variables.
Eye Candy:
Project To-do List:
Fallling Food: 100%
Timer and Pichu Mechanics: 100%
Scoring/Yums: 100%
Menus and other Sprites: 100%
This has been released! Download it here: http://ceme.tech/DL2206
Questions:
Right now I'm having an trouble figuring out a good way to fix the issue of the falling food being transparent in the center. Here's what it should look like:
I would like to know if there is a way I can fill in the sprite with white and have the white outline, but keep the rest transparent. Here's how I'm displaying sprites right now:
Code wrote:
:Lbl 1
:RecallPic 2 //Screen with snorlax
:randInt(0,2)->R //Random food
:randInt(0,1)->P //random Pichu
:For(Y,~35,15,10 //Falling sequence
: real(1,32,Y-10,4,32,1,R*32,((R=0 and P=1)*32),3,0,1 //I'm storing sprites in Pic1 and using the Xlib routine to put them on the graph screen. This erases the previous sprite
: RecallPic 2 //Draws back the snorlax
: real(1,32,Y,4,32,1,R*32,((R=0 and P=1)*32),2,0,1 //places sprite at the new location
:End
:Pause
:real(1,32,Y-10,4,32,1,R*32,((R=0 and P=1)*32),3,0,1 //Removes the sprite for the next food to fall
:Goto 1 //Send down another food
:
:RecallPic 2 //Screen with snorlax
:randInt(0,2)->R //Random food
:randInt(0,1)->P //random Pichu
:For(Y,~35,15,10 //Falling sequence
: real(1,32,Y-10,4,32,1,R*32,((R=0 and P=1)*32),3,0,1 //I'm storing sprites in Pic1 and using the Xlib routine to put them on the graph screen. This erases the previous sprite
: RecallPic 2 //Draws back the snorlax
: real(1,32,Y,4,32,1,R*32,((R=0 and P=1)*32),2,0,1 //places sprite at the new location
:End
:Pause
:real(1,32,Y-10,4,32,1,R*32,((R=0 and P=1)*32),3,0,1 //Removes the sprite for the next food to fall
:Goto 1 //Send down another food
:
I also need a way to invert the LCD when you attempt to eat the Pichu or miss a food:
Last but not least, it looks like I'll be needing to use a lot of Picture Variables for this project. Should I use the Picture Variables, or is there a better way such as displaying fullscreen hex sprites (If that's even possible)? I tend to like to use as little built in TI-OS variables as possible, so that I don't directly impact the users calculator as much, but if this is the only way I guess I will use the Picture Variables.