aadarshjha / Opensaurus-Rex-HackPack

HackPack for VandyHack's workshop about Open Source on March 12th.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Open-saurus Rex

HackPack for VandyHack's workshop about Open Source on March 12th. Credit to https://github.com/wayou/t-rex-runner for source code.

What is Open Source?

A project is 'open source' if:

  • source code is freely available to the public
  • source code can be copied, modified, and redistributed by anyone

What is Version Control?

A system that records changes made to a project over time and stores previous or multiple states. Think of a Google Doc as an open source project: every time a change is made to the document, it is immediately saved and recorded in the version history of the document. This is an example of version control.

Why is version control useful?

Version control allows contributors to:

  • backup and restore earlier versions of source code
  • track changes made to source code over time
  • track ownership of changes (who changed what) in collaborative projects
  • stay up-to-date on the latest version of a project (especially useful for collaborative projects)

Git vs GitHub

  • Git: a locally installed version control tool for managing and tracking source code history during software development
  • GitHub: a cloud-based hosting service for Git repositories with collaborative features

The Command Line Interface (CLI)

  • $ git clone https://github.com/link_to_the_repo.git - download a copy (or clone) an existing repository to your computer
  • $ git add <file-name> - mark any changes to files in the repository as ready to be committed (or stage changes)
  • $ git pull - download latest information from the remote/original repository (i.e. new branches) & integrate all new commits made to the remote repository into local repository
  • $ git commit -m “commit message” - commit and save staged changes locally (in your cloned repository)
  • $ git push - upload (or push) cloned/local repository to the remote/original repository

Suggested changes:

  • Changing the image of the dinosaur (change the runner to pink!). Hint: assets/dino-100.png, and assets/dino-200.png are the correct assets.
  • Jumping / changing constants
  • Change the speed, etc.
  • Hide the score
  • Change the sound that is played when player reach 100 points
  • BE CREATIVE!!

About

HackPack for VandyHack's workshop about Open Source on March 12th.


Languages

Language:JavaScript 72.8%Language:HTML 25.2%Language:CSS 2.0%