ITADN
lachlan-kelly/eggball-386e540e
README.md

Eggball

make me a multiplayer web game called Eggball, the players will enter to a spectation of the current playing game, they will have a menu on the screen prompting to pick a team, the teams are red and blue, when the player picks a time spawn them on the field on there respective side, the player will be a coloured 2d ball and the ball will be a white 2d slightly smaller ball that spawns in the middle, the player will control with wasd or arrows. the map will be a 2d green soccer field with a red and blue goals, the ball cannot leave the boarder of the field however the players can exepet the players cannot leave the screen entirly, the only part of the map that the player can touch is other players, the ball, and the goal posts. if the player touches another player they will slow down but push the other player in the respective direction, however if the other player pushes back then they will probibly not move at all, conduct this system with realistic pushing physics, use common sense. with the ball if the player touches the ball they will push it foward with them, the only way to kick the ball foward is to press x or space, if the player kicks the ball it will move towards the direction that the player is moving when they press space. the ball can bounce of posts and walls, but if the ball hits another player it will stop moving infront of them instead of bouncing off them, simulating players taking a touch. after each goal all the players will be put on their side and a 3 2 1 counter will play before the players can move again. mercy rule is win by 5 but have a 5 minute timer per game. players will join by just hopping on the website. last thing to include is similarly to how in rocket league if you try to move a ball into a wall it will be forced to escape thus creating a pinch, have this also work with 2 players pinching the ball together but not if the players piched the ball against a wall. when a player kicks turn thier black outline white for the time that the kick is active. display the score at the top of the screen and when we get all this to work then we will build cosmetics stats money etc.

This project was built with Lovable.

Build with Lovable

Continue developing this project in the Lovable editor.

  • Ship faster: describe what you want to build and Lovable handles the code.
  • Stay in sync: every change made in Lovable is committed straight to this repository.
  • Full ownership: this code is yours. Push to main on GitHub and your changes sync back into Lovable, ready for your next prompt.

Development

Prefer working locally? You need Node.js and npm — install with nvm.

git clone <this-repository-url>
cd <repository-name>
npm i
npm run dev