Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: DJ Omnimaga on May 07, 2010, 07:04:59 pm

Title: SirCmpwn Axe game: Obstacle Snake
Post by: DJ Omnimaga on May 07, 2010, 07:04:59 pm
Since SirCmpwn can't get on Omnimaga ATM I am posting this for him.

He made a new Axe game called Obstacle snake. Basically a snake clone but there are some obstacles to avoid (the black squares) and it gets harder as it progresses.

Below is attached a screenshot and the download.

I find it pretty nice

EDIT: attached another screenshot where I modified the code so no the game has no speed restriction. Tool-assisted gameplay, tho, else it was insane XD
Title: Re: SirCmpwn Axe game: Obstacle Snake
Post by: Geekboy1011 on May 07, 2010, 07:43:53 pm
wow awsome probally will compile this on my calc later and keep it running out of games to play since i beat pyoro X.x
Title: Re: SirCmpwn Axe game: Obstacle Snake
Post by: Eeems on May 07, 2010, 07:58:54 pm
wow! that's amazing!
Title: Re: SirCmpwn Axe game: Obstacle Snake
Post by: calcdude84se on May 07, 2010, 08:04:07 pm
Nice concept. I may download it.
Title: Re: SirCmpwn Axe game: Obstacle Snake
Post by: TIfanx1999 on May 07, 2010, 08:06:13 pm
The speed of Axe amazes me. This looks really nice!
Title: Re: SirCmpwn Axe game: Obstacle Snake
Post by: DJ Omnimaga on May 10, 2010, 01:01:37 am
He sent me another version!

Quoted from him:

Quote
Speaking of which...
I've attached the latest version.  It has support for high scores and fixes
a few bugs.  I think it's a quality program, personally.
If you could post the update on Omnimaga I would be eternally grateful.
Maybe say some stuff about the source code, seeing as it's included.
Title: Re: SirCmpwn Axe game: Obstacle Snake
Post by: _player1537 on May 13, 2010, 07:30:20 am
AHHH rickrolled, good job SIr.  If this is the same version he sent me (looks like it, mine has highscores and such) then I have tried it and it is quite a good snake clone.  The only thing I don't like is that it crashes MOS sometimes (I think its one of those flags someone was talking about or L2)
Title: Re: SirCmpwn Axe game: Obstacle Snake
Post by: ztrumpet on May 13, 2010, 07:52:36 am
That looks great SirCmpwn! :D  Awesome job! :)
Title: Re: SirCmpwn Axe game: Obstacle Snake
Post by: DJ Omnimaga on May 13, 2010, 09:38:54 am
AHHH rickrolled, good job SIr.  If this is the same version he sent me (looks like it, mine has highscores and such) then I have tried it and it is quite a good snake clone.  The only thing I don't like is that it crashes MOS sometimes (I think its one of those flags someone was talking about or L2)
It definitively must be when it stores highscores. It seems to overwrite some stuff Mirage uses, because in my game I had this happen too and only when highscore storage is being done.
Title: Re: SirCmpwn Axe game: Obstacle Snake
Post by: SirCmpwn on May 13, 2010, 03:31:42 pm
I haven't noticed.  I have found a couple of fatal errors, and I'm working on fixing them.
Title: Re: SirCmpwn Axe game: Obstacle Snake
Post by: DJ Omnimaga on May 13, 2010, 04:39:18 pm
mhmm I didn't notice them. Are they because of the highscore? I am curious about how to get around the MirageOs bug x.x
Title: Re: SirCmpwn Axe game: Obstacle Snake
Post by: _player1537 on May 13, 2010, 04:40:47 pm
I think they are because of the highscore, because when I didn't get a highscore it worked fine.  But when I did get a highscore, the 1st place score was like 655xx (forgot the last two numbers, but it was like the highest it could be)
Title: Re: SirCmpwn Axe game: Obstacle Snake
Post by: DJ Omnimaga on May 13, 2010, 04:43:10 pm
Now that reminds me... initially when I started working on my highscore routines, I forgot to set 0 to all highscores when initializing the APPVAR for the frist time. But here's the issue: it would display scores of like 30000-60000. What the heck were those values??? Maybe something in the RAM gets overwritten?
Title: Re: SirCmpwn Axe game: Obstacle Snake
Post by: _player1537 on May 13, 2010, 04:44:29 pm
one other thing, maybe it had to do with the sign of the byte(s), because when the sign bit (the far left one) is on it would read somewhere in the 30000-60000 range
Title: Re: SirCmpwn Axe game: Obstacle Snake
Post by: calcdude84se on May 13, 2010, 05:12:06 pm
Are the _Create... bcalls guaranteed to clear the space allocated? If they're not, then there's your answer.
Title: Re: SirCmpwn Axe game: Obstacle Snake
Post by: DJ Omnimaga on May 13, 2010, 05:17:18 pm
Not too sure what you mean x.x
Title: Re: SirCmpwn Axe game: Obstacle Snake
Post by: calcdude84se on May 13, 2010, 05:24:52 pm
In ASM, bcalls starting with "Create" are used to create a variable. Where the variable data is, there are two bytes denoting size, followed by the rest of the variable data. The question is whether that data is zeroed out before the bcall returns.
Title: Re: SirCmpwn Axe game: Obstacle Snake
Post by: DJ Omnimaga on May 13, 2010, 05:34:14 pm
Aaaah ok, but I was curious what it had in relation with the MirageOs bug.
Title: Re: SirCmpwn Axe game: Obstacle Snake
Post by: Quigibo on May 13, 2010, 06:44:37 pm
When you create an application variable, assume random garbage is already there, it is not automatically set to 0.

Wait, so what is the error right now?  Is it the 65535 size error or is Mirage actually changing the high scores?
Title: Re: SirCmpwn Axe game: Obstacle Snake
Post by: DJ Omnimaga on May 13, 2010, 07:30:45 pm
Btw just tested on Wabbitemu and couldn't replicate the MOS crash ???
Title: Re: our dear friend Axe game: Obstacle Snake
Post by: Silver Shadow on May 17, 2010, 08:24:50 am
Hehe, I love this thread's new title... ;D
Title: Re: our dear friend Axe game: Obstacle Snake
Post by: DJ Omnimaga on May 17, 2010, 01:12:20 pm
Lol yeah altough it kinda sucks we have to do this x.x

hopefully this changes in one year and one month (when he will have graduated and turned 18)
Title: Re: our dear friend Axe game: Obstacle Snake
Post by: nemo on May 28, 2010, 05:45:42 pm
i found a glitch.
the blocks have a possibility of overlapping with the path of your snake. when the end of the snake reaches and tries to delete the overlapped section, the end changes direction and grows until it hits a wall, when it then recedes until it gets back to the blocked section. and then it grows.. and recedes.. over and over. i had a whole screen filled up because the end wouldn't delete itself (:
Title: Re: our dear friend Axe game: Obstacle Snake
Post by: SirCmpwn on May 29, 2010, 01:31:59 pm
Yeah, there is that bug, the same bug with apples (less common), and occasionally corrupt score tables.  I'll fix them eventually :P
Title: Re: our dear friend Axe game: Obstacle Snake
Post by: DJ Omnimaga on May 29, 2010, 07:26:32 pm
I saw your update on ticalc, but what happened to your download count?? Either your former file dissapeared from ticalc or you created a duplicate author accounts. Otherwise, could it be because you uploaded the file in a different directory?
Title: Re: our dear friend Axe game: Obstacle Snake
Post by: SirCmpwn on May 29, 2010, 10:25:57 pm
I uploaded it for the first time yesterday :P
Title: Re: our dear friend Axe game: Obstacle Snake
Post by: DJ Omnimaga on May 30, 2010, 01:33:09 am
really? Because I saw it in ticalc.org archives for one week. It was even in the recent files list. It was uploaded around the same time I uploaded my old files on ticalc and the author name was yours. It was updated once during that time, too

The only difference is that the version uploaded at ticalc.org last week was under MirageOS rather than just ASM games