Omnimaga

Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: pianoman on June 03, 2011, 10:26:30 pm

Title: Nspire Blackjack
Post by: pianoman on June 03, 2011, 10:26:30 pm
Hi everyone!
A couple months ago, I made a blackjack game in BASIC for the Nspire. It was almost decent, and I was just planning to make a new, epic version of the game when Lua was discovered for the calculator.
School ends June 10th for me, so after that, I'll be working a lot on it using Lua. I just made this place as an update page, a place for you to make suggestions, a place for me to ask programming questions, and an overall incentive for me to finish.
Thanks!
P.S.- If anyone would like it, I can post my old game here.
Title: Re: Nspire Blackjack
Post by: ruler501 on June 03, 2011, 10:31:17 pm
I'd like your old game.

Whats your lua version going to be like?
Title: Re: Nspire Blackjack
Post by: pianoman on June 03, 2011, 10:33:25 pm
Ok, I'll post it ASAP.
The lua version will hopefully eventually have graphics using Hoffa's tool for sprites (i think) with all of the basic commands, like hit and stand, possibly also split, surrender, and/or double down.
Title: Re: Nspire Blackjack
Post by: ruler501 on June 03, 2011, 11:16:51 pm
SOunds good i'll be excited to see it
Title: Re: Nspire Blackjack
Post by: pianoman on June 04, 2011, 05:56:19 pm
Okay, the original game is attached to this post.

Time for a question: how do you create a field for the user to enter a number in Lua?
Title: Re: Nspire Blackjack
Post by: ruler501 on June 04, 2011, 06:12:26 pm
You have to make your own I believe. You display text(prompt) then wait for them to put something in with the keyboard(you should probably display this also and then wait for enter for taking the value or something. Sorry if this doesn't make sense
Title: Re: Nspire Blackjack
Post by: pianoman on June 04, 2011, 06:20:46 pm
No, it makes sense. My only question is how you display what they are typing.
Title: Re: Nspire Blackjack
Post by: ruler501 on June 04, 2011, 06:22:25 pm
You could store what they type to a variable then display that text after your prompt
Title: Re: Nspire Blackjack
Post by: pianoman on June 04, 2011, 06:31:51 pm
Okay, thanks.
Title: Re: Nspire Blackjack
Post by: ruler501 on June 04, 2011, 06:32:28 pm
If I had time I'd write you up a quick routine to do it
Title: Re: Nspire Blackjack
Post by: pianoman on June 04, 2011, 07:32:46 pm
Does anyone have a routine for this written already?
Title: Re: Nspire Blackjack
Post by: ruler501 on June 04, 2011, 08:12:54 pm
I'll make one. I have a little time
Title: Re: Nspire Blackjack
Post by: DJ Omnimaga on June 06, 2011, 02:54:19 pm
It would be nice to see some graphics. With the Nspire resolution it should make things easier for card sprites :P
Title: Re: Nspire Blackjack
Post by: pianoman on June 06, 2011, 04:28:56 pm
Right, I was going to do that.
I'll post screenies when I make them (after finals :P).
BTW, what's the dimensions for the Nspire screen? How many pixels?
Title: Re: Nspire Blackjack
Post by: DJ Omnimaga on June 06, 2011, 05:17:36 pm
320x240, but in Lua you can't use all of it, if I remember.
Title: Re: Nspire Blackjack
Post by: pianoman on June 06, 2011, 08:03:31 pm
How much can you use?
Title: Re: Nspire Blackjack
Post by: DJ Omnimaga on June 06, 2011, 08:04:09 pm
Unfortunately I do not remember. :(

EDIT: If I calculated correctly, I think 318x212 (the entire area that is netham-coloured below)
Title: Re: Nspire Blackjack
Post by: pianoman on June 06, 2011, 08:20:46 pm
Got it. Thanks, DJ!
Title: Re: Nspire Blackjack
Post by: ExtendeD on June 07, 2011, 04:42:11 am
This info should be added somewhere to the nspired-lua.org wiki if it's correct.
Title: Re: Nspire Blackjack
Post by: pianoman on June 07, 2011, 07:41:53 pm
Wonderful :D
Title: Re: Nspire Blackjack
Post by: pianoman on June 13, 2011, 01:16:53 pm
Update 1:
My school got out, so I'll be able to work on this more.
I'm just about finished with the graphics, so I should be ready to start coding soon. :)
Title: Re: Nspire Blackjack
Post by: pianoman on June 21, 2011, 09:25:53 pm
Update 2:
The bad news is that I'm going to have to stop this until my contest entry is done.
The good news is that I'll probably start again after the contest is over.
Title: Re: Nspire Blackjack
Post by: pianoman on September 06, 2011, 05:30:44 pm
Wow, I completely forgot about this until today, when one of my friends asked me when this was coming out. I'm not sure if I'm going to continue this, so if you would like to do this, just PM me. If I don't get any PM's, then  I'll just probably put this in the line of projects :).