Classic Duck Hunt game made in JavaScript and Kaplay
jslegend.itch.io
jslegend.itch.io
I'm also a big fan of re-purposing sprite sheets from old video games - years ago I wrote a little edutainment game called "Aladdin's Mathemagical Flying Carpet" to help teach my little brothers the multiplication tables.
https://specularrealms.com/alad
Any retro gamer will instantly recognize the assets.
i really wasn't.
it's great idea, and I'm thinking of making a 2d version where you 'collect' the right answers, etc.
Love it.
Also -- anyone who doesn't know how the original light guns worked, it's worth a read. This crowd will likely appreciate the solution.
Essentially, when you fire the gun the screen briefly turns all black except for a small white square where the target was. If the gun barrel sensor detects this bright white light, it means you hit the target. This is also why you reportedly could aim at a light bulb and never miss.
Except IIRC you couldn't because it displayed a fully black screen then a square, and detected a signal edge that must happen within those few frames, or some other implementation to that effect.
A lightbulb being constant would not work.
LCDs would work but they introduce latency that CRTs did not have, enough so that the check can fail. Even worse if game is emulated. Also I wonder about LCD backlight.
EDIT: confirmed by eykanal's link nearby.
2. But it doesn't have the classic "win" sound that I remember so fondly :(
3. Prepare to be destroyed by Nintendo
If you really want to up the challenge rating, see if you can find an old IBM Thinkpad and use the nub to control the targeting reticle.
I'm hoping to publish a step by step tutorial soon on how to develop this in JavaScript for anyone interested in learning gamedev.
I usually post my tutorials on my YouTube channel here : https://youtube.com/@jslegenddev (Plenty of tutorials available already for people interested in JS gamedev)
I plan this time on also publishing a written version on my Substack available here : https://jslegenddev.substack.com/
kaplay is underrated as a game engine imho, especially for teaching. It's intuitive and quite simple, and the web playground has some assets built in so it's immediately ready to go.
Thank you for letting us relive this moments of childhood!
Would you mind describing in more details how the text rendering looks like?
Here are some screen shots:
I got 9100 points, was going great until level 9 where it all fell apart.