Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI Z80 => Topic started by: Cinaed666 on February 05, 2010, 11:53:25 am

Title: TI-Hero
Post by: Cinaed666 on February 05, 2010, 11:53:25 am
Hey guys, I haven't been on here for a while, but I thought I'd share this program I made today.
It's basicly a guitar hero clone for the TI-84+

It generates random notes, a little big buggy perhaps. ah well.

Use keys F1 - F4 to play.

To play, run GH. Oh, and please do look at my horrible coding. ;)

UPDATE:
* Cleaned up some code
* Easy/medium/hard selection (speed).
* Uploaded in ZIP

ANOTHER UPDATE (FINAL)
*Highscore
*No more doubles
*Pause function (f5)

It's pretty slow, since I made an error I couldn't find, so I had to patch it up with some slow code.
So even hard is pretty slow. Ah well, HAve fun ;)

Sorry it's 3 files, I just like to keep it modular.
Title: Re: TI-Hero
Post by: DJ Omnimaga on February 05, 2010, 12:00:06 pm
Heya welcome back, where did you go? D:

I will try this when I get a chance
Title: Re: TI-Hero
Post by: Cinaed666 on February 05, 2010, 12:15:57 pm
Heya welcome back, where did you go? D:

I will try this when I get a chance
Guess I got out of TI programming for a while, but somebody challenged me to do this, so I did ^^
Title: Re: TI-Hero
Post by: DJ Omnimaga on February 05, 2010, 12:17:06 pm
Aaaw that sucks :( but I guess it can't really be as interesting for everyone, not to mention programming can be quite a challenge by itself (and requires motivation)
Title: Re: TI-Hero
Post by: Cinaed666 on February 05, 2010, 12:24:42 pm
Aaaw that sucks :( but I guess it can't really be as interesting for everyone, not to mention programming can be quite a challenge by itself (and requires motivation)
I think I was kinda annoyed by the fact my TI is one batch too young to be able to play the GB emulator xD
Title: Re: TI-Hero
Post by: DJ Omnimaga on February 05, 2010, 01:14:43 pm
Aaah I see, altough you can still do some other cool stuff on it ^^
Title: Re: TI-Hero
Post by: ztrumpet on February 05, 2010, 04:40:19 pm
I tried to try it, but I couldn't as it's not in the .8xp format.  Can you upload it just as a program please?  I can't wait to try it.  Welcome back! :D
Title: Re: TI-Hero
Post by: Cinaed666 on February 05, 2010, 05:42:04 pm
I tried to try it, but I couldn't as it's not in the .8xp format.  Can you upload it just as a program please?  I can't wait to try it.  Welcome back! :D
It's an archive, this file contains two files, GH.8xp and ppop.8xp, you need winrar or 7zip to extract it.
Title: Re: TI-Hero
Post by: Eeems on February 05, 2010, 06:28:56 pm
Try to upload in .zip so everybody can use them. Also, zip is all you really need for such small files.
Title: Re: TI-Hero
Post by: DJ Omnimaga on February 06, 2010, 01:15:15 am
I tried altough I sucked pretty bad XD

Not too bad, altough it could probably use some optimization for speed, but everyone has to start somewhere. I hope you continue coding 
Title: Re: TI-Hero
Post by: Cinaed666 on February 06, 2010, 05:26:07 am
I tried altough I sucked pretty bad XD

Not too bad, altough it could probably use some optimization for speed, but everyone has to start somewhere. I hope you continue coding  

Hah, lol.

With optimization, you mean like a setting for the speed?

Did that now ;)
Title: Re: TI-Hero
Post by: ztrumpet on February 06, 2010, 01:32:10 pm
Wow, looks nice.  I'd really like it uploaded in a .zip format, as then I could try it. :)

This is a pretty nice first attempt.  Great job!
Title: Re: TI-Hero
Post by: Cinaed666 on February 06, 2010, 04:57:03 pm
Wow, looks nice.  I'd really like it uploaded in a .zip format, as then I could try it. :)

This is a pretty nice first attempt.  Great job!
Check the file, I already re-uploaded it in a zip version ;)
Title: Re: TI-Hero
Post by: ztrumpet on February 06, 2010, 05:35:32 pm
Looks great!  The only thing I don't like is the multiple notes at once.  Since this is Pure Basic, you cannot have two keys pressed at the same time.  Due to this fact, you can't hit both notes, so it's impossible to hit two notes at once. :)
Title: Re: TI-Hero
Post by: DJ Omnimaga on February 06, 2010, 05:45:21 pm
I tried altough I sucked pretty bad XD

Not too bad, altough it could probably use some optimization for speed, but everyone has to start somewhere. I hope you continue coding 

Hah, lol.

With optimization, you mean like a setting for the speed?

Did that now ;)
Well I meant like to optimize the code so it runs a bit faster, because looking at the game, I am certain it would be possible to have it run at least 1.5x faster (4x if the notes are pregenerated before song starts and stored in a list, altough that takes a long while to load). However it's a start and I am happy you got back in calc programming again ^^
Title: Re: TI-Hero
Post by: Cinaed666 on February 07, 2010, 06:25:32 am
I tried altough I sucked pretty bad XD

Not too bad, altough it could probably use some optimization for speed, but everyone has to start somewhere. I hope you continue coding 

Hah, lol.

With optimization, you mean like a setting for the speed?

Did that now ;)
Well I meant like to optimize the code so it runs a bit faster, because looking at the game, I am certain it would be possible to have it run at least 1.5x faster (4x if the notes are pregenerated before song starts and stored in a list, altough that takes a long while to load). However it's a start and I am happy you got back in calc programming again ^^
Any hints on what parts slow it down the most?
Title: Re: TI-Hero
Post by: Cinaed666 on February 09, 2010, 01:32:03 pm
Just to let you know, I'm rewriting a large part of it, new features when finished:
Pause Function (done)
Pre-rendered, random notes, without any doubles. (done)
Implementing new note system in engine: nearly done.
Title: Re: TI-Hero
Post by: DJ Omnimaga on February 09, 2010, 01:34:45 pm
I will probably check the code later, totally missed the previous post lol. I can't guarantee the best optimizations, though, but I'll see what I can do x.x

If you're using random songs simfiles, I am pretty sure the Rand or RandInt( function might be at fault.

Otherwise, an idea I would have is that you check through xLIB xLIB Revolution or Super Mario Smash Dance code for how I did my rhythm games engines. They are not GH games, they're DDR-style, and uses xLIB (or Celtic III) for displaying graphics, but it might give a small idea and hopefully help. Just assume everything that is real(1 is Output( and real(4 is Disp "". Also my levels were pre-rendered and external and only 3 are avaliable so that part might be a bit different.

EDIT: screenshot of it in action (altough you need to use a browser tha supports higher than 10 frames a second in animated GIFs, like Firefox or Opera, or Quicktime Player)
(http://xlib.mtv-music-generator.com/xxr.gif)

But nice to see new version coming up, though :)

EDIT: Also if in any case it can be made faster, I would recommend still keeping it a lil slow for begginers, though, lol :D
Title: Re: TI-Hero
Post by: Cinaed666 on February 09, 2010, 05:37:54 pm
Also if in any case it can be made faster, I would recommend still keeping it a lil slow for begginers, though, lol :D
[/quote]
Well the version up now has an easy/medium/hard mode, which changes the speed, just a short pauze every sequence I implemented which can be adjusted.
Title: Re: TI-Hero
Post by: Cinaed666 on February 12, 2010, 11:38:28 am
Final version is up, working on something new now.
Title: Re: TI-Hero
Post by: DJ Omnimaga on February 12, 2010, 04:36:53 pm
sorry didn't have time to check if I could optimize, and I am afraid I doubt I will have time soon :(

I might check the new version later, though, if I don't forget due to being sidetracked by other stuff again
Title: Re: TI-Hero
Post by: ztrumpet on February 12, 2010, 04:56:05 pm
It looks nice.  Good job! :)