Skip to content

This is the primary repository for the Hardware-Game-Dev Workshop conducted by Technotix.

License

Notifications You must be signed in to change notification settings

Monacrylic/Processing-GameDev-Workshop

Repository files navigation

Hardware Game Developmemnt Workshop - Part 1

This is the primary repository for the Hardware-Game-Dev Workshop conducted by Technotix on 25th/31st of October 2020.

rocket_small

Processing Code Best Practices

  1. Have one .pde file which contains only the setup and draw function named as <name_of_the_game.pde>
  2. Create a class for every object in the game. For instance in brick-breaker, you should have classes for Brick, Paddle and Ball.
  3. Name the variables properly, and follow camelCasing throughout.
  4. Try to minimize hardcoded values, by specifying distace paramenters relative to height and width of the screen like width/2 or height/someVariable.
  5. Credit yourself and other references at the top of the <name_of_the_game.pde> files

Important Links

Processing Download - https://processing.org/download/ Processing Reference - https://processing.org/reference/

Cool Libraries (Find them Sketch--> Import Library --> Add library)

Check out the examples that get installed with the library

  1. Handy - Render all basic shapes as hand-drawn sketches (to make it look like 'that level again')
  2. Box2D - 2D physics engine
  3. ControlP5 - Add UI elements (Buttons etc)
  4. PeasyCam - Mouse controlled 3D camera

Some games in the repo!

pong_small brickBreaker_small flappy_small

About

This is the primary repository for the Hardware-Game-Dev Workshop conducted by Technotix.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published