Skip to content

DamianORourke/nes-duck-game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

N.E.S Duck Game Simulator

Typescript version of the classic Duck Game Simulator

Thanks to

JSLegendDev youtube tutorial here:

Files Included

duckGame/
├── README.md
├── .gitignore
├── index.html
├── vite.config.ts
├── tsconfig.json
├── package-lock.json
├── package.json
├── public/
│   ├── fonts
│       ├── nintendo-nes-font
│           └── license.txt
│           └── nintendo-nes-font.tff
│           └── readme.txt
│   ├── graphics
│       └── background.png
│       └── cursor.png
│       └── duck.png
│       └── menu.png
│       └── text-box.png
│       └── dog.png
│   ├── sounds
│       └── barking.wav
│       └── credits.txt
│       └── fall.wav
│       └── flapping.ogg
│       └── forest-ambiance.wav
│       └── gun-shot.wav
│       └── impact.wav
│       └── laughing.wav
│       └── quacking.wav
│       └── sniffing.wav
│       └── successful-hunt.wav
│       └── ui-appear.wav
├── src
│   ├── entities
│       └── dog.ts
│       └── duck.ts
│   └── constants.ts
│   └── gameManager.ts
│   └── kaplayCtx.ts
│   └── main.ts
│   └── utils.js

Note:

In order to get audioCtx to work from a global context. May not work in later versions of Kaplay.

    const audioCtx = (k as any).audioCtx;

Run

Download zip

    npm install

then

    npm run dev

optionally build

    npm run build

testing build

    npm run preview

About

Typescript Playground: Nintendo Entertainment System - Duck Game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published