8000 GitHub - drmikeh/duck-hunt: A Simple Arcade Game
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

drmikeh/duck-hunt

Repository files navigation

Duck Hunt

Description

Duck Hunt is a simple arcade game inspired by the original Nintendo Duck Hunt game.

Links

Technologies

  • HTML5
  • JavaScript
  • jQuery
  • Vite

Screen Mockups

Mockup

Steps to Reproduce This Project

The steps below will demonstrate how to create this project from scratch:

Step 1 - Setup The Project

In this step we will use vite to scaffold the project, install node modules, and initialize it as a git repository.

1a. Run vite to create the project.

npx create-vite@latest -t vanilla duck-hunt

1b. CD into the new directory and install the node modules.

cd duck-hunt
npm install

1c. Initialize Git repo and commit all changes:

git init
git add -A
git commit -m "Created the duck-hunt project."
git tag step1

Now we are ready to start editing the HTML, CSS, and JavaScript files under the src folder. As you edit and save, you will see the changes in the browser.

Step 2 - Download the Images and Set Background

We need some images to make Duck Hunt come to life.

2a. Create an images directory and download the images into it.

wget https://raw.githubusercontent.com/drmikeh/duck-hunt/master/app/images/background.jpg -O public/background.jpg
wget https://raw.githubusercontent.com/drmikeh/duck-hunt/master/app/images/crosshair.png -O public/crosshair.png
wget https://raw.githubusercontent.com/drmikeh/duck-hunt/master/app/images/duckhunt.png -O public/duckhunt.png
wget https://raw.githubusercontent.com/drmikeh/duck-hunt/master/app/images/grass.png -O public/grass.png
wget https://raw.githubusercontent.com/drmikeh/duck-hunt/master/app/images/mockup.jpg -O public/mockup.jpg
wget https://raw.githubusercontent.com/drmikeh/duck-hunt/master/app/images/shot.png -O public/shot.png

About

A Simple Arcade Game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0