Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - bilyp

Pages: 1 [2]
16
TI Z80 / TiltBall - a puzzle game!
« on: November 13, 2011, 10:43:45 pm »
TILTBALL!
Tiltball is my first game for the calc, written in axe.  :)

I asked a question for the math of this game earlier, but now i realize that i will probably need to ask more questions...

a brief overview of the game:

The ball falls from the cieling, due to gravity. the goal is to get the ball to the floor, without hitting the walls. There will be lines in the way of the ball, which the ball bounces off of. The only thing you can control is the rotation of the lines, as shown in the pictures below.

The original level:

Now, after you press the -> arrow on the keyboard:

all of the lines have been rotated counterclockwise around the center point.
That is the general idea.

I have the rotation of the lines worked out, but still have two of questions:

1. Is there any way to clip the lines without sacrificing too much speed?
2. How to calculate angle of bounce? so if the ball is coming in at velocity of xv, yv, and slope of the line m, how to bounce off?

Thanks in advance!

17
Axe / Re: Math help for game
« on: November 13, 2011, 06:49:33 pm »
 Thanks nemo! the rotation thing worked! now i just need to optimize and do collisions...

18
Axe / Re: Math help for game
« on: November 13, 2011, 05:09:04 pm »
Whoa! that is a lot of information right there. It is kind of like vortex (I never even knew about it before today), but the ball is not coming from the center.

I guess i did not describe the game as much as i should've.

The ball falls from the cieling, due to gravity. the goal is to get the ball to the floor, without hitting the walls. There will be lines in the way of the ball, which the ball bounces off of. The only thing you can control is the rotation of the lines, as shown in the pictures below.

The original level:

Now, after you press the -> arrow on the keyboard:

all of the lines have been rotated counterclockwise around the center point.

The question should be, what formula could be applied to all the starting/ending points of the lines to rotate (counter)clockwise?

Where GDB1 is the point data for the lines, x1,y1 is the first point of the line, and x2,y2 is the second point of the line.
Code: [Select]
:For(A,1,L)
:{A*4+GDB1->B} .is x1
:{B+1} .is y1
:{B+3} .is x2
:{B+4} .is y2
:(Insert formula here to rotate points)
:End
And for the test to see if a point is on the line, that was to check if the ball is hitting a line.
Thanks for any future help.
EDIT:
Thanks Nemo for the explanation, that was exactly what I was looking for. Thanks!

19
Axe / Math help for game
« on: November 13, 2011, 03:25:09 pm »
I am working on a game where a ball falls from the top of the screen, and it bounces on lines, which all are rotated at the same time around the center of the screen.

I want two know how you would check if point x,y is between two other points (if it hit the line). If it is, then I also want to know the angle of the line (to see how to bounce off of it).

Also, I would like help to find out how to rotate all the points (of the lines) around the center.
I have looked on google, but I was not able to find anything, so I was hoping that omnimaga could help!  :w00t:

20
Introduce Yourself! / Re: Introduction!
« on: November 04, 2011, 01:05:58 am »
Ah. Ok. Thanks for the information!  :w00t:

21
Introduce Yourself! / Re: Introduction!
« on: November 03, 2011, 02:19:20 am »
Well, i have kinda a project. It's basically done, and I'm trying to think of something else to do.
Here's a link to the project (Periodic table+Scientific conversions):
http://ourl.ca/13771
Also, how do you "attach" files? Right now the download is mediafire, but i would love to make do the "attach" thing.

22
Introduce Yourself! / Introduction!
« on: November 02, 2011, 08:22:31 pm »
Hello! since I love programming and love my calc (ti83+), I searched through the wild haystack of the internet looking for the best place to find useful calc information. I have finally found it! omnimaga is the awesomest place for calcs, and is exactly the thing I was looking for. Thanks to everyone for keeping this site up, I hope that I can contribute!

23
TI Z80 / Re: Science tools
« on: November 02, 2011, 08:19:03 pm »
Thanks, I'll check that out!

24
TI Z80 / Science tools
« on: November 02, 2011, 12:11:06 am »
Hi, I've been a fan of these forums, got a lot of great programming tips from here. This is my first post, because it's the first time I have ever had anything worthy of the forums.

Science tools!
The attached zip archive contains two programs: a periodic table, and a science conversion tool, both with source.
I hope you like it!
(Screenshots are in the zip, I couldn't get photobucket to work)
The file:
http://www.mediafire.com/?oz5oq3z68giirsg

Pages: 1 [2]