phoenixflame101 / pong-with-godot Goto Github PK
View Code? Open in Web Editor NEWPong made with Godot and GDScript
License: GNU Affero General Public License v3.0
Pong made with Godot and GDScript
License: GNU Affero General Public License v3.0
Right now both the paddles are controlled by the player(s). This issue is a feature request for a simple AI for the right paddle.
Implementing a simple pong AI means having the right paddle move towards where the ball would end up if it kept travelling in the direction it's currently travelling in. Do not account for wall bounces since this will make the AI basically unbeatable. Recalculate where the ball will end up if it bounces against a wall.
In other words, the desired position is calculated by casting a ray from the current ball position, along its velocity vector, and seeing if it intersects the line which the AI is moving along. If it intersects a wall, the velocity changes, and tested again.
The game is really slow and boring right now, make it a bit faster.
Change the speeds of the paddle and ball to be a bit faster than they already are. Make sure the game is still playable.
Tweet info about the NFT's
Right now the game starts immediately on launch, which is obviously not ideal. To solve this issue, a main menu has to be made.
The main menu should be on a different scene and should start the game on pressing a UI button or a key/mouse button while the window is in focus. It should also show 'Pong with Godot' as the title (obviously).
Currently the game just restarts automatically if the ball goes out of bounds. The task is to create a game over screen when this happens.
Create a game over screen with two buttons: A restart button to start the game again, and another to exit to main menu. (If the main menu has not be merged to the master branch, you can make this a dummy button that doesn't do anything).
Whenever the game restarts, the ball always goes to the left. I can make it alternate from left to right every alternate round to improve the experience.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.