JSPM

@udityapatel/jsnake

1.0.0
    • ESM via JSPM
    • ES Module Entrypoint
    • Export Map
    • Keywords
    • License
    • Repository URL
    • TypeScript Types
    • README
    • Created
    • Published
    • Downloads 2
    • Score
      100M100P100Q16272F
    • License GPL-3.0

    A Pygame-inspired game development library for JavaScript (Canvas-based), designed to make 2D game development feel familiar and fun. This project includes a Flappy Bird-style demo built using the `jsnake` API.

    Package Exports

    • @udityapatel/jsnake

    Readme

    🐍 jsnake Game Library (Flappy Bird Demo)

    A Pygame-inspired game development library for JavaScript (Canvas-based), designed to make 2D game development feel familiar and fun. This project includes a Flappy Bird-style demo built using the jsnake API.


    🎮 Demo: Flappy Bird Clone

    This game replicates the classic Flappy Bird mechanics using the jsnake library. It showcases sprite management, collisions, background scrolling, score tracking, and a game loop — all built with JavaScript and HTML5 Canvas.


    📦 Features

    • 🎨 Canvas-based rendering
    • 🧱 Pygame-style API: familiar classes like Sprite, Group, Surface, Rect
    • 🖼️ Image loading and transformations: imageload, scale, etc.
    • 🔄 Sprite groups: update(), draw() and collision detection
    • 🎮 Keyboard and mouse event handling
    • ⏱️ Custom frame rate control (set_fps)
    • 💥 Collision detection (spritecollide)
    • 📐 Simple layout and animation logic

    🚀 Getting Started

    1. Clone or Download

    git clone https://github.com/yourusername/jsnake-flappybird.git
    cd jsnake-flappybird
    
    License
    This project is licensed under the GNU General Public License v3.0 - see the [LICENSE](./LICENSE) file for details.