Showing 120 open source projects for "2d game code"

View related business solutions
  • Ship Agents Faster Icon
    Ship Agents Faster

    Transform your applications and workflows into powerful agentic systems at global scale.

    Gemini Enterprise Agent Platform lets you rapidly build, scale, govern and optimize production-ready agents grounded in your organization's data. The platform enables developers to build custom or pre-built agents for virtually any use case. New customers get $300 in free credits.
    Get Started Free
  • Cut Data Warehouse Costs by 54% Icon
    Cut Data Warehouse Costs by 54%

    Easily migrate from Snowflake, Redshift, or Databricks with free tools.

    BigQuery delivers 54% lower TCO with exabyte scale and flexible pricing. Free migration tools handle the SQL translation automatically.
    Try Free
  • 1
    Phaser HTML5 Game Framework

    Phaser HTML5 Game Framework

    Phaser is a free and fast 2D game framework for making HTML5 games

    Phaser is a popular open-source 2D game framework for making HTML5 games for desktop and mobile platforms. Built with JavaScript and powered by WebGL and Canvas, it offers a robust API for developing everything from arcade to platformer and puzzle games.
    Downloads: 7 This Week
    Last Update:
    See Project
  • 2
    Phoenix Code Editor

    Phoenix Code Editor

    Phoenix is a modern open-source Code Editor for the web

    Phoenix is a modern open-source and free software code editor for the web, built for the browser.
    Downloads: 6 This Week
    Last Update:
    See Project
  • 3
    Tower Building Game

    Tower Building Game

    HTML5 Canvas Tower Building Game

    Tower Building Game is a small game project — likely implementing a classic “tower defense” or “tower-based” game — designed to showcase game-development fundamentals such as rendering, game logic, user interaction, and possibly simple physics or animations. As an open-source repository, tower_game aims not only to deliver a playable game, but also to serve as a learning resource or template: developers can inspect its code, understand how game loops, input handling, asset management, and state updates are organized. ...
    Downloads: 21 This Week
    Last Update:
    See Project
  • 4
    LittleJS

    LittleJS

    The Tiny JavaScript Game Engine That Can!

    LittleJS is a super lightweight 2D JavaScript game engine with fast WebGL rendering. It is designed to be small, simple, and easy to use for various applications, from game jams to commercial releases. This engine has everything necessary to make high-quality games, including fast rendering, physics, particles, sound effects, music, keyboard/mouse/gamepad input handling, update/render loop, and debug tools.
    Downloads: 3 This Week
    Last Update:
    See Project
  • Custom VMs From 1 to 96 vCPUs With 99.95% Uptime Icon
    Custom VMs From 1 to 96 vCPUs With 99.95% Uptime

    General-purpose, compute-optimized, or GPU/TPU-accelerated. Built to your exact specs.

    Live migration and automatic failover keep workloads online through maintenance. One free e2-micro VM every month.
    Try Free
  • 5
    Ct.js

    Ct.js

    Ct.js is a desktop game engine that makes learning programming fun

    ...The code editor highlights errors and provides documentation right while writing your code. ct.js is based on Pixi.js, works on WebGL and provides great performance in browsers and desktop environments. Modules add new powers, and when ct.js is not enough, you can add any JS code or library. A small stylized adventure with AI-powered sea battles, violent environment, and little puzzle sections.
    Downloads: 1 This Week
    Last Update:
    See Project
  • 6
    LayaAir3.0

    LayaAir3.0

    LayaAir is an open-source 2D/3D engine

    The LayaAir engine is a game engine brand under Layabox . The LayaAir engine not only supports 2D, 3D, AR, VR and other types of game development but also can be used in advertising, marketing, education and other fields. In addition to the release of the HTML5 version, it also supports the release of Native-APP, WeChat mini-games, QQ mini-games, Baidu mini-games, Bilibili mini-games, Douyin mini-games, Toutiao mini-games, Alipay mini-games, OPPO mini-games, and vivo mini-games. ...
    Downloads: 1 This Week
    Last Update:
    See Project
  • 7
    Blooket Cheats

    Blooket Cheats

    05k0nz's legacy is safe

    Blooket-Cheats is a repository containing scripts and a small web interface for Blooket game modifications. It organizes cheat scripts by game mode and provides methods for loading them through bookmarklets, a GitHub Pages interface, or browser console execution. The repository includes folders for cheats, tutorials, auto-update logic, page styling, and front-end code. From a software perspective, it is a browser-script collection focused on manipulating a web game environment. ...
    Downloads: 1,073 This Week
    Last Update:
    See Project
  • 8
    Phaser Box2D

    Phaser Box2D

    A high-performance, industry-standard 2D physics engine built on Box2D

    Phaser Box2D is a high-performance 2D physics engine built on Box2D v3, tailored for Phaser games. It delivers realistic physics simulations, enhancing the interactivity and engagement of web-based games.
    Downloads: 1 This Week
    Last Update:
    See Project
  • 9
    PlayCanvas Engine

    PlayCanvas Engine

    Fast and lightweight JavaScript game engine built on WebGL and glTF

    PlayCanvas is an open-source game engine. It uses HTML5 and WebGL to run games and other interactive 3D content in any mobile or desktop browser. PlayCanvas is used by leading companies in video games, advertising and visualization such as Animech, Arm, BMW, Disney, Facebook, Famobi, Funday Factory, IGT, King, Miniclip, Leapfrog, Mojiworks, Mozilla, Nickelodeon, Nordeus, NOWWA, PikPok, PlaySide Studios, Polaris, Product Madness, Samsung, Snap, Spry Fox, Zeptolab, Zynga. The PlayCanvas Engine...
    Downloads: 16 This Week
    Last Update:
    See Project
  • $300 Free Credits to Build on Google Cloud Icon
    $300 Free Credits to Build on Google Cloud

    New customers can spin up VMs, build with AI, and query data at no cost.

    Put your $300 in credit toward real workloads, then keep building with free monthly usage for 20+ products. No commitment and no charge until you upgrade.
    Start Free
  • 10
    melonJS

    melonJS

    A fresh & lightweight javascript game engine

    ...See our Gallery for a few examples of games powered by melonJS. melonJS integrates the popular Tiled map format, allowing designers easily create levels using the Tiled map editor, and to focus on the game features itself. A fresh and lightweight 2D sprite-based engine. Fast WebGL renderer for desktop and mobile devices with fallback to Canvas rendering.
    Downloads: 7 This Week
    Last Update:
    See Project
  • 11
    Eva.js

    Eva.js

    Eva.js is a front-end game engine for creating interactive projects

    A front-end game engine specifically for creating interactive game projects. Eva.js provides out-of-box game components for developers to use right away. Yes, it's simple and elegant! Eva.js is powered by efficient runtime and rendering pipeline (Pixi.JS) which makes it possible to unleash the full potential of your device. Thanks to the ECS(Entity-Component-System) structure, you can expand your needs by highly customizable APIs. The only limitation is your imagination! Eva.js relies on...
    Downloads: 0 This Week
    Last Update:
    See Project
  • 12
    Google Snake Mod Loader

    Google Snake Mod Loader

    All Google Snake mods combined into one

    Google Snake Mod Loader is an open-source browser-based modification framework that extends the classic Google Snake game by enabling custom mods, gameplay enhancements, and visual changes directly within the web version of the game. It works by injecting JavaScript into the Google Snake page, allowing users to dynamically alter game behavior without needing to download or modify the original source code. The loader provides a centralized system for managing multiple mods, making it easy to toggle features such as new mechanics, custom maps, altered physics, or additional UI elements. ...
    Downloads: 51 This Week
    Last Update:
    See Project
  • 13
    Godot MCP

    Godot MCP

    MCP server for interfacing with Godot game engine

    Godot MCP is a Model Context Protocol server that enables AI assistants to directly interact with the Godot game engine, allowing programmatic control over game development workflows through natural language or agent-driven commands. It acts as a bridge between AI systems and the Godot editor, providing capabilities such as launching projects, running games in debug mode, and capturing runtime output for analysis. The tool is particularly valuable for AI-assisted game development, as it creates a feedback loop where agents can execute code, observe results, and iteratively improve their outputs. ...
    Downloads: 7 This Week
    Last Update:
    See Project
  • 14
    Sabaki

    Sabaki

    An elegant Go board and SGF editor for a more civilized age

    ...Sabaki is a modern, elegant, cross-platform Go/Baduk/Weiqi board and SGF editor for a more civilized age. It’s free, open source and uses web technology based on Electron. You can see its code, contribute or report an issue at our GitHub repository. Sabaki offers a variety of board markup tools, including the SGF 4-compliant line and arrow tool. Annotate your positions and moves, set hotspots in your favorite games, write reviews in Markdown. Sabaki also supports SGF game containers, saving and reading multiple games within one file. ...
    Downloads: 49 This Week
    Last Update:
    See Project
  • 15
    Phaser CE

    Phaser CE

    Phaser CE is a fun, free and fast 2D game framework

    Phaser CE is the community-maintained version of Phaser 2, offering bug fixes, new features, and ongoing improvements after official development moved to Phaser 3. It remains a stable choice for developers who prefer the Phaser 2 API.
    Downloads: 0 This Week
    Last Update:
    See Project
  • 16
    Flexbox Froggy

    Flexbox Froggy

    A game for learning CSS flexbox

    Flexbox Froggy is an interactive browser game for learning CSS Flexbox. It teaches layout concepts by asking players to move frogs onto lily pads using real CSS properties. The game turns abstract alignment rules into visual challenges, making it easier for beginners to understand how Flexbox behaves. Players practice properties such as justify-content, align-items, flex-direction, order, align-self, flex-wrap, and align-content. The project is localized into many languages through community...
    Downloads: 2 This Week
    Last Update:
    See Project
  • 17
    Grid Garden

    Grid Garden

    A game for learning CSS grid layout

    Grid Garden is an interactive browser game for learning CSS Grid layout. It teaches Grid concepts by asking players to water carrots and avoid weeds using CSS grid properties. The game makes grid placement, sizing, and alignment feel concrete through visual levels instead of static documentation. Learners practice properties such as grid-column-start, grid-column-end, grid-row-start, grid-row-end, grid-template-columns, grid-template-rows, and order. The repository includes the web game...
    Downloads: 0 This Week
    Last Update:
    See Project
  • 18
    Complete JavaScript Course

    Complete JavaScript Course

    Starter files, final projects, and FAQ for Complete JavaScript course

    ...Learners can start with the starter code and compare their work with the final versions when debugging. The repository also links to deployed examples of major projects such as Pig Game, Bankist, Mapty, and forkify. It is primarily an educational companion resource rather than a standalone software product.
    Downloads: 2 This Week
    Last Update:
    See Project
  • 19
    Damn Vulnerable GraphQL Application

    Damn Vulnerable GraphQL Application

    Vulnerable implementation of Facebook's GraphQL technology

    Damn Vulnerable GraphQL Application is an intentionally vulnerable implementation of Facebook's GraphQL technology, to learn and practice GraphQL Security. DVGA has numerous flaws, such as Injections, Code Executions, Bypasses, Denial of Service, and more. See the full list under the Scenarios section. A public Postman collection is also available to replay solutions to the challenges. DVGA supports Beginner and Expert level game modes, which will change the exploitation difficulty.
    Downloads: 1 This Week
    Last Update:
    See Project
  • 20
    mslearn-tailspin-spacegame-web

    mslearn-tailspin-spacegame-web

    Code used in Microsoft Learn modules to support Azure DevOps

    The Tailspin Space Game Web project is a sample application created by Microsoft as part of its learning resources. It’s a web-based game application used in Microsoft Learn modules and documentation to demonstrate concepts such as Azure App Services, continuous integration and delivery (CI/CD) pipelines, and DevOps practices with GitHub Actions and Azure Pipelines. The project is intentionally lightweight and easy to deploy so learners can quickly experiment with cloud deployment, testing,...
    Downloads: 1 This Week
    Last Update:
    See Project
  • 21
    CMSS13

    CMSS13

    Contains the code for CM-SS13

    cmss13 is an open source fork of Space Station 13 that adapts the game into a Colonial Marines-inspired setting. Developed and maintained by the cmss13 community, it emphasizes tactical combat, military roleplay, and survival against xenomorph threats. The repository includes the complete source code, sprites, maps, and configuration files needed to run servers or contribute to development. Compared to traditional SS13 forks, cmss13 introduces unique mechanics such as marine squads, advanced weaponry, and alien abilities, offering a combat-heavy multiplayer experience. ...
    Downloads: 3 This Week
    Last Update:
    See Project
  • 22
    uPlot

    uPlot

    Chart for time series, lines, areas, ohlc and bars

    μPlot is a fast, memory-efficient Canvas 2D-based chart for plotting time series, lines, areas, ohlc & bars; from a cold start it can create an interactive chart containing 150,000 data points in 135ms, scaling linearly at ~25,000 pts/ms. In addition to fast initial render, the zooming and cursor performance is by far the best of any similar charting lib; at ~40 KB, it's likely the smallest and fastest time series plotter that doesn't make use of context-limited WebGL shaders or WASM, both of which have much higher startup cost and code size. ...
    Downloads: 2 This Week
    Last Update:
    See Project
  • 23
    p5.js

    p5.js

    Client-side JS platform for artists, designers and students to express

    p5.js is a JavaScript library for creative coding, with a focus on making coding accessible and inclusive for artists, designers, educators, beginners, and anyone else! p5.js is free and open-source because we believe software, and the tools to learn it, should be accessible to everyone. Using the metaphor of a sketch, p5.js has a full set of drawing functionality. However, you’re not limited to your drawing canvas. You can think of your whole browser page as your sketch, including HTML5...
    Downloads: 5 This Week
    Last Update:
    See Project
  • 24
    iCn3D

    iCn3D

    Web-based protein structure viewer and analysis tool

    "I see in 3D" (iCn3D) Structure Viewer is not only a web-based 3D viewer, but also a structure analysis tool interactively or in the batch mode using NodeJS scripts based on the npm package icn3d. iCn3D synchronizes the display of 3D structure, 2D interaction, and 1D sequences and annotations. Users' custom displays can be saved in a short URL or a PNG image. The complete package of iCn3D including Three.js and jQuery is in the directory "dist" after you get the source code with the "Code" button. View a 3D structure in iCn3D, input a PDB ID, and click "Load". You can also click the "File" menu to "Open File" or input other IDs. ...
    Downloads: 0 This Week
    Last Update:
    See Project
  • 25
    bfxr

    bfxr

    Flash + AIR sound effects generator. Based on Sfxr.

    ...The project includes libraries, HTML templates, and both ActionScript and JavaScript code. It has been well-received (over a thousand stars), but as of 2025, it has been superseded by a newer version called bfxr2, which is a JavaScript reworking of the original.
    Downloads: 8 This Week
    Last Update:
    See Project
  • Previous
  • You're on page 1
  • 2
  • 3
  • 4
  • 5
  • Next