Skip to content

estellarise/Pong

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pong

Download instructions

Download key for private distribution:

https://estellarise.itch.io/pong/download/HzD5bwjXpTiQy0NrAfou6MbT3wfcEtjKwQ_kzRTL

Unzip, run Pong.exe

Gameplay

Goal: Play until 7!

Controls:

  • Left Player: W,S
  • Right Player: Up, Down
  • Start new round / reset: Space

Tools

Notes to the Beginner Game Dev Explorer

Program.cs is the entry point to the program/game. It instantiates the Autobounce class and runs it. That's it.

You can break games into roughly two parts, much like a website: objects is to HTML as art is to CSS.

Or to put it another way, basic shapes swim around the screen and you splash art onto them.

The code is split similarly. Under the hood, there is an update/draw loop. Update is to objects as draw is to art.

Use update for repositioning, draw to pop the art in. (N.B.: Don't mix update code with draw code!)

For fellow C/++ coders out there, you can treat the update function as "main." Given this idea, to improve the project I would use more functions than I actually have. In that line of thought, it'd be good to create a class of position, speed, and texture to keep objects organized. Right now, the current structure is kept as a nod to the tutorial code provided by Monogame, which will hopefully provide ease of understanding to the viewer.

Misc Notes

  • "Run" / F5 only work properly when a solution is chosen (double-click)
  • Build is skipped when local timestamp of target is older than latest timestamp (looking at you, time travelers!)

To do

  • Licensing

Further tinkering

  • Figure out how to send C# code (is itch the only way?)
  • Affix art to an underlying hitbox object

About

Re-creation of the Game *Pong* on MonoGame

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages