Ping! Demo (My new demo...)

Game Design, Story, Game Play.
User avatar
federico
RF Dev Team
Posts: 443
Joined: Tue Jul 05, 2005 3:14 pm
Contact:

Ping! Demo (My new demo...)

Post by federico »

my demo went out when site was down....

Ping Demo 1.0 by Federico Pitto

Made using Reality Factory.
It's really difficult to make "something physical" with RF, but I'm still trying. I've tried this demo in 071, 072, and 072A version of RF: I choose the standard 072 version (obtained patching the 071 version) because stencil shadows slow down all the collision process (but it looks really really nice!). The only way to create a simple physical system is to keep the track of time and every little slowing modifies the physical response (be careful: turning on debug change the visualization). At this time, I don’t know how this demo can appear in your system.

Main Goal

Create 1) the gameplay system 2) opponent variable skill level 3) ball effects.
Then I want to encourage all the RF community: lets mod it! Let’s work on better graphics, different table surface, different ball thikness, and so on!

Quick MOD

Go in tocco.s in script folder find:
FRANCO=(FORCE*60);
modifying 60 you will have different bouncing response on the table. Higher value, higher bounce.
Find:
FORWARD=(self.enemy_range)/6.5;
UPSHOT=(self.enemy_range)/6.5;
modifying 6.5 you will have different ball acceleration on racket collision FORWARD is the orizontal value and UPSHOT is the vertical. Higher value, lower acceleration.

Enjoy! Federico Pitto

Download PingDemo1.exe at:
http://realitychess.altervista.org in the download section.

Screen:
ImageImage
ImageImage
Image
Last edited by federico on Thu Jul 21, 2005 2:09 pm, edited 1 time in total.
User avatar
scott
Posts: 1151
Joined: Tue Jul 05, 2005 1:59 am
Location: United Kingdom

Post by scott »

looks good but im not into those games, but keep the hard work up, looks top quality, one of the better games. 8)
*GD*
User avatar
Spyrewolf
Posts: 450
Joined: Tue Jul 05, 2005 4:53 am
Location: Wellington::New Zealand

Post by Spyrewolf »

Sweet I'll be checking this out, Cool, Glad to see you're still around Federico, your demo's are always pushing the bar for the rest of us higher and higher.

Would love to see the result if you and pickles ever teamed up and wrote a couple scripts.....(the mind boggles)
looks good but im not into those games,
I think it's more of a technical point of view rather than the type of game, it could've been tennis or dodge ball for that matter Federico's scripts are always very interesting to analyize. :)
GD1
Posts: 413
Joined: Tue Jul 05, 2005 2:33 pm

Post by GD1 »

this is great Frederico. i'll try it as soon as i can.

in the coming months im taking on a really big project for entry into the Gamedev.net IV Elements contest. once i get to the scripting stage would you like to work on this project with me?
User avatar
federico
RF Dev Team
Posts: 443
Joined: Tue Jul 05, 2005 3:14 pm
Contact:

Post by federico »

Little improvements: implementing rules in the script.

a. I win this point! Look at the ball, it's over the opponent racket. A green circle appears where my ball hits the table.
Image
b. The opponent wins the next one! . A green circle appears where his ball hits the table.
Image
c. That's my fault! It's my turn and the ball hits my part of the table. A yellow circle appears where my ball hits the table.
Image
d. The ball is out! It's the opponent turn. The ball don't touch my part of the table. a red circle appears where ball hits the ground.
Image

Now I've stopped. I have some problem in placing rules like theese and script the exceptions (like the serve the volée etc...) If no one is interested to finish this with me, and make it a game, I think that i'll wait to see what happens. However this is something enough for a demo...

P.S. ZEN_Buddha! I've never received your PM....

@GD1
If I will be at home, I will be glad to help you (is it correct?). Can you start another thread to better explain the contest and your project?
gekido
Posts: 194
Joined: Mon Jul 04, 2005 9:50 pm
Location: Vancouver, BC, Canada
Contact:

demo's

Post by gekido »

Give me an email (mike@gekidodesigns.com) and i'll setup a location where you can grab any demo's that were on the rf.ca site - i still have them all, they just aren't online and accessible yet.
GD1
Posts: 413
Joined: Tue Jul 05, 2005 2:33 pm

Post by GD1 »

thanks frederico :) i will be at home most of the time. i'm gonna start a thread about my project soon and i'll explain everything, but at this point im planning things out very carefully so that i know the exact story/how the game will play out.

it will be a while before i get to scripting, but when i do i'll let you know :)

BTW, what help do you need with this ping-pong project? i might be able to do a few things for art of thats what you need.
User avatar
federico
RF Dev Team
Posts: 443
Joined: Tue Jul 05, 2005 3:14 pm
Contact:

Post by federico »

Another improvements for Ping!

The physic you can see is really erroneus, because i'm recording the video (link below) and so there are some time problem (scripted physic = time*force). But you can look at some improvements:
1. 1st serve is functional, up down forward backward, target move.
2. in, out, fault, in action
3. the racket turn right to left and vice versa depending on his position on the table
4. Different camera style (fixed, dinamic with interactive auto-focus on action, iso, semi-dinamic)
5. ai development: the opponent beats me, im the blue racket!

Video:
:arrow: http://diddibozano.altervista.org/video/index.htm
hike1
RF FAQ-Keeper
Posts: 607
Joined: Tue Jul 05, 2005 4:19 am
Contact:

Post by hike1 »

I don't know if you fixed this, but my racket disappears under the
table, is there a key to 'reset racket' besides 'new game'?
User avatar
federico
RF Dev Team
Posts: 443
Joined: Tue Jul 05, 2005 3:14 pm
Contact:

Post by federico »

what do you mean? A collision problem (ARGGHHHH!!!!)? In the 1.0 version (now fixed) sometimes the racket position is wrong and the ball hits continously the border of the table. I'm quite close (2-3- days) to release the 1.1 version that will be probably the definitive for the physic and the rules. My most pressing care is to know how the demo works on a different system. Hey guys, have you tried it? ...here no one says anything...

@ Hike: In the new versoin there is an automatical reset after every point. Can you post a screen or better explain so i can fix it?
User avatar
federico
RF Dev Team
Posts: 443
Joined: Tue Jul 05, 2005 3:14 pm
Contact:

Post by federico »

Advance/Deuce system integrated. Now I only have to script the oppponent first serve (I have an :idea: ). I'm asking you how my demo works on yoour system. Except Hike: Is there anybody out there?!!! :?
User avatar
AndyCR
Posts: 1449
Joined: Wed Jul 06, 2005 5:08 pm
Location: Colorado, USA
Contact:

Post by AndyCR »

just tried it. awesome. the physics are excellent and surprisingly stable, the gameplay is fun (and hard!), and its pretty interesting. how long did you take to make it?
User avatar
federico
RF Dev Team
Posts: 443
Joined: Tue Jul 05, 2005 3:14 pm
Contact:

Post by federico »

Ping! Demo 1.3
A Game by Federico Pitto. July 2005 Genova Italy.


Controls
  • Mouse Axis - Move Left/Right
    Left Click - Forward
    Right Click - Backward
    Middle Click - Smash!
    Keyboard Cursors - Shoot Direction / Move the Viewfinder (in Serve Mode)
    Spacebar - Serve
    PageUp/PageDown - Adjust Height (in Serve Mode)
    F1 – standard view (fixed)
    F2 – Interactive views (combination of three different views)
    F3 – Bird’s eye view (fixed)
    F4 – Alternative view (follow the net pitch/yaw and the player coordinates)
Control Example:
The opponent hits the ball.
Image

If you press UP and LEFT cursors, while the ball hits your racket, then the target of your shoot will be the Up-Left corner of the opponent’s table.
Image

The possible combinations are:
Up-Center, Down-Center, Up-Left, Up-Right, Down-Right, Down-Left, Right (by default Down), Left (by default Down).

Save and Load are fully functionals.


Troubleshooting – Quick Hack

The physic response of the ball depends on your system speed. In order to play correctly. you have to set some variables in the main script.
Open tocco.s in your script folder and find this words:

Code: Select all

FORWARD=(self.enemy_range)/5.9;
UPSHOT=(self.enemy_range)/7.3;
You will find them twice. Change the value to have a better responce of the ball. You have to increase the 5.9 value if you want to get lower force on the shot or decrease it for higher force. I suggest you to start with a 0.2 increase/decrease value. In the same way you have to incresase or decrease the 7.3 value in order to obtain the right force applied vertically on the ball. If you want the ball fly lower increase this value, or decrease if the ball hasn’t systematically enough force to fly over the net. Remember to repeat this operation twice, in both piece of code you have found.

If you notice that the ball bounce wrong you can adjust the bounce value. Find:

Code: Select all

FRANCO=(FORCE*50);
If you increase this value he ball will bounce higher. If you decrease it the ball will bounce lower. I suggest you to start with a 2 increase/decrease value.

Now the Opponent skill is set to maximum. You can change it opening ai.s in your script folder and find this words:

Code: Select all

//self.ThinkTime=0.001; //use this to set the opponent skill use a range from 0.001(smarter) to 0.1 (loser)
delete ‘//’ before ‘self.ThinkTime=0.001;’ (don’t touch any other ‘//’).
And change the value from 0.001 (smarter) to 0.1 (loser). Be careful. If you want to restore the original skill of the opponent, add again ‘//’ before ‘self.ThinkTime’.


Cheat/Debug

o Press ‘1’ to set the score to 10 / 10 points and 2 / 2 games. To test score Advantage/Deuce System
o Press ‘9’ to reset the ball to the serve position. It’s a panic key if you experience some unexpected trouble.
o Press the standard ‘wasd’ cursors to apply additional forces on the ball. It will be the way to implement effects on the shoots.


To Do’s (eventually…)

o The net is buggy
o Ball effects
o Graphic improvements
o Design different Ping Pong Tables, Rooms, and Rackets (Carom style).
o Create a Tournament Mode.
o RF Multiplayer…?


Download

Go to http://realitychess.altervista.org and, in the download section, get Ping!Demo1.3.

http://realitychess.altervista.org

__________

I worked 1 month some time ago on scripted physic. I made a demo called aBallInABox that you can fnd in my download section (and a racing games on the same scripting style). It's the basis of this work. I worked 1 week to develop the table/racket movements, basical ai, targetting system. Then another 1-2 weeks to develop rules, exceptions, interactive camera, oppponent serve and many other litle things.
Last edited by federico on Fri Jul 29, 2005 11:56 am, edited 1 time in total.
User avatar
federico
RF Dev Team
Posts: 443
Joined: Tue Jul 05, 2005 3:14 pm
Contact:

Post by federico »

now i need feedback and informations about the demo. How works this physic on your system? Do you need to change the scripted parameters?
What do you think about the AI (It's the first Ai I created)?
____
Someone wants to create some ping-pong room or some racket?
Someone wants to work with me on a little non-shooter project as 3d artist (first the game then the art)?
User avatar
federico
RF Dev Team
Posts: 443
Joined: Tue Jul 05, 2005 3:14 pm
Contact:

Post by federico »

----
Post Reply