
-----------------------------------
valor
Wed Apr 07, 2004 5:36 pm

Can anyone make a pinball type ball for my game?
-----------------------------------
i am making a Pinball game in turing and it is going to be sweet. my only problem is i dont know how to make the ball  :?  me and the_short1 are making this and neither of us knows how to make that damn ball. so if someone could make us a good pinball ball we would probably give bits.
thanks for the help.

-----------------------------------
Paul
Wed Apr 07, 2004 5:54 pm


-----------------------------------
drawfilloval
lol just joking, maybe you should give more specifics, whatever it is, Im sure it involves oval collision detection. Also real gravity.

-----------------------------------
zylum
Wed Apr 07, 2004 6:10 pm


-----------------------------------
like this???


const clrs := 100
var clr : array 1 .. clrs of int
for i : 1 .. clrs
    clr (i) := RGB.AddColor (i / clrs, i / clrs, i / clrs)
end for
const ballRadius := 8
const contrast := 150
const lightness := 20
for i : 1 .. ballRadius
    drawfilloval (maxx div 2, maxy div 2, ballRadius - i, ballRadius - i, clr (floor (sin (i / 20) * contrast + lightness)))
end for


make sure you dont over do it with the contrast or lightness, the range of colors isnt that great so you might get an error

-zylum

-----------------------------------
valor
Wed Apr 07, 2004 6:49 pm


-----------------------------------
yes that ball would look good in the game. but it has to have real gravity, and a nice bouncing effect. :P

-----------------------------------
valor
Wed Apr 07, 2004 6:51 pm


-----------------------------------
if you could make that ball do that the_short1 and i would probably give bits. it has to be good though 8)

-----------------------------------
Paul
Wed Apr 07, 2004 6:54 pm


-----------------------------------
wtf did you see zylums post here:
http://www.compsci.ca/v2/viewtopic.php?t=4428
?

-----------------------------------
valor
Wed Apr 07, 2004 6:57 pm


-----------------------------------
hmmm yes i saw that and it is nice. but answer this question do you think that would make a very good ball in pinball??

Why doesnt my damn avatar work??

-----------------------------------
Paul
Wed Apr 07, 2004 6:59 pm


-----------------------------------
just make it less bouncy and not leave a trail, should be easy for him to adjust the code and make the ball smaller.
refresh to see your avatar, find a better host, the avatar works 1/3 of the time

-----------------------------------
valor
Wed Apr 07, 2004 7:03 pm


-----------------------------------
ok this ball would be kick ass for pinball
http://www.compsci.ca/v2/viewtopic.php?t=3611&highlight=bounce
just gotta make it so it doesnt react when you click on it :P
and my avatar doesnt show when i refresh  :?

-----------------------------------
zylum
Wed Apr 07, 2004 7:07 pm


-----------------------------------
how about i just make the whole game for you for 10000 bits?

-----------------------------------
valor
Wed Apr 07, 2004 8:23 pm


-----------------------------------
umm...lol have you noticed how many bits i have?lol
all i need is a ball, i want to make the rest on my own. i've already started it. i just dont know how to make a ball with gravity affecting it :?

-----------------------------------
zylum
Wed Apr 07, 2004 8:40 pm


-----------------------------------
lol, if ou dont know how to do something as simple as add gravity to the ball then i doubt you can make a pinball game... theres so much math involved such as ball-line collision detection, collisoin reaction depending one the angle of the wall, flipper movement and collision detection and reaction with the flippers, elasticity on some of the bumpers... in other words, i think you should stick with something a little bit easier untill oyu improve...

-zylum

-----------------------------------
valor
Thu Apr 08, 2004 11:07 am


-----------------------------------
:? hmm i think you proved your point zylum :P now that i think about it pinball would be pretty hard to make. :o  i think i will try making a different game lol
