Author Topic: "Physics" program  (Read 9122 times)

0 Members and 1 Guest are viewing this topic.

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6265
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
"Physics" program
« on: September 19, 2009, 11:26:40 am »
just some physics I was playing around with, the ball bounces!
and you can change the distance it has to fall by pressing the arrow keys, and 2nd resets it, and puts it at the top of the screen, and graph quits.
also it will quit after a while due to the fact that it records stuff to lists, so it has to keep from having the mem error
also, requires the pic and celtic III or xLib
/e

Offline JoeyBelgier

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 545
  • Rating: +25/-21
  • Joey
    • View Profile
Re: "Physics" program
« Reply #1 on: September 19, 2009, 12:39:36 pm »
cool D:

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6265
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: "Physics" program
« Reply #2 on: September 19, 2009, 07:55:31 pm »
ok, new version, now the key presses are displayed better, and there is a path recall :D
all just eye-candy
/e

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: "Physics" program
« Reply #3 on: September 19, 2009, 08:28:44 pm »
That looks very nice!  Really good for basic.  We should figure out how Acyglobis did its physics and try to incorporate it into some massively awesome physics engine :P

Hmmm, shouldn't gravity be constant?

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: "Physics" program
« Reply #4 on: September 19, 2009, 10:37:27 pm »
Very nice, altough I agree with Builderboy about gravity. Also why does the letter A displays sometimes in the first screenshot?

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: "Physics" program
« Reply #5 on: September 20, 2009, 12:12:31 am »
It looks like it might be some sort of indicator if the ball goes off the top of the screen.

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6265
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: "Physics" program
« Reply #6 on: September 20, 2009, 03:50:12 pm »
yeah, what I meant by gravity there, it was kind of accelleration, the ball goes faster the farther it falls, then it completely switches when it bounces, then it goes back to zero at the peak, then it speeds up again...so I guess not really gravity, just more of pull?
/e

Offline Ti-newb

  • LV4 Regular (Next: 200)
  • ****
  • Posts: 180
  • Rating: +3/-0
    • View Profile
Re: "Physics" program
« Reply #7 on: November 07, 2009, 11:56:38 pm »
Ah sweet, I did something like this except just with 1 pixel. I would have a variable as my speed. And I would add it to my X, Coordinate. So everytime the prgm looped, it would always do Y-.001->Y, then I would have Y+X->X.  (as my speed and x as my X Coordinate.) and when the ball hits the ground (below a certain point) I'd have the speed turn into a positive. And the ball would keep bouncing untill it loses all speed. Lots of eye candy.

Offline megajake03

  • LV3 Member (Next: 100)
  • ***
  • Posts: 81
  • Rating: +1/-1
  • Luigi Rules!!
    • View Profile
Re: "Physics" program
« Reply #8 on: November 08, 2009, 04:56:20 pm »
neat
What is crazy?..............................Me!
And Luigi rules!!!

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: "Physics" program
« Reply #9 on: November 08, 2009, 04:59:07 pm »
This is so much fun to mess around with.
Well done.

Offline Eeems

  • Mr. Dictator
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 6265
  • Rating: +318/-36
  • little oof
    • View Profile
    • Eeems
Re: "Physics" program
« Reply #10 on: November 08, 2009, 06:39:43 pm »
Lol, thanks. It was fun to mess around with :p that's why I made it :)
/e