Author Topic: [WIP] TI-Basket  (Read 18417 times)

0 Members and 1 Guest are viewing this topic.

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [WIP] TI-Basket
« Reply #15 on: April 26, 2011, 03:14:29 pm »
Ah ok I didn't see that bit. I hate long posts. I hope this isn't a language limitation x,.x
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Sebasu

  • LV2 Member (Next: 40)
  • **
  • Posts: 31
  • Rating: +0/-0
    • View Profile
Re: [WIP] TI-Basket
« Reply #16 on: April 26, 2011, 10:48:15 pm »
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

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: [WIP] TI-Basket
« Reply #17 on: April 27, 2011, 04:45:02 am »
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 ? :)
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline renatose

  • LV5 Advanced (Next: 300)
  • *****
  • Posts: 209
  • Rating: +4/-0
  • watch out the power balls
    • View Profile
Re: [WIP] TI-Basket
« Reply #18 on: April 27, 2011, 05:33:14 am »
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. ;)

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: [WIP] TI-Basket
« Reply #19 on: April 27, 2011, 03:02:12 pm »
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!

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: [WIP] TI-Basket
« Reply #20 on: April 27, 2011, 03:32:34 pm »
Here's a working version, with that bug (@jimbauwens) fixed :P

http://www.mediafire.com/?rbvap5pum3hxm6w (or see attached)


« Last Edit: April 27, 2011, 03:33:50 pm by adriweb »
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [WIP] TI-Basket
« Reply #21 on: April 27, 2011, 03:58:48 pm »
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...
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Stefan Bauwens

  • Creator of Myst 89 - סטיבן
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1799
  • Rating: +162/-24
  • 68k programmer
    • View Profile
    • Portfolio
Re: [WIP] TI-Basket
« Reply #22 on: April 27, 2011, 04:02:32 pm »
I wonder if the ball could be moving...
« Last Edit: April 27, 2011, 04:03:15 pm by Stefan Bauwens »


Very proud Ticalc.org POTY winner (2011 68k) with Myst 89!
Very proud TI-Planet.org DBZ winner(2013)

Interview with me

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: [WIP] TI-Basket
« Reply #23 on: April 27, 2011, 04:07:16 pm »
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 :

Code: [Select]
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
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [WIP] TI-Basket
« Reply #24 on: April 27, 2011, 04:08:32 pm »
Ah I see, this seems cool. I would probably need to check the wiki to figure out what pww and pwh are, though :P
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: [WIP] TI-Basket
« Reply #25 on: April 27, 2011, 04:11:23 pm »
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)

Code: [Select]
function pww()
return platform.window:width()
end

function pwh()
return platform.window:height()
end
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: [WIP] TI-Basket
« Reply #26 on: April 27, 2011, 04:16:58 pm »
Here's a video of it :P

(really small .mp4)

(see attached)
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [WIP] TI-Basket
« Reply #27 on: April 27, 2011, 04:23:22 pm »
THis looks nice, it would be nice if the ball spinned when throwing it. :D
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)

Offline yunhua98

  • You won't this read sentence right.
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2718
  • Rating: +214/-12
  • Go take a dive in the River Lethe.
    • View Profile
Re: [WIP] TI-Basket
« Reply #28 on: April 27, 2011, 04:45:30 pm »
nice!  this is kinda like the basketball program I made just to test physics.  :P

I might post it here later.  ;)

Spoiler For =====My Projects=====:
Minor setback due to code messing up.  On hold for Contest.
<hr>
On hold for Contest.


Spoiler For ===Staff Memberships===:






Have you seen any good news-worthy programs/events?  If so, PM me with an article to be included in the next issue of CGPN!
The Game is only a demo, the code that allows one to win hasn't been done.
To paraphrase Oedipus, Hamlet, Lear, and all those guys, "I wish I had known this some time ago."
Signature Last Updated: 12/26/11
<hr>

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55942
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: [WIP] TI-Basket
« Reply #29 on: April 27, 2011, 07:27:16 pm »
Oh nice, is it for the Nspire too?
Now active at https://discord.gg/cuZcfcF (CodeWalrus server)