GithubHelp home page GithubHelp logo

alessiomason / landtiger-pong Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 6.15 MB

A simplified version of Pong written for the LandTiger board

License: MIT License

C 92.79% Makefile 1.37% HTML 5.11% Assembly 0.74%

landtiger-pong's Introduction

LandTiger Pong

This repository contains a simplified version of Pong, a game originally developed by Atari, written for the LandTiger board during the Computers architectures course @ Politecnico di Torino.

๐ŸŒ Qui in italiano

Features

  • Play a single-player version of the game, in which the best score is registered
  • Play a multiplayer version of the game against the computer

Technology

The project was developed in C to study the low-level functioning of the board.
The software has four different functioning states, TITLESCREEN, INGAME, GAMEPAUSED and GAMEOVER.
When a game is started, the timer 0 starts the analog-to-digital conversion on the potentiometer: the result of the conversion will be used at the following tick of the timer to determine the position of the paddle.
After moving the paddle according to its velocity, a collision check for the ball is run, verifying possible collisions with the walls or with the paddle itself. In such a case, the speed of the ball is reversed (ensuring a reflection whose angle is equal to the angle of incidence). If the ball collided with the paddle, its horizontal velocity is determined by the velocity of the paddle too, resulting in a less predictable gameplay. In case of collision, an appropriate sound is played using timer 1.
Eventually, after updating the score in case of collision, the ball is moved and the process is then repeated at the following tick of the timer.

Screenshots

Initial screen Initial screen Game paused Game paused

landtiger-pong's People

Contributors

alessiomason avatar

Watchers

 avatar

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.