Omnimaga
Calculator Community => Other Calc-Related Projects and Ideas => TI-Nspire => Topic started by: Adriweb on April 26, 2011, 06:17:51 am
-
B'jour tout le monde !
Hi everyone !
Just a little topic to announce the release of a game I'm making in LUA : TI-Basket (by the way, if you have a better name, please tell me :P)
The game features two play modes : "Normal" and "Hardcore"
The normal mode is just a basic thing : you have a non-moving target, and you have to change the power and the angle in order to reach the target (the basket)
The hardcore mode is more interesting : it's the same, but with wind (in x and y coords), and a moving target ! (believe me, the wind really changes the physics diff eqs :P)
Here are some screenshots ...
(http://i27.servimg.com/u/f27/11/67/13/30/captur14.jpg)(http://i.imgur.com/11GD0.jpg)(http://i.imgur.com/lq4U6.jpg)(http://i.imgur.com/VNtg1.jpg)
So, if you have some other ideas for the while game in general, please comment here :)
I thought about adding a "Time Attack" mode when the player has only a limited time to shoot, but from the programming point of view, I'm already using a timer for the trajectory display, so I don't know how to do that , since we can only use one timer at a time .... I'll see if I can find a way to get around this :/
Video :
(the game is slower on-calc than on this video, which is better anyway)
EDIT : Download and source code here : https://github.com/adriweb/TI-Basket (https://github.com/adriweb/TI-Basket)
-
Nice, can't wait to try it :)
Looks real awesome!
-
Wait, the TI-nspire CX is out?
-
@jimbauwens : Thanks ! :)
@graphmastur : http://www.google.com/search?q=ti+nspire+cx&tbs=shop%3A1&aq=f (http://www.google.com/search?q=ti+nspire+cx&tbs=shop%3A1&aq=f) :P
but all my screenshots were taken in the Computer Software
-
Wait, the TI-nspire CX is out?
TI posted a picture on their Facebook page of the first Nspire CX calcs leaving the factory very recently, so they aren't out right yet, but they'll be soon.
-
nBasketball?
This looks good.
I wonder if the CX's released have the new OS or not.
-
I wonder if the CX's released have the new OS or not.
If you mean 3.0, then yes. OSes older than 3.0 don't even work on the CX.
-
I meant the one they're releasing to fix 3.0
-
I meant the one they're releasing to fix 3.0
That OS is not released yet, so I doubt it...
-
They'll release it in May I think.
In the meanwhile, Adriweb, this is a good game, I'd really like an animated screenshot of it though :D Good luck with it.
-
I think TI released the CX already, but only online, kinda like what Casio did with the Prizm. When the Prizm came out online, it took almost 2 months before it appears in stores.
Also nice Adriweb, it would be nice if there were some graphics like an actual basket like in basket ball or maybe even a basket ball field. ;D
-
Looks nice! Good luck with this!
@Scout: He has a mp4 link in his post. So you can watchit in action.
-
Also nice Adriweb, it would be nice if there were some graphics like an actual basket like in basket ball or maybe even a basket ball field. ;D
Wow, this is actually exactly what I've been doing today :P
Well release as soon as it's ready :P
-
Cool to hear. Are you planning to add some time limit too, where you must score the highest amount of point in a certain amount of time?
Also it would be nice to host the MP4 on an american server like Mediafire.com, because on european servers it downloads at 30 KB/sec on my 3000 KB/sec connection.
-
Cool to hear. Are you planning to add some time limit too, where you must score the highest amount of point in a certain amount of time?
Also it would be nice to host the MP4 on an american server like Mediafire.com, because on european servers it downloads at 30 KB/sec on my 3000 KB/sec connection.
as I said in the post ... :P
I thought about adding a "Time Attack" mode when the player has only a limited time to shoot, but from the programming point of view, I'm already using a timer for the trajectory display, so I don't know how to do that , since we can only use one timer at a time .... I'll see if I can find a way to get around this :/
and here's the mediafire link : http://www.mediafire.com/?n82ld8bpll6lqc5 (http://www.mediafire.com/?n82ld8bpll6lqc5)
-
Ah ok I didn't see that bit. I hate long posts. I hope this isn't a language limitation x,.x
-
wow is a good game, reminds me of DOS game bangbang, do you think may be able to modify it to acemeje more to BangBang?, so you could play in a versus mode by two players or against the handheld, good luck with this game
-
Thanks !
@DJ_O : I might have found something with the timers that could be used for the time-attack mode tho, I'll look more into that :D
@Sebasu That's a nice idea, maybe for a next version ? :)
-
I loved that game, Bang Bang was awesome! It was really funny in "vs mode" and could also have a "level mode" with various diferent targets. ;)
-
I just tried it, and it very nice!
Nice graphics and nice speed.
There are some little issues with text in the menu going out of the screen, but these are minor problems.
So good work Adriweb!
-
Here's a working version, with that bug (@jimbauwens) fixed :P
http://www.mediafire.com/?rbvap5pum3hxm6w (http://www.mediafire.com/?rbvap5pum3hxm6w) (or see attached)
(http://i.imgur.com/Vto6s.jpg) (http://i.imgur.com/hSOrr.jpg)
-
Nice, it looks better and better. :D By the way what do you use for the ground and circle? Is it an image or is it rectangle and circle routines? I am curious how large an image is in Lua...
-
I wonder if the ball could be moving...
-
Nice, it looks better and better. :D By the way what do you use for the ground and circle? Is it an image or is it rectangle and circle routines? I am curious how large an image is in Lua...
yes, just a rectangle and circle.
I had a nicer background but it wasn't rendering well on grayscale nspires so I changed it to a plain one.
this is what I do :
function drawBackground(gc)
gc:setColorRGB(255,150,80)
gc:fillRect(0,165,pww(),165)
gc:setColorRGB(255,255,255)
gc:drawArc(pww()*0.5-60,pwh()-30, 120,80,0,180)
end
-
Ah I see, this seems cool. I would probably need to check the wiki to figure out what pww and pwh are, though :P
-
Ah I see, this seems cool. I would probably need to check the wiki to figure out what pww and pwh are, though :P
oops, this is actually some functions I made :P (included in the BetterLuaAPI library I'm coding)
function pww()
return platform.window:width()
end
function pwh()
return platform.window:height()
end
-
Here's a video of it :P
(really small .mp4)
(see attached)
-
THis looks nice, it would be nice if the ball spinned when throwing it. :D
-
nice! this is kinda like the basketball program I made just to test physics. :P
I might post it here later. ;)
-
Oh nice, is it for the Nspire too?
-
THis looks nice, it would be nice if the ball spinned when throwing it. :D
it is a TI.image ... thus..
-
Well I meant more like an animation of the ball spinning :P (made of multiple images)
-
Well I meant more like an animation of the ball spinning :P (made of multiple images)
The images are huge tho :P
I'll look more into that, but I think I'm going to draw the ball programmatically .... then it could be easier
-
New version !
Including a better engine overall
Optimizations
Scoring system :thumbsup:
Time-Attack mode ;D
Secret Mode if you can discover it
PS : the time left shown in the screenshot is not showing the right value (don't worry, there is no bug on-calc) The max time is 60 secs
-
Woah Adriweb, that's lookigng pretty cool, new graphics, a menu, really cool. Nice job.
-
Thanks !
I'll submit it to the archives :)
-
TI-Basket
http://www.omnimaga.org/index.php?action=downloads;sa=view;down=661
The game features three play modes : "Normal", "Hardcore", and "Time-Attack"
The normal mode is just a basic thing : you have a non-moving target, and you have to change the power and the angle in order to reach the target (the basket)
The hardcore mode is more interesting : it's the same, but with wind (in x and y coords), and a moving target ! (believe me, the wind really changes the physics diff eqs )
The Time-Attack is like the Normal mode but you only have 60 seconds to score as much as possible, good luck !
Source Code Included in the .zip
Screenshots :
(http://i.imgur.com/skNdo.jpg) (http://i.imgur.com/3VRx2.jpg)
-
Congratulations!
-
I'll try this right now and give feedback later ;)
-
When I played this on my calculator it froze as soon as I made it in on Normal(I was testing it) how do you keep going after you win?
-
I think you have to press the arrow keys, to continue.
-
I downgraded to 2.0.1 for now so I can run OSLauncher and CAS so I'll go back to testing this some other time.
-
it stopped after the first launch in normal mode.