mindvoxel / java-pong Goto Github PK
View Code? Open in Web Editor NEWPong clone with Java and Swing. Beginner programmers and budding game developers are welcome here!
Pong clone with Java and Swing. Beginner programmers and budding game developers are welcome here!
Implement different difficult levels? Find a way to teach the enemy paddle how to learn? Make the paddle slower (find a balanced difficulty/accuracy)?
Only happens on occasional runs. Only found on Linux, thus far.
I've found spaces and tabs are mixed for indents(for instance lines 56 and 57 of Game.java).
It's not a problem in editors but looks so strange in GitHub viewer.
Found this error when ran the game for about 15 minutes straight on Mac OS X. Full stack trace was:
[690.313s][warning][os,thread] Failed to start thread - pthread_create failed (EAGAIN) for attributes: stacksize: 1024k, guardsize: 4k, detached. Exception in thread "Thread-0" java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process/resource limits reached at java.base/java.lang.Thread.start0(Native Method) at java.base/java.lang.Thread.start(Thread.java:813) at java.desktop/com.sun.media.sound.DirectAudioDevice$DirectClip.open(DirectAudioDevice.java:1094) at java.desktop/com.sun.media.sound.DirectAudioDevice$DirectClip.open(DirectAudioDevice.java:1164) at pong.Game.playSound(Game.java:121) at pong.Game.checkWallBounce(Game.java:251) at pong.Game.run(Game.java:167) at java.base/java.lang.Thread.run(Thread.java:844)
See comment on line 308 of Game.java code for more details.
Instructions for reporting bugs and features could be added to the README.
Possibly a compatibility problem with Swing and Java 9.
The README project description could include more details about the game and the rules.
Or, alternatively, create a new front-end (React?) that would allow the game to be run in a web browser.
Installation instructions could be added to the README.
@christopher-wolff23 Could you explain the following:
Thanks in advance!
May be because of thread not registering input. (Listener is not listening.)
I was thinking of adding a CONTRIBUTING.md file for potential contributors. Here is a summary of what I will describe:
Open issues are a good place for contributions or a new issue should be created for new features. I will outline the steps for creating a pull request and what should be included, such as necessary updates to the README.md.
@christopher-wolff23 , could you clarify the following points:
Thanks in advance!
My university technical writing course has an assignment which involves editing documentation on GitHub repositories as practice in real world settings. Edits may involve aspects like style, structure, and concision. Existing style guidelines would be taken into account. The following is one of the resources I would be using:
https://jacobian.org/writing/technical-style/
Would anyone mind if I propose edits to documentation in this repository? It would really help me out!
Sometimes the ball will strike the paddle in such a way that the ball ends up "rolling" along the bottom of the screen while vibrating rapidly. Probably the code is treating the ball as simultaneously "in bounds" and "out of bounds."
Game.java will have to be modified to support relative paths.
And what would be a good default value for double angle
in the case of a bad angle.
Need to modify the game loop so that the game logic and drawing runs at the same speed on every platform.
Perhaps start the game in the game over state. Thought this might be a good idea because on some systems (tested on a Mac OS X) the graphics took a few seconds to render, but the game logic had already been running, allowing the computer to score a few cheap points.
Certain sound states cause an exception to be thrown or sound to cut off, completely. Related to #38
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.