GeezerVison is showing fox2d.com — Fox2D – A 2D Game Engine Where Blocks and Lua Are One Fox2D Studio · Coming soonSnap it. Say it. It's a game.Fox2D is a 2D game engine and editor built around Lua. Blocks and code are two views of the same program, so editing one updates the other instantly. When you'd rather describe the game, an AI partner can build it, debug it and explain it inside your project. - Runs in the browser
- Blocks ⇄ Lua, live
- Web, Android, desktop & handhelds
hero.luaBlocksLuaSplit setspeedto3 sethopto24 every framedt setxtox+speed setbouncetoabssinx÷20 setytoground−bounce×hop 1speed = 3 2hop = 24 3 4function update(dt) 5 x = x + speed 6 bounce = math.abs(math.sin(x / 20)) 7 y = ground - bounce * hop 8end Try it: change a number on either side. It's one program, so both views update. Blocks ⇄ Lua One program. Two views.Under every block row is real Lua, the language behind countless shipped games. Beginners get blocks that are hard to break. Experienced developers get a real language with nothing hidden. 1- Not a code generator
- Blocks aren't a template that spits out code, and the code isn't an export. Both read and write one syntax tree. Drag a block and the function order changes in the text. Type a number and the block's input changes.
2- Low floor, high ceiling
- Start by snapping blocks. Switch to Lua whenever you're ready, in the same project. There's nothing to migrate and no point where you outgrow the tool.
3- Cards that read like sentences
- No jigsaw pieces. Each statement is its own card with a colored icon, plain words and blue value pills, in the same order as the code underneath.
Blocks every framedt1 ifis action“right”downthen2 End If One syntax tree - 1function update(dt)
- 2if action_down("right")
- 3assign x = x + speed
Lua 11function update(dt) 22 if action_down("right") then 33 x = x + speed 4 end 5end AI inside the editor Don't feel like snapping blocks? Just say it.Pair your coding agent with the editor tab you have open. It reads and edits the same project you're looking at: scenes, scripts, maps, logs and the running game. 01 BuildsDescribe a game and it builds one, step by step, starting from an empty project. Block Storm, one of the bundled examples, was made exactly this way. Make a falling-block puzzle. Line clears should explode. - ✓Scene: Board, with grid and walls
- ✓Objects: Piece, Ghost, Next queue
- ✓Input map: left · right · rotate · drop
- ✓Line clear particles and screen shake
- Playable. Want hold and a five-piece preview next?
02 DebugsWhen it won't run, the AI runs it, reads the logs and lights up the broken block, in both views at once. Fixes arrive as a proposal you can accept. $ f2d run $ f2d logs --kinds print,error error board.lua:57 attempt to call a nil value (global 'spwan') $ f2d diagnostics board.lua:57 'spwan' is not defined. Did you mean 'spawn'? $ f2d highlight board:57 --tone warn 03 ReplaysFor the bug that only shows up sometimes, it records that exact run, replays it frame by frame and finds where things go wrong. Then it saves the run as a test. $ f2d record --save --label "fell through the floor" saved r1 · seed and inputs captured $ f2d ab project.json --script hero=fix.lua first divergence at frame 47 0frame120
▸ frame 47 · hero collider misses the slope tile 04 TeachesConfused? It explains a block in the same words that are printed on the block. It asks a question first, then gives a hint, and only gives the answer if you ask for it. It remembers which ideas you’ve already met, so it starts at the right level. $ f2d explain hero:78 $ f2d hint hero:78 --level 0 This block says: on the frame the hero starts touching the ground, set on_ground to true. QuestionHow could you tell landing on top from bumping into a side? HintAnswer 05 Tunes the feelSay “the jump feels too heavy.” It tries several gravity and jump values, really runs each one in a headless player, and measures hang time, height, distance and landing. You pick; it never writes back on its own. $ f2d tune project.f2d --param jump --values 420,520,620 | jump | hang time | height | |
|---|
| 420 | 0.70 s | 2.2 tiles | | | 520 | 0.87 s | 3.4 tiles | Propose | | 620 | 1.03 s | 4.8 tiles | |
06 Checks your levels“Can this level be beaten?” It simulates jump arcs with the engine’s own physics and the hero’s real collider, then searches the map, so it can answer without playing. Not beatable.The gap at column 11 is 5 tiles; this hero can clear 4. You decide how much it can touch.Pick a permission level in the AI panel. In Propose mode, nothing changes until you click Accept. Every change is saved as a checkpoint, so you can compare versions and roll back at any time. Read Only Looks, never touches Suggest Can run · no edits Propose Edits need approval Auto Edit Direct edits · undoable
A real engine Everything a 2D game needs. Nothing to bolt on.Under the friendly editor is a native engine built on raylib and Lua. These are built in, so you don't need plugins or workarounds. .......... ....oo.... .......... @...===... ##########
Tile maps you can typePaint tiles on the stage, or edit the map as plain text. Change one cell and it lights up in both places. Physics that feels rightSolid tiles, one-way platforms and custom collision shapes, with jump arcs simulated frame by frame by the engine. Particles in one lineBuilt-in presets you can tweak in the inspector, then fire from any script with a single call. Touch controls, built inThe engine draws its own on-screen pad and shows only the buttons your game uses. It adapts to round screens and safe areas. - Vibrationinput.rumble()
- Gamepadsconnect / disconnect
- Tilt & gyroaccelerometer
Feel it in your handsVibration, physical gamepads and tilt sensors are all available from Lua, so phone games can use the whole device. Looks the same everywhereThe editor, the web build and every native export run the same player with the same bundled fonts. What you see is what ships.
Also built in: prefabs · parallax layers · cameras · sound · save data · multiple scenes Drag to compare. Same level, same scripts. Any 2D style Pixel or vector? Your call.The engine treats every 2D art style as first-class. Pick one when you create a project, then switch whenever you like. - Standard
- Linear filtering and anti-aliasing for vector, flat, hand-drawn or high-res illustration.
- Pixel Art
- Nearest-neighbor filtering and pixel snapping, plus a built-in pixel font and pixel editor.
- Change your mind later
- The style only sets defaults. Filtering, anti-aliasing, resolution and stretch mode stay adjustable, even per image.
- Landscape or portrait
- Side view or top-down. PNG, JPG and SVG import. Android exports follow your orientation.
Sky Barrage▶ BlocksLuaSceneObjects Make anywhere Pick it up on your phone.The whole editor works on a phone: blocks, Lua, the stage and a pixel editor. Your project saves itself in the browser, so you can keep going whenever you have a minute. Ship everywhere Finish once. Export everywhere.One project, a native player built from raylib and Lua, and an export button. No WebView wrapper. Android .apk with your icon and name Retro handhelds PortMaster: ArkOS, muOS, Knulli, ROCKNIX…
Experimental: the same engine also runs on ESP32 boards with tiny screens. 23 examples Start from a game, not a blank page.Every example is a small, playable game you're meant to take apart. Each comes with its art, credits and an AGENTS.md so an AI can understand the project too. Shown here: 8 of 23. Every example is available in English and Chinese. StandardTurret DefensePath tower defense with build, upgrade and sell, plus ten waves. StandardSky BarrageBullet-hell shooter with a three-phase boss. StandardBuilt by AIBlock StormModern falling blocks: SRS, hold, T-spins. Pixel ArtPlatformer · PixelRun, jump and collect coins. Pixel ArtOverworldExplore a top-down world and find the gems. Pixel Art1-Bit DungeonA two-color dungeon, floor by floor. StandardTop-down RacingThree laps against the clock. Pixel ArtDungeon CrawlExplore rooms, dodge enemies, grab coins.
- What is Fox2D?
- Fox2D is a 2D game engine with a browser-based editor, Fox2D Studio. You build games by snapping blocks or writing Lua, test them instantly, and export them to the web, Android, Windows, macOS, Linux and handheld game consoles.
- Who is it for?
- Beginners learning to make their first game, teachers, and experienced developers who want a fast 2D engine with a real programming language.
- Where are my games saved?
- In your own browser, and if you sign in with Google, in a "Fox2D Studio" folder in your own Google Drive. Fox2D only gets access to the files it creates there (the drive.file permission), and your projects never pass through our servers.
- Do I need an account?
- No. Fox2D Studio works without signing in. Signing in with Google is optional: it keeps your projects synced to your Drive across devices, using only your name, email address and profile picture to identify you.
Looking for App Maker? Our Scratch-to-app converter has been retired. Thank you to everyone who built with it. About App MakerSnap it. Say it. It's a game.Fox2D Studio is almost here. Join the community to be first in when the doors open. Join the waitlist |