So, I have started making a game for the TI-84+ and its called Plinko, which is played on The Price Is Right. I was wondering how I would go about keeping the board up on the screen and changing the "puck". I have the logic but when I draw a circle simulating the "drop" the previous puck locations are still on the board. Can anyone help me fix it?
I'm assuming you're using circle(x,y,r)? I recommend getting familiar with Basic Libraries, such as this function, like those found in Doors CS 7. With those, you'll be able to use a sprite and the library will do all the work: drawing, erasing the sprite when it moves.
Well I'm trying to do it with out the help Doors CS 7.
What I suggest doing is drawing the board, using stopic to store it, then every time the puck moves clear the screen, recall the pic and then draw the new puck location, while this seems like more work than just erasing the puck in the long run it will be quicker and allow you to expand the method to work in other scenarios.

You can find my implementation of Plinko here

It was written long ago but is rather optimized and should be a good place to look for inspiration. If you have any questions please don't hesitate to ask.
Actually, does Circle( support 0 like Line( does? I've never tested.


Code:
:Circle(32,24,6 // Draw the circle
:Circle(32,24,6,0 // Erase the circle
Well i tried that and it took forever to recall the pic. I don't seem to understand your code but I'll look more into it later when I have time.
Thank you very much!
odogollie wrote:
Well I'm trying to do it with out the help Doors CS 7.
Why? Smile If you have lots of routines available to make your program faster and smaller, why reinvent the wheel?

Comic: Unfortunately, it does not support erasing.

Odogollie: If you're convinced about not using any Doors CS functions, I would indeed go with TheStorm's implementation. Don't forget that you could draw the degree symbol with Text() for a quick small circle too. Also, I'm considering moving this topic to TI-BASIC.
KermMartian wrote:
odogollie wrote:
Well I'm trying to do it with out the help Doors CS 7.
Why? Smile If you have lots of routines available to make your program faster and smaller, why reinvent the wheel?

Sometimes reinventing the wheel is the way to learn more Wink And DoorsCS would just a dependency that could be avoided
AHelper wrote:
Sometimes reinventing the wheel is the way to learn more Wink And DoorsCS would just a dependency that could be avoided
If everyone followed that logic, then the thousands of hours and years of my life that I spent developing the shell would have been a complete waste of time.
Yes but, I quote " I prefer to reinevent the wheel, I prefer that nothing has control except what I do." (well close enough.) haha. Very Happy


/troll
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement