gfxgfxFreeBASIC Games Directory Forumgfxgfx
gfx gfx
gfx
Welcome, Guest. Please login or register. May 20, 2013, 11:33:37 PM

Login with username, password and session length
11.5.2013 - Added a webpage for the latest FBGD competition.

13.3.2013 - Members registrations temporary disabled. For all membership requests, please email me: lachie13@yahoo.com

30.11.2012 - The ninth issue of BASIC Gaming is out! Read it here: http://games.freebasic.net/forum/index.php?topic=560.0

22.11.2012 - Be sure to check our currently running annual FBGD game making competition. This year's theme is SEASONS OF THE YEAR, 300 $ first place prize, and the competition runs till 18th of February. Link: http://games.freebasic.net/forum/index.php?topic=559.0
gfx
gfx
*
gfxgfx
gfxgfx gfxgfx
gfxgfx Home Help Search Login Register   gfxgfx
gfx gfx
gfx
Pages: [1]
Print
Author Topic: Pinball Physics (Pinball Reconstruction Set)  (Read 1000 times)
vdecampo
Forum Howler
****
Gender: Male
Posts: 128


Apocalypse is Forever!


View Profile WWW
« on: March 25, 2008, 05:39:45 PM »

Well since I announced the start of this project, I have spent lots of time working on the pinball physics and how it will interact with the game board. I have come very close to achieving a decent approximation of a pinball and table.

It is one thing to bounce a ball off perpendicular surfaces (i.e.: walls) but quite another to make it interact (believably) with a curved surface. I had to break out the old trig books and re-familiarize myself with the math. But even that isn't enough to deal with all the interactions.

This demo of the pinball interacting with a curved surface is not completely accurate, but I am still tweaking the algorithms.

I just wanted to give a sneak peek. I think this may even give birth to a vector tutorial.

See it here…
www.ftpisland.com/files/Pinball.zip 158k Win32

The Game Engine is capped @ 33FPS. Hopefully the Render Engine is more than that. :-)

-Vince
« Last Edit: March 25, 2008, 05:41:09 PM by vdecampo » Logged

Cheers!
-Vince
Lachie Dazdarian
Double dipper
Administrator
Forum Sage
*****
Gender: Male
Posts: 1195


lachie13
View Profile WWW Email
« Reply #1 on: March 25, 2008, 05:57:16 PM »

Well, the collision with the curved surface seems to work very well. Cool. Only, you really should come up with some better controls. Even if it's for demo purposes. It all seems wrong when I shot the ball in the air. Also, on my PC it looks like the ball moves with speeds (when I eject it) up to 20 pixels per loop.

I'll wait for a more elaborate demo.
Logged

"Things like Basic and Free Basic provide much-needed therapy and a return to sanity and a correct appreciation of people. The arrogant folk really hate a word like 'Basic' - fine, and good riddance." ~ pragmatist
Jonge
Novice
***
Gender: Male
Posts: 59



View Profile WWW
« Reply #2 on: March 26, 2008, 11:04:43 AM »

Looks pretty realistic to me, though sometimes it looks like the ball bounces up before it hits the "ground". Something like 5-10pixel above what its about to hit.
I think this could turn out to be a really fun game, really like the idea of being able to make my own pinball tables to(If your still going to do that)  Smiley
Logged

codeheim.NET - Homemade game madness!
Dr_D
Forum Sage
*****
Gender: Male
Posts: 204


dr_davenstein
View Profile WWW Email
« Reply #3 on: March 26, 2008, 04:00:27 PM »

You know, you could use Newton or Chipmunk physics for some really nice effects.  Not that there is anything wrong with what you're doing now. Cheesy
Logged

The idea that I can be presented with a problem, set out to logically solve it with the tools at hand, and wind up with a program that could not be legally used because someone else followed the same logical steps some years ago and filed for a patent on it is horrifying.

John Carmack
Lachie Dazdarian
Double dipper
Administrator
Forum Sage
*****
Gender: Male
Posts: 1195


lachie13
View Profile WWW Email
« Reply #4 on: March 26, 2008, 04:29:55 PM »

Don't push it, Dr_D. Tongue
Logged

"Things like Basic and Free Basic provide much-needed therapy and a return to sanity and a correct appreciation of people. The arrogant folk really hate a word like 'Basic' - fine, and good riddance." ~ pragmatist
Pages: [1]
Print
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines
Cerberus design by Bloc
Valid XHTML 1.0! Valid CSS!
gfx
gfxgfx gfxgfx