CodeWalrus

Development => Calculators => Calc Projects, Programming & Tutorials => Topic started by: CKH4 on January 05, 2015, 07:43:53 PM

Title: Seizure Tank
Post by: CKH4 on January 05, 2015, 07:43:53 PM
My first axe project, it started as a simple box movement engine(?). Now it's a 4 level gray scale flashing seizure causer (hopefully not literally). It's horribly un-optimized but it's good at being seizury. Here's a still screenshot, not a gif because it's written on my phone. I have the source up if anyone wants it. (please tell me if it will cause any issues on real calcs)

Clear to quit, arrow keys to move.
Image:[spoiler](http://i.imgur.com/GeL7CoT.gif)
(http://s24.postimg.org/td1w4e72d/Screenshot_2015_01_05_10_50_22.png)[/spoiler]

Source:
.TANK
ClrDraw
[00665A38385A6600]->Pic1
[00665A3C3C426600]
[00665A1C1C5A6600]
[0066423C3C5A6600]
10->X
10->Y
0->theta
Repeat getKey(15)
Pt-Off(X,Y,Pic1+theta
Rect(0,0,96,64)^^r
DrawInv
DispGraph^^r^^r
Pause 50
If theta=0
X++
End
If theta=8
Y++
End
If theta=16
X--
End
If theta=24
Y--
End
If getKey(1)
8->theta
End
If getKey(4)
24->theta
End
If getKey(2)
16->theta
End
If getKey(3)
0->theta
End
End


Whats new...
Updated Image (GIF)
Actual File (.8xp)
Title: Re: Seizure Tank
Post by: Keoni29 on January 05, 2015, 09:44:11 PM
How come that box looks like this?
Title: Re: Seizure Tank
Post by: CKH4 on January 05, 2015, 11:45:59 PM
It appears that I typed something in wrong...

I'll upload a picture of the original sprite.
Title: Re: Seizure Tank
Post by: Dream of Omnimaga on January 06, 2015, 12:08:23 AM
Interesting effect. It would be nice to see in action, though and if later you could post a 8xp version. :P
Title: Re: Seizure Tank
Post by: CKH4 on January 06, 2015, 12:12:50 AM
I'm working on it, wabbit for android sorta sucks. I have to write it in by hand and the effect may be because of residual stuff on the back buffers.

Edit.
I've tested it and it works again. The source section is updated but I'm not sure how to pull files from wabbit. Does anyone know how to?

Edit2.
In reply to Keoni29

Original Sprite:
[spoiler](http://s8.postimg.org/hzqid7zut/2015_01_05_20_08_59.png)[/spoiler]
Title: Re: Seizure Tank
Post by: Dream of Omnimaga on January 06, 2015, 03:26:11 AM
I'm unsure how to do it on the Android version, but if I remember correctly, in the PC version of Wabbit you had to press F7, which popped up a menu from which you could drag and drop calculator files.
Title: Re: Seizure Tank
Post by: CKH4 on January 06, 2015, 04:01:02 AM
Quote from: DJ Omnimaga on January 06, 2015, 03:26:11 AM
I'm unsure how to do it on the Android version, but if I remember correctly, in the PC version of Wabbit you had to press F7, which popped up a menu from which you could drag and drop calculator files.
I'm in the computer version now because SC doesn't support Axe (or its commands commands). None of the fn keys seem to do that. Is this a missing feature in wabbit or am I just thoroughly confused?
Title: Re: Seizure Tank
Post by: Dream of Omnimaga on January 06, 2015, 05:56:09 AM
Erm SourceCoder actually supports Axe. It must be available in the dropdowns somewhere. It even supports Casio BASIC. As for WabbitEmu the feature was very buggy so maybe they removed it.
Title: Re: Seizure Tank
Post by: CKH4 on January 06, 2015, 05:59:11 AM
Ok, thanks. The specific command that I can't find is Rect(. I'll upload the 8xp but you'll have to manually change it to Rect( and then compile it.
Title: Re: Seizure Tank
Post by: Dream of Omnimaga on January 06, 2015, 11:02:40 PM
In the command menu to the right of the editor, expand "Drawing" and Rect() should be there. Make sure that TI-83+/84+ Axe is selected first. In TI-BASIC mode, Rect() is basically ref().
Title: Re: Seizure Tank
Post by: CKH4 on January 07, 2015, 01:01:16 AM
Ok thanks, it appears that it was just a stupid attention fail on my part.

Edit.
Gif uploaded, don't look at it if you get seizures
File attached
Title: Re: Seizure Tank
Post by: Dream of Omnimaga on January 07, 2015, 03:20:49 AM
That would make a pretty nifty SNake clone :D.
Title: Re: Seizure Tank
Post by: CKH4 on January 07, 2015, 12:44:14 PM
Thanks but I'm only just starting to learn. I'm fairly certain that it could be optimized to half the size. Maybe eventually I'll continue it into a snake game.
Title: Re: Seizure Tank
Post by: Dream of Omnimaga on January 07, 2015, 05:49:28 PM
Well good luck with whatever you decide :)