Skip to content

feat: add Prasoon Lawania and team submission - Python-Pet, Pixel-Art Canvas, Code-Invaders & Cyberpunk Theme - #111

Merged
prakashbh merged 1 commit into
vicharanashala:mainfrom
Prasoonlawania:prasoon-lawania-and-team-submission
Sep 23, 2026
Merged

prakashbh merged 1 commit into
vicharanashala:mainfrom
Prasoonlawania:prasoon-lawania-and-team-submission

Conversation

@Prasoonlawania

Copy link
Copy Markdown
Contributor

Summary

This pull request contains the summer internship contribution by Prasoon Lawania and Team under summership-26-prs/Prasoon Lawania/.

It introduces three interactive, gamified learning playgrounds that teach fundamental Python logic (conditionals, loops, and coordinates) through visual feedback, wrapped in a unified Cyberpunk Space Arcade dark theme.

Features Added

1. 🦖 Python-Pet (Tamagotchi Autopilot) — /pet

  • Students write Python conditionals (if-elif-else) to automate the care and health of a virtual pixel-art dinosaur pet.
  • 10-day survival check with dynamic state decay (hunger, energy, happiness).
  • Animated SVG dinosaur reacting in real-time (eating, sleeping, playing, crying when sad, collapsing when neglected).

2. 🎨 Pixel-Art Canvas (Generative Grid) — /pixel

  • Students write nested loops and conditional statements to paint designs on a 16x16 neon pixel grid.
  • Includes algorithmic challenges (Checkerboard, Outer Border Frame, Diagonal Cross X).
  • Features automated coordinate validation and offline PNG image export.

3. 🛸 Code-Invaders (Retro Space Invaders Autopilot) — /invaders

  • Real-time 2D canvas shooter where students write Python algorithms to steer a spaceship shield and shoot falling alien invaders.
  • Exposes live coordinate vectors (ship.x, invader.x, invader.y) and actions (ship.move_left(), ship.move_right(), ship.shoot()) to Pyodide.

4. 🎨 Global Cyberpunk Theme Overhaul

  • High-contrast space obsidian background (#070a0e) with electric cyan (#00f3ff), synthwave pink (#ff007f), and neon green (#39ff14) accents across all pages and curriculum views.

Verification

  • Built and verified with npm run build with zero errors.
  • Runs 100% offline-first using in-browser WebAssembly Pyodide runtime.
  • Seeded scenarios database intact and operational.

@prakashbh
prakashbh merged commit 07bbe05 into vicharanashala:main Sep 23, 2026
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