Shot put tournament (Game)

Advanced game related topics
jak64
Enthusiast
Enthusiast
Posts: 502
Joined: Sat Aug 15, 2020 5:02 pm
Location: Ciboure (France)

Shot put tournament (Game)

Post by jak64 »

You participate in a shot put tournament with the best throwers in the world. I designed this game using real shot put video footage. You represent the French pitcher, Gaëtan Bucki.

How to play :
You are allowed 10 throws in order to get the highest ranking and possibly win the tournament.

Course of a throw:
The video begins with a sequence where the player prepares to throw: he motivates himself. Then follows the second sequence, that of the shot put. During this sequence, you will need to take action to get the best throw. At a certain moment, a colored square (either green or red) will appear at the top. As soon as it appears, you need to type a key as quickly as possible:

The "n" key if the square is green
The "w" key if the square is red

This square only appears for a certain time and you have to press the corresponding key while it is displayed for it to be validated.
A few moments later, a green or red square will appear again: you will then also have to type the corresponding key as quickly as possible ("n" if green square, "w" if red square).

You must therefore press a key twice in a row. Of course the color of the squares is chosen randomly (it can be red then green or green then red or green then green or red then red).

Depending on the reaction time of pressing the keys, several cases may arise:
1) You have pressed the 2 correct keys while the squares were displayed, your throw is valid, the distance of the throw will be calculated according to the time taken to react.
2) You tapped the correct key for the first square that appeared but you did not tap the correct key when the second square was displayed, or you tapped the correct key but the second square was no longer displayed. In this case, your throw will be considered "Out of zone" and your throw will not be valid.
3) In all other cases, you will get "a bite", ie you have left the throwing track and your throw will not be validated.

The video sequences are chosen according to these results, which gives a bit of realism to the game. For example, if you have made "a bite", a video sequence of the pitcher's feet going off the track will be read. Likewise, in this case, another sequence will be played showing the thrower (you) not happy with his throw.

When a throw is successful, the game also displays a slow motion sequence of that throw, just like on TV. The result of the throw is only displayed afterwards and the next throw will begin.

NOTE: you can change the keys for right and left by changing lines 137 and 138 in the source code:

Code: Select all

AddKeyboardShortcut (#window_windows, #PB_Shortcut_N, #right_key)
AddKeyboardShortcut (#window_windows, #PB_Shortcut_W, #touch_left)
CAUTION ... If you keep your finger pressed continuously on a key ("n" or "w") or quickly tap on those keys to try to make the best throw when the colored squares are not displayed, your roll will be invalidated. .

The program is written in Purebasic V5.73 and compiled in 64 bits. The zip file to download weighs 152 MB.

Image

Image

Image

Image

Link to download the game :
https://u.pcloud.link/publink/show?code ... FTkndbhTX