Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: ajorians on November 16, 2013, 01:43:48 pm

Title: nDealOrNoDeal for Nspire
Post by: ajorians on November 16, 2013, 01:43:48 pm
Hey Guys,

I've been making the game Deal or No Deal for the TI-Nspire! :)  If you are familiar with the television show or a game based off the show you should already be familiar with how to play this.  I include all my source in the attachment.

It is almost where I want it to be.  I got to add some better touchpad handling.  I was trying to make the game fully playable using only the touchpad; and it almost is.  I need to make the touchpad work using relative coordinates to where you first touched the touchpad.  What happens is you get the cursor over the case you want and when you press the touchpad center button ever so slightly before it is pressed the cursor moves to the center.  The good news is you can play using the 2,4,6,8 keys and the enter key (also an option to not use a mouse cursor and therefore the touchpad arrows are very useable).

I did a few things for the non-CX TI-Nspires so they are decently playable.

Let me know if you see anything else that could be improved upon.  And holler if you have any questions or concerns!

Have an amazing day!
Title: Re: nDealOrNoDeal for Nspire
Post by: The_King on November 16, 2013, 01:56:23 pm
very good
i take that as deal
Title: Re: nDealOrNoDeal for Nspire
Post by: Jonius7 on November 16, 2013, 10:04:39 pm
That looks really good with the Deal or no Deal artwork. I wonder what is the player standing? Perhaps, as you increase it between games, you can unlock features or something?
Title: Re: nDealOrNoDeal for Nspire
Post by: AssemblyBandit on November 17, 2013, 04:38:31 am
Looks like an awesome game!
Title: Re: nDealOrNoDeal for Nspire
Post by: SpiroH on November 17, 2013, 07:55:10 am
One more entertaining contribution!
... It is almost where I want it to be. 
Keep it up until you're happy with it. Others will appreciate your efforts.
Title: Re: nDealOrNoDeal for Nspire
Post by: ajorians on November 17, 2013, 09:49:11 am
Hey Guys,

Jonius7: I figured since you don't actually win real money that there would be no reason to ever accept a deal.  And if you never accept a deal it might not be of any fun.  So player standing is if you accept a deal and it was more than the case you picked; or if you open your case and it had more than the last offer your player standing increases.  Otherwise it decreases.

But you know I always did want to have a game with achievements!  Such possible achievements could be: won the million dollars; played 10 games; played 50 games; accepted 10 deals; close call (2 remaining cases are the million and 1/2 million); and perhaps some others.  But I wasn't thinking (at least for this game) that points could be cashed in to unlock extra features.  But that would be cool.  I might just add the achievement thing!  That would be sweet! :)

hking1, AssemblyBandit, SpiroH: Thanks so much guys!!

Have a great day!
Title: Re: nDealOrNoDeal for Nspire
Post by: Legimet on November 17, 2013, 01:35:23 pm
This game looks awesome! :)
(And good job using C++)
Title: Re: nDealOrNoDeal for Nspire
Post by: chickendude on November 17, 2013, 02:32:11 pm
It looks great as usual, just one thing, in the screenshot i don't understand what that sentence means: "Because you accepted you got more money that if you kept going your points increased."
Title: Re: nDealOrNoDeal for Nspire
Post by: Legimet on November 17, 2013, 03:15:49 pm
Yeah, that sentence doesn't make sense to me either.
Title: Re: nDealOrNoDeal for Nspire
Post by: ajorians on November 17, 2013, 05:04:41 pm
Hey Guys,

:)

Yeah; let me explain a little better.  There are 4 outcomes:
1. Decline all offers and your picked case has more than the last offer.
2. Decline all offers and your picked case has less than the last offer.
3. Accept an offer and your offer is greater than your picked case.
4. Accept an offer and your offer is less than your picked case.

Your points go in in outcomes 1 & 3.  Your points go down in outcomes 2 & 4.  Hope that helps! :)
Title: Re: nDealOrNoDeal for Nspire
Post by: DJ Omnimaga on November 17, 2013, 05:11:05 pm
Awesome project and nice to see you back in action ajorians. :D

Also Deal or no Deal is pretty popular where I live (although it's called "The Banker" in French over here and thankfully, it's not just a French dub of the original TV show, unlike The Wall and early versions of Wipeout)
Title: Re: nDealOrNoDeal for Nspire
Post by: ajorians on November 19, 2013, 08:20:36 pm
Hey Guys,

I put your suggestions of achievements into the game.  I fixed some bugs and added an option to set the duration that the label will blink for.  I offer 2 duration lengths but if you use nTxt and edit the settings file you could adjust more than exposed in the UI.

I made the touchpad changes so that is pretty cool.  Give it a try if you can!

So it is almost done.  I plan on adding a little meter in the achievement view to indicate how close you are to passing an achievement.

Sources are included; I hope you like it! :)
Title: Re: nDealOrNoDeal for Nspire
Post by: DJ Omnimaga on November 20, 2013, 09:52:08 pm
I like the achievements ideas. They are getting more popular nowadays so it's a good idea to add them to increase replay value. :)
Title: Re: nDealOrNoDeal for Nspire
Post by: Adriweb on November 21, 2013, 02:08:34 am
Yep, pretty nice :D
Title: Re: nDealOrNoDeal for Nspire
Post by: ajorians on November 23, 2013, 12:49:35 pm
Hey Guys,

I think I am at a good point with this game and will start my next project shortly!

There are some pretty cool additions added.  I added little progress meters in the achievement screen such that you know how close you are to having an achievement done.  This works for the achievements such as play 10 games; so if you have played 8 games and wondering if the achievement system is broken you'll see you just have a little more to go.  For achievements such as 'win one million' the meter won't help.

I added such that you can press exit in the middle of a game and you can resume the game (or not).  This is convenient if you want to change some options and return to the game.  I didn't add it but was thinking of making it so you could exit the whole program and it would persist the game to a file and you could resume your game when you reopen the program.  This way if you were in class and needed to do some calculations you could and then resume.

Let me know what you think!

And have a great day!
Title: Re: nDealOrNoDeal for Nspire
Post by: SpiroH on November 27, 2013, 01:49:48 pm
... I didn't add it but was thinking of making it so you could exit the whole program and it would persist the game to a file and you could resume your game when you reopen the program.  This way if you were in class and needed to do some calculations you could and then resume.
How do you mean? Pretend that you are listening to the lecturer while you're actually playing? Beware i know those dirty tricks. Now i'll be extra warned. ;)

Now more seriously, i really like your contributions. If you don't my asking, what's the next project you're about to start? Is it also nspire related or is it secret stuff?
Title: Re: nDealOrNoDeal for Nspire
Post by: ajorians on November 27, 2013, 02:26:46 pm
Hey SpiroH,

For what it is worth I was thinking actually listen to the lecturer.  :)  So say you're playing a game and class is about to start.  Many games (mine included) don't allow you to completely pause and exit the game and resume later (such as when class is over).  You either have to finish up really quick or exit and when you return to the game you'll have to restart the level/map/whatever when you get back.  It may not really matter for Deal or No Deal; but all of these concepts (such as achievements, option screen, register file extensions, etc) can and will be used in the next thing I make.

I really love your contributions as well!  Please keep doing everything you are doing.  I know when you talk to friends/classmates/etc about programming for graphing calculators they don't always get it.  We enjoy programming for these devices.  It feels good when we make something.  We don't deny that our devices have limitations.  But hey we got color screens now! :)

I haven't started the next project yet; but hopefully should soon.  I was thinking of Jezzball and found a couple of existing SDL programs on the Internet that might be able to be adapted to the calculator somewhat quickly.  But I'd also like to make something that uses tangrs multi-threading proof of concept (https://github.com/tangrs/nspire-multithreading-poc).  I tried a little with it and really want to give it a second try.  So I don't really know the next thing but I'm liking the NSpire so it probably will be for that!

Have a great day!
Title: Re: nDealOrNoDeal for Nspire
Post by: mdr1 on June 02, 2014, 01:40:53 pm
Cool, you fixed the gestion of the mouse. :)
It remains a problem: on the achievements menu, the cursor is really too fast and the "played 10 games" item can be selected only by going on the "close call" one's and then pressing up.