[Sprig App] Last Battery - #4181
Conversation
|
@Qazi-01 is attempting to deploy a commit to the Hack Club Team on Vercel. A member of the Team first needs to authorize it. |
|
[Auto Triage] PR detected. Apply |
There was a problem hiding this comment.
🟡 Changes recommended
The game metadata author field conflicts with the PR’s stated author attribution and should be reconciled before merge.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Pull request overview
Adds a new Sprig game, “Last Battery,” implementing a turn-based maze survival loop with energy management, collectible batteries, an exit/score progression, and a pursuing drone.
Changes:
- Introduces new game entities (player, walls, batteries, exit, drone) with custom sprites and three looping levels.
- Implements energy/score UI and game-over / restart flow.
- Adds drone pursuit via BFS pathfinding executed after each player turn.
File summaries
| File | Description |
|---|---|
| games/Last-Battery.js | New game implementation: levels, movement/energy system, drone pathfinding, scoring, and restart behavior. |
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 3
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
| const queue = [[startX, startY]] | ||
| const visited = [`${startX},${startY}`] | ||
| const cameFrom = {} | ||
|
|
||
| while (queue.length > 0) { | ||
| const current = queue.shift() | ||
| const x = current[0] |
| @title: Last Battery | ||
| @description: A turn-based survival puzzle game where every move drains your energy. Explore a dangerous underground facility, collect batteries, avoid security drones, and find the exit before your power runs out. | ||
| @author: Tashfeen Miyar | ||
| @tags: ['puzzle', 'turn-based', 'strategy', 'survival', 'dungeon', 'robot', 'maze', 'retro'] |
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
Metadata difference fixed. |
There was a problem hiding this comment.
🟡 Changes recommended
The exit sprite bitmap is not a valid 16×16 bitmap (extra rows), which is likely to break rendering/loading.
Once you've addressed the issues Copilot identified, you can request another Copilot review.
Review details
- Files reviewed: 1/1 changed files
- Comments generated: 2
- Review effort level: Lite
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
The exit bitmap worked before but I made it 16x16 just to ne safe and works even now. The for loop spacing issue was marked addressed as I didn't found it in my original game on sprig website also it might be in the new suggestion commits from copilot. I also saw above that submission label not added but I am unable to add it or I just don't know how. |
Author name
Author: Tashfeen Miyar
About your game
What is your game about?
When I heard about sprig I just knew I wanted it so I made last battery a maze survival game where you have to sneakily reach the door avoiding the drones that follow you. Collect batteries to charge and move forward. The game is simple for now visually and structurally. The drone mechanics were hard to get right printing text remained a problem through out as I'm a symmetry kind of guy. I don't know if there's a game like this already available on sprig console I just really enjoyed playing the game myself that I think its unique the originality is something.
How do you play your game?
Use WASD to move and I to restart when you lose. The game is simple just try to reach the doors, collecting batteries and avoiding the drone. The game is endless the score increases on each escape.