Harvest by Dev_314

[raw]
made by Dev_314 for Ludum Dare 52 (COMPO)

Harvest

cover_image.png

Link

Game

Description

This is a game made for The Ludum Dare 52 game jam. The theme was "Harvest".

Based on this theme, I decided to make a game where you harvest artifacts from the beach. You use your metal detector to find the artifacts, and then you dig them up. Each artifact found increases your score, and the game ends when you run out of time.

You're given 60 seconds to find as many artifacts as you can. Initially there are 10 hidden artifacts, but as you find them, more will spawn.

Controls

  • Left click to dig up artifacts
  • Right click to use your metal detector

Language

The game is written in JS, HTML and CSS. It uses no external libraries/frameworks/APIs.

Program Structure

The game is split into 3 main parts: - index.html - The HTML file that contains the game canvas and the game's UI - main.js - The main JS file that contains the game's logic - style.css - The CSS file that contains the game's styling

It also contains an assets folder that contains all the game's assets.

License

Copyright (C) 2023 DEV_314 This project is licensed under the GNU General Public License v3.0 - see the LICENSE.md file for details

Behind the Scenes

Who done it?

I've been experimenting with Github's Copilot lately. The motivation for this game was to really see how far I could push Copilot. Could it design and program an entire game with minimal 'parental' oversight? Mostly yes. I did the art, Copilot did the design, and the code was about 70% Copilot in the end (it led and I edited). As expected, I did have to go at it with an abstract -> specific design mindset, but it really managed to hold onto the themes and design it came up with. Overall while I wouldn't want to try this again, it does show me how much I can lean on Copilot in other projects.

The rules / Drama Lamma Jam

When I started this game on Friday, Jan 6th, there was little information at all about any rules (no linked rules in the event posting). On my own I noticed the "LDJAM Rules" link at the bottom of the page, but that page did not (and still does not on Sunday Jan 8th) contain anything about "AI Generated" anything. After I was about 50% of the way done (Saturday sometime I think?), I noticed the event posting was replaced with one with much more information, and specifically with this line:

"NOTE: Please submit games built with AI generators as Jam or Extra games, and not the Compo (we’re still working on the new generators policy)"

After looking around the main site a bit it was not clear to me what "AI Generators" means, so I decided Copilot was not an AI generator, and I submitted it as a Compo game. If this ends up being incorrect, I'll be happy to change it to a Jam game.

Ratings

Overall 332th 2.526⭐ 21🧑‍⚖️
Fun 328th 2.368⭐ 21🧑‍⚖️
Innovation 238th 3.053⭐ 21🧑‍⚖️
Theme 268th 3.105⭐ 21🧑‍⚖️
Graphics 313th 2.667⭐ 20🧑‍⚖️
Humor 248th 2.118⭐ 19🧑‍⚖️
Mood 314th 2.353⭐ 19🧑‍⚖️
Given 15🗳️ 13🗨️

Feedback

She Wrote
08. Jan 2023 · 21:46 UTC
Great use of the theme, and a fun little idea. I don't know if it is intentional, but both right and left click dig up artifacts. There is also an issue where you can hold the button down and drag the mouse to reveal all the artifacts very easily; But overall a good game, well done!
johnnysix
08. Jan 2023 · 22:15 UTC
Is this your own engine? Nice concept - like @she-wrote said, I could dig/reveal with both buttons it felt like.
🎤 Dev_314
08. Jan 2023 · 22:39 UTC
@she-wrote,
Thanks for your feedback! Ya those came up in my testing but I didn't think much of it. I'll probably work on getting those fixed now!

@johnnysix,
Thanks for your feedback! Yes and No on your question. It's all mine but there's not really an engine, just some JS that draws stuff with Canvas.
LDJam user 318242
09. Jan 2023 · 03:04 UTC
Cool approach using no engine
Papaya
10. Jan 2023 · 17:10 UTC
A unique approach to the theme! I think there would be more immersion if sounds were added to the game!
🎤 Dev_314
10. Jan 2023 · 22:41 UTC
@pojo79 , @papaya Thanks for your feedback! I did consider adding sound, but I prefer games like this (nice simple web games) without sound so I decided against it.
mahalis
13. Jan 2023 · 03:24 UTC
Neat experiment! I’m curious about your interaction with Copilot—the code has a lot of descriptive comments, so I’m guessing the process was mostly write comment -> check generated code -> repeat?
candlesan
13. Jan 2023 · 08:52 UTC
An interesting twist on a "Minesweeper" type of game. I liked trying to figure out where the objects were. Original approach to completing Ludum Dare too!
🎤 Dev_314
15. Jan 2023 · 00:52 UTC
@mahalis, Thanks for your comment! It actually ends up auto-completing the comments, which makes them much more descriptive than I would normally do on my own. This does in-turn lead to it generating better code, which can make for better comments! Ex: When I'm done editing the generated code (it usually needs a few characters here or there) I usually go back and have it re-generate a new comment, which then makes it even more descriptive (and accurate).

@candlesan, Minesweeper never even crossed my mind, but ya it does have similar vibes. Thanks for your feedback!
Zirrrus
15. Jan 2023 · 12:23 UTC
Cool that you built the game without an engine!
commanderstitch
18. Jan 2023 · 01:38 UTC
idk about everyone else but i was unable to see the orange sandy background once I actually got into the game. Not sure what it was, but that's how it was for me. I was able to find objects with my trusty metal detector though and that's what I came here to do. I'm RICH!
🎤 Dev_314
21. Jan 2023 · 20:42 UTC
@zirrrus, Thanks for your comment!

@commanderstitch, Thanks for your feedback, that's very odd! The game itself doesn't use a background and is just drawn over the HTML page, which just uses the [background-image](https://developer.mozilla.org/en-US/docs/Web/CSS/background-image) property to set the background to a tiled assets/sand.png . As far as I can tell this is a well supported property which doesn't appear to have many problems, but maybe you've discovered a new edge case!? While I'm unable to replicate this across my devices, I'll keep an eye on it to see if it pops back up.
Phlip45
24. Jan 2023 · 06:27 UTC
really neat to see someone else using canvas and javascript, also funny that we both have metal detecting in our games haha. I think some simple sound effects would have really made it a lot more engaging. Especially the classic metal detector beeping.
cassowary
24. Jan 2023 · 07:36 UTC
Always love to see people using vanilla JS / canvas to make browser games!