Giter Club home page Giter Club logo

java-pong's People

Contributors

abrandell avatar bmdvpanga avatar ljl7123 avatar mindvoxel avatar mobiuscog avatar rwthompsonii avatar wildmouse avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

java-pong's Issues

Out of Memory Enhancement

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)

Add installation instructions to README

Installation instructions could be added to the README.

@christopher-wolff23 Could you explain the following:

  1. What prerequisites are needed?
  2. How to install the project?

Thanks in advance!

Add CONTRIBUTING.md

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:

  1. Are first-time contributors welcome?
  2. Are there any files with version numbers that need to be incremented?
  3. Are there any other details that I should mention?

Thanks in advance!

Edit documentation

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!

Strange Collision

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."

Only start the game once the enter key has been pressed.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.