Skip to content

[Sprig App] Last Battery - #4181

Open
Qazi-01 wants to merge 5 commits into
hackclub:mainfrom
Qazi-01:Automated-PR-1788695882582
Open

[Sprig App] Last Battery#4181
Qazi-01 wants to merge 5 commits into
hackclub:mainfrom
Qazi-01:Automated-PR-1788695882582

Conversation

@Qazi-01

@Qazi-01 Qazi-01 commented Sep 6, 2026

Copy link
Copy Markdown

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.

Copilot AI lite review requested due to automatic review settings September 6, 2026 11:58
@vercel

vercel Bot commented Sep 6, 2026

Copy link
Copy Markdown

@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.

@github-actions

github-actions Bot commented Sep 6, 2026

Copy link
Copy Markdown

[Auto Triage] PR detected. Apply submission label to run validation.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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.

Comment thread games/Last-Battery.js
Comment on lines +218 to +224
const queue = [[startX, startY]]
const visited = [`${startX},${startY}`]
const cameFrom = {}

while (queue.length > 0) {
const current = queue.shift()
const x = current[0]
Comment thread games/Last-Battery.js
Comment on lines +2 to +5
@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']
Comment thread games/Last-Battery.js
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@Qazi-01

Qazi-01 commented Sep 6, 2026

Copy link
Copy Markdown
Author

Metadata difference fixed.

@Qazi-01
Qazi-01 marked this pull request as draft September 6, 2026 12:17
@Qazi-01
Qazi-01 requested a lite review from Copilot September 6, 2026 12:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment thread games/Last-Battery.js Outdated
Comment thread games/Last-Battery.js Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@Qazi-01

Qazi-01 commented Sep 6, 2026

Copy link
Copy Markdown
Author

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.

@Qazi-01
Qazi-01 marked this pull request as ready for review September 6, 2026 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants