Giter Club home page Giter Club logo

pong's Introduction

License: MIT

Pong for Android (LÖVE2D)

A two player Pong clone, written in Lua using LÖVE2D.

This game is under development and has only been tested on a single Android 11 device. Some bugs, kinks, missing features (title screen, restart button, etc.) and such are WIP.

Gameplay Demo

Gameplay Demo

Prerequisites

Running

  • LÖVE for Android (v11.3) with storage permissions granted

Building

  • Termux with storage mounted (i.e. can access Downloads from Termux storage)
  • Lua 5.3
  • make
  • zip
  • LÖVE for Android (v11.3) with storage permissions granted

How to Play

Rules

Pong is a table tennis style game where players must keep a ball in play using paddles. If the ball goes beyond the player's paddle, the opponent gets a point.

In this clone, the first player to 5 points wins.

Controls

The paddle remains in constant motion. Players change the direction of their paddle by tapping on their half of the screen.

How to Build

  • Clone the repo and enter it
git clone https://github.com/patrickm663/pong.git
cd pong/
  • Run make
make
  • A .love file is created and copied to Download/lovegame

How to Run

From Termux

Enter the repository and use make

make run

From Files

Add/access the .love file to Download/lovegame or similar and open with LÖVE for Android.

Acknowledgements

The Makefile is from https://github.com/CSaratakij/LovePlayground. The author @CSaratakij also guided me on which version of LÖVE for Android to use.

The original Pong game is copyright Atari Inc, 1972.

pong's People

Contributors

patrickm663 avatar

Stargazers

 avatar

Watchers

 avatar

pong's Issues

Paddle Behaviour

The following are bugs noted related to the paddles:

  • Paddle gets stuck sometimes in the corner
  • The ball registers as a collision when slightly to the right of the paddle

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.