您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add football/soccer game features to drawaria.online
Drawaria Football Game:
How to Play the Football/Soccer Game
The script adds a very basic physics-based football/soccer "game" overlay to Drawaria. Here's how it works:
The Menu: The floating menu on the left lets you control the game:
Add Ball: Creates a new white football/soccer ball at a random position on the screen. You can add multiple balls.
Toggle Field: Draws a white rectangular outline representing a soccer field and adds semi-transparent "goals" at either end. Click again to hide the field.
Clear Balls: Removes all the balls from the screen.
Dragging the Menu: You can click and drag the menu title ("⚽ Football Game Menu") to move it around the screen.
Interacting with the Balls:
Kicking: The main way to interact with the balls is by clicking on the screen. The script treats a click as a "kick" aimed at the location of the click.
Click Near a Ball: If you click close to a ball, it will be kicked in the direction of your click. The closer your click is to the center of the ball, the more powerful and accurate the kick will be. Clicking right on the edge of the ball will give it a small nudge.
Click Far Away: Clicking far away from any ball won't do anything to the balls.
Physics:
Gravity: The balls are affected by gravity (the GRAVITY constant), so they will constantly fall downwards.
Friction: The balls slow down over time due to friction (the FRICTION constant). This makes the movement more realistic.
Bouncing: The balls bounce off the edges of the browser window (top, bottom, left, right) and lose a little bit of energy with each bounce.
The "Goal": There isn't a scoring system or any win condition. The fun comes from:
Trying to kick the balls into the goal areas (when the field is visible).
Experimenting with the physics: See how many times you can bounce a ball, try to get multiple balls moving in interesting patterns, etc.
Combining it with Drawaria: You can still draw in Drawaria while the balls are bouncing around! You could draw obstacles, create your own more detailed field, or just have the balls interact with your drawings.