Pulse2D is an all-in-one 2D Web Game Studio created for young programmers, hobbyists, and game developers.
circle(200, 200, 80) and see it render immediately on screen with zero boilerplate!playSound('jump'), playSound('coin'), playSound('laser'), playSound('explosion'), etc. with zero audio files!collideRectRect(), collideCircleCircle(), and dist() for instant arcade mechanics.screenShake(6) on hits and explosions!
Keyboard Shortcuts:
• Ctrl + Enter (Cmd + Enter): Run / Reload Game
• Ctrl + S: Save Project
• Ctrl + Space: Autocomplete suggestions
Code 2D Web Games lets you create and modify browser games using JavaScript and p5.js. Start with a template, edit its code, and test the results in a playable preview.
Games use a repeating loop to read player input, update positions, check collisions, and draw each frame. Changing these instructions helps you explore movement, scoring, difficulty, and game rules.
A simple movement rule is position = position + velocity. For jumping, vertical velocity changes with gravity on each update. In the usual p5.js canvas coordinates, positive vertical movement goes downward, so a jump typically starts with a negative vertical velocity.
Change one value at a time and test the result. Stronger gravity shortens airtime, while a larger upward starting speed can increase jump height.
Browser saves belong to the current browser and site. Clearing site data or switching browsers can make saved code unavailable. Download your JavaScript before replacing a template or making major changes.
An exported HTML game still loads p5.js from an external source, so it is not a fully offline package. Keep internet access available when opening or sharing it.
Basic JavaScript knowledge helps, but you can begin by modifying a starter template. Try changing colors or speed values, then use the built-in reference to explore p5.js functions.
You can build 2D browser games and interactive animations using JavaScript and p5.js. Starter templates include an asteroid dodger, brick breaker, coin runner, Snake, particle trails, and a bouncing physics sandbox.
Live Feedback reruns your project after code changes, resetting its current gameplay state. Disable Live Feedback and run the code manually when you are ready to test several changes together.
The app supports saving code in your current browser’s local storage. These saves do not sync across browsers or devices and can be lost if you clear site data. Download your JavaScript source as a backup.
Yes. Export your game as an HTML file to share or download its JavaScript source for further editing. The exported HTML loads p5.js externally, so internet access is needed to load that library.
Check the console and error hints for clues. Look for misspelled names, missing brackets, or misplaced code snippets. JavaScript is case-sensitive, so variable and function names must match exactly.