09-08-2024, 03:25 PM
(translated by Google translator)
Hi guys!
I have uploaded an intermediate version of the game "Retro Football" to my OneDrive.
https://1drv.ms/f/s!AnoSlTzMqlL6jNwEee_Q...g?e=bLsytu
In discussing this version, I am interested in your advice and tips.
Here I first tried to use an asynchronous subroutine call.
I'm interested in advice and comments on the topic of using variables shared between the main and temporary computation threads.
What rules should I follow to avoid program crashes?
How to properly organize the work of threads so that they do not interfere with each other when using shared variables?
Also, I would appreciate your advice on how to improve the gameplay.
Now, left clicking on the "cursor sensor" turns the game Pause on and off.
The human controls the right players, and the Robot controls the left.
The Y coordinate of the cursor corresponds to the midpoint of the rectangles of human-controlled players.
The speed of the ball and the accuracy of the Robot's movement can be changed at the beginning of the program's source code.
I want to add the ability for football players to RE-DIRECT the ball as it moves towards the opponent's goal.
At the moment, football players can only hit the ball when it flies towards their goal.
Well, that's all for now.
I hope you find this game fun to work on.
After all, the most interesting thing is yet to come. This is the creation of a Robot Football Player who will SEE the ball on the field with his "eyes".
Hi guys!

I have uploaded an intermediate version of the game "Retro Football" to my OneDrive.
https://1drv.ms/f/s!AnoSlTzMqlL6jNwEee_Q...g?e=bLsytu
In discussing this version, I am interested in your advice and tips.
Here I first tried to use an asynchronous subroutine call.
I'm interested in advice and comments on the topic of using variables shared between the main and temporary computation threads.
What rules should I follow to avoid program crashes?
How to properly organize the work of threads so that they do not interfere with each other when using shared variables?
Also, I would appreciate your advice on how to improve the gameplay.
Now, left clicking on the "cursor sensor" turns the game Pause on and off.
The human controls the right players, and the Robot controls the left.
The Y coordinate of the cursor corresponds to the midpoint of the rectangles of human-controlled players.
The speed of the ball and the accuracy of the Robot's movement can be changed at the beginning of the program's source code.
I want to add the ability for football players to RE-DIRECT the ball as it moves towards the opponent's goal.
At the moment, football players can only hit the ball when it flies towards their goal.
Well, that's all for now.
I hope you find this game fun to work on.
After all, the most interesting thing is yet to come. This is the creation of a Robot Football Player who will SEE the ball on the field with his "eyes".
