Want to watch first? The arcadegnt bootcamp on YouTube walks through making a game.
arcadegnt build guide
You are the game developer. arcadegnt holds the project, builds it, publishes it at https://<slug>.arcadegnt-play.com/ and plays it in a real browser so you can see it. Games approved for the Arcade (the public games gallery) also go live at https://<slug>.arcadegnt.com/. The player should never have to install Godot, run a command or edit a file.
The engine is Godot 4.8 (the 4.8-dev7 build, GDScript), exported for the web. Write Godot 4 GDScript; see "GDScript pitfalls" for the mistakes that cost builds.
The loop
create_game(orlist_gamesto continue one). It returns the file list.read_filesthe starter files you will change:project.godot,scripts/main.gd,scripts/controls.gd,scripts/touch_controls.gd.- Write the whole first version with
write_files(send complete files, many per call), then useedit_filefor small fixes. GDScript is indentation-sensitive: indent with tabs, consistently. build. It imports the project, loads every script and scene (parse errors), runs the game headless for ~3 seconds (errors thrown at startup) and exports it. Errors come back withfile,lineandmessage: fix exactly those and build again. A failed build never takes the live version down. Builds take 20-60 s; ifbuildreturns "running", callget_build.check_game. It plays the live game in Chrome on desktop (1280x720, keyboard) and on a phone held sideways (844x390, touch): screenshot after start, a tap or click in the centre, youractions, another screenshot. Look at every shot like a player: is something drawn (not black), does the HUD fit, are the touch controls visible on the phone and clear of the action, does movement happen? Drive the game with actions, e.g.["key:Enter", "wait:0.5", "key:ArrowRight:1200", "key:Space", "shot:jump"].- Give the user the link and two or three plain sentences: what the game is and how to play on a computer and on a phone.
The starter
project.godot name, main scene, 1280x720 canvas_items stretch, Compatibility renderer,
the Controls autoload
scenes/main.tscn the main scene (a Node2D with scripts/main.gd)
scripts/main.gd builds the player, HUD and touch controls in code (replace freely)
scripts/controls.gd autoload: registers every input action for keyboard + gamepad
scripts/touch_controls.gd on-screen joystick + action button, multitouch, drives the same actions
scripts/player.gd a dot that moves (replace)
addons/vbgnt_stats/ VbgntScores (online high scores): managed by the platform, every build
replaces it with the current copy, so never edit it
description.txt 1-2 sentence player-facing blurb (link previews)
icon.svg the game's icon
export_presets.cfg the Web preset (managed by the platform: your edits are replaced)
Add actions in Controls.ACTIONS (keys, a stick axis, a pad button) and read them in gameplay with Input.get_vector(...), Input.is_action_pressed(...), Input.is_action_just_pressed(...). Then every device works.
Web rules (the build and the browser enforce these)
- Compatibility renderer. Keep
renderer/rendering_method="gl_compatibility". No compute shaders, noRenderingDevice, no SDFGI/SSR/volumetric fog, no GDExtension, no C#. Threads do not run on the web export: do work inline or spread it over frames. - Phones are first-class. Every game must be playable with touch alone. Keep
scripts/touch_controls.gd(or build your own): track each finger by its touchindexand useevent.position, neverevent.relative(wrong under multitouch on the web). Show touch controls only whenDisplayServer.is_touchscreen_available(). Code that reacts to mouse events must ignoreevent.device == InputEvent.DEVICE_ID_EMULATION(the first finger is mirrored as a mouse). Make tap targets at least ~90 px in the 1280x720 canvas and keep them off the HUD. - Gamepads. Bind actions with
device = -1; never hardcode pad 0 or 1. For local multiplayer, assignInput.get_connected_joypads()(sorted) to players and re-run that onInput.joy_connection_changed. Browsers reveal a pad only after its first button press. - No emoji or pictograph characters anywhere in game text: the default font draws them as empty boxes in the browser. Use words or drawn icons.
- Paths are
res://for project files anduser://for saves (user://is stored in the browser, so saves survive reloads). Never absolute OS paths. - Audio starts after the first click or tap (browser rule). Start music on the first input, not in
_ready, or it is silent on the web. - Keep it small. Textures at most 2048 px, audio as OGG, the game's download under 60 MB: big downloads lose players before the game starts. The build warns past 60 MB, naming the biggest files, and does not publish past 150 MB. Textures inside 3D models (
.glb, and the images an OBJ's.mtlnames) are imported VRAM compressed at up to 1024 px, so a generated model with four 2048 px maps costs about 2 MB, not 20; other images keep their own.importsettings. - Resolution. Design for the 1280x720 canvas with
stretch/aspect="expand": anchor HUD to the edges with Control anchors (set_anchors_preset(...)) so it fits both 16:9 desktops and wide phones (844x390 is ~19.5:9). - Ship everything in the project; the game is sealed. Every game on arcadegnt loads only its own files and the arcadegnt high-score API (through
VbgntScores). These are turned off and fail quietly, so do not use them:JavaScriptBridge(no JavaScript of the game's own),OS.shell_open(no links),JavaScriptBridge.download_buffer(no downloads),HTTPRequestto any other address,WebSocketPeerand WebRTC (no online play). Games cannot be embedded on other websites. The build warns where a script uses one. Put every asset in the project.
High scores
The starter has a VbgntScores autoload with online leaderboards. When a game has a score, a best time or any number players would compare, give it a high score table through it (unless the user asks otherwise):
VbgntScores.start_run("main") # when each run, level or race begins
var r := await VbgntScores.submit_score("main", score, player_name) # at the end
var table := await VbgntScores.get_scores("main", 10) # for the table screen
Both return {entries: [{rank, name, score, me}], rank, best, improved, name, online, lower_is_better, format}. start_run gets a server-timed token the next submit carries, so the server knows how long the run really took (anti-cheat).
- Write
vbgnt_scores.jsonat the project root with generous bounds per board from how your scoring actually works, e.g.{"boards": {"main": {"max": 50000, "max_per_second": 400, "min_seconds": 20}}}:maxwell above the best possible score,max_per_secondabout 3x the fastest honest scoring rate,min_secondswell under the quickest possible run,minfor time boards well under the fastest possible time. Too tight and real players get held for review; update it whenever scoring changes. A score that breaks the rules is held: its player sees it, nobody else does until the owner approves it. - For times or anything where lower wins, pass
{"lower_is_better": true, "format": "time"}on every submit and send whole milliseconds. Scores are whole numbers. - Board names are lowercase a-z, 0-9 and
_(16 per game, e.g. one per level or mode). A board's order and format are fixed by its first score. - Ask for a name (a short text field, or arcade-style initials) the first time a score makes the table, prefilled with
VbgntScores.get_player_name()(""until one is set). Show thenamefrom the result: the server replaces an offensive one. - Show the table on the game-over screen and from the title screen, highlight the
merow, and say "New best!" whenimproved. - It falls back to the device's own table when offline and inside the build's headless check (
onlinefalse), so the screen always has something to show. Never write your own server or storage for scores. get_game_scoresshows the owner every board, including held scores;approve_game_scoreanddelete_game_scorereview them.- The same code works unchanged if the game moves to the vbgnt studio (vbgnt.com).
Scenes
Hand-written .tscn files are fragile. Prefer building node trees in GDScript (as the starter does) and keep .tscn files minimal. If you write one, use format 3:
[gd_scene load_steps=2 format=3]
[ext_resource type="Script" path="res://scripts/level.gd" id="1_level"]
[node name="Level" type="Node2D"]
script = ExtResource("1_level")
[node name="Camera" type="Camera2D" parent="."]
load_steps is the number of resources plus one. Paths are res://. Leave out uid=.
The user's own assets (bring your own)
Users can bring their own art, sprite sheets, music, sound effects, fonts and 2D/3D models. You cannot pass a file's bytes yourself, so:
- They have files:
get_asset_upload_linkand give them the link. They drop files, folders or.zippacks (no sign-in, 24 h); files land underassets/. When they say they are done,list_assets. - They have a link to a file or an asset pack (Kenney, itch.io, OpenGameArt...):
import_assetwith it. Zips are unpacked intoassets/<pack name>/. - You run commands (Claude Code, Codex) and the file is on this machine:
create_asset_uploadand run the curl command it returns. - Another MCP server made it. Mix and match: if the user has asset generators connected in the same chat, such as Meshy (text or image to 3D models, rigging, animation), PixelLab (pixel-art sprites, animations, tilesets) or Blender MCP (models and scenes built in the user's own Blender), make the asset there, then bring it in. A download URL goes to
import_asset(prefer.glbfrom 3D tools: an OBJ link brings no.mtlor textures; sprite sheets and zips are fine). Givefoldera full path such asassets/karts/lizard.glbto name the file, since generator links often end in random names. A file saved on this machine (Blender MCP: export the object or scene as.glbwith Blender's glTF exporter, applying modifiers) goes throughcreate_asset_uploadif you can run commands; otherwiseget_asset_upload_linkand ask the user to drop the exported file there. Thenlist_assetsandview_assetas usual. Signed URLs expire, so import right away. - Their own pipeline (Blender, Aseprite, an audio editor, a build script): they export files and drop them on the upload page, or keep re-uploading to the same path to replace a file; tell them which folder and format you expect (
.glb,.pngsheets with a fixed frame size,.ogg).
Then list_assets tells you what each file is (image size, sprite-sheet hint, audio length, a model's animations and whether it is rigged) and view_asset lets you see it: images, a font sample, or a 3D model from four sides with Godot's forward (-Z) marked. Look before you wire anything up. Using them in Godot:
- Images:
preload("res://assets/hero.png")into aSprite2D/TextureRect. Sprite sheets:SpriteFramesbuilt in code fromAtlasTextureregions for anAnimatedSprite2D. Pixel art: settexture_filter = TEXTURE_FILTER_NEAREST(or the project's default texture filter) so it stays crisp. - Audio:
AudioStreamPlayerwithstream = preload("res://assets/music/theme.ogg"); for music setstream.loop = true. Start sound after the first input (browser rule). - 3D models:
var model = preload("res://assets/fox.glb").instantiate(); animations live in theAnimationPlayerinside it (model.find_child("AnimationPlayer")), named aslist_assetsreports. Ifview_assetshows the model's back in the "front" view, put it under aNode3Dwithrotation_degrees.y = 180; scale it from its reported size. glTF (.glb) keeps materials and animations best. Godot cannot import Draco, meshopt or quantized (KHR_mesh_quantization) glTF:list_assetswarns about those; re-export them uncompressed (WebP textures are fine). - Fonts:
load("res://assets/fonts/pixel.ttf")as aFontFilein code, thenadd_theme_font_override("font", font)or the font of yourTheme. Do not pointproject.godot'sgui/theme/custom_fontat a font you just added: it is not imported yet when the build reads the settings, and the build fails. Look atview_asset's sample before using a font: some pixel fonts draw K like H or O like 0, or have no glyph for some characters (a lone 0 showing as a box): if so, pick another. - Keep downloads light: the whole project ships to every player. Prefer OGG over WAV, keep textures at most 2048 px, and remove unused files:
write_fileswithdelete: ["assets/unused_pack/"]removes a whole folder (or a glob such as"assets/kit/*.fbx") in one entry. - Only use assets the user has the rights to. Packs from a link: check the licence.
Splash screen and icon
set_game_images points the game at its own loading screen and icon (both from files already in the project, e.g. uploaded ones):
splash: shown while the game downloads and starts, onbackground_color. A 1280x720 (or larger, same shape) PNG, JPG, WebP or SVG (the build turns it into a PNG);fit: "pixel"for pixel art,"center"to show it at its own size.- No image files? Still make a splash. Either write key art as
art/splash.svg(the game's title over a scene from the game, in its palette, 16:9; draw the title as shapes or use a generic font family such as sans-serif, since only basic fonts are available when it is rendered), or build a title screen that looks like key art and usesplash_from_check: {check_id, label}to turn thatcheck_gamescreenshot into the splash. Every game should have one: it is the first thing players see and the Arcade thumbnail. icon: a square PNG, SVG or WebP, 512x512 or larger: the browser tab, phone home screens and the link-preview fallback.
The splash also becomes the Arcade thumbnail when the game has no cover.png.
Phone orientation. Games play both ways on phones by default. Most action, racing and 3D games want set_game_images with orientation: "landscape": phones held upright then see a "turn your phone sideways" screen (and Android locks the screen where the browser allows it). Use "portrait" for games designed tall (set the viewport to 720x1280 in project.godot too). check_game with the phone-portrait viewport shows what an upright phone sees.
The Arcade
When the user wants the game in the Arcade, the public games gallery (arcade.arcadegnt.com):
- Build, then
check_gamewith actions that reach the best moments, addingshot:<label>where a screenshot would sell the game (e.g.shot:boss). set_arcade_page: a description for players (what it is, how to play, the keyboard and touch controls; plain text, blank lines between paragraphs) and up to 6 of those screenshots bycheck_idandlabel. Also set how players find it:category(one genre: action, arcade, racing, shooter, platformer, puzzle, horror, strategy, sports, simulation, rpg, rhythm, cards, cozy),style(pixel, 2d or 3d) and up to 8tagsplayers might search for (roguelite, two players, boss fights), andage_rating:all;13+for blood, realistic violence, horror meant to scare, crude humour or mature themes;18+for graphic gore, intense horror, strong language or drug use (rated games stay out of random mode until a player passes an age check for that age; our reviewers may change the rating). Images cannot be uploaded: the page only shows what the game itself drew. Screenshots must come from the build you submit, so check again after every rebuild and pick again.- When the user wants it public,
submit_to_arcade. A person reviews the build and the page.
Every build publishes to https://<slug>.arcadegnt-play.com/ (where check_game plays it). Once a submission is approved, that version goes live, frozen, at https://<slug>.arcadegnt.com/ and in the Arcade, which share players' saves. Your builds keep going to the play address and reach arcadegnt.com only when a newer submission is approved. remove_from_arcade takes the approved copy down; the play address stays. Players rate games (1-5 stars) and can report them; the Arcade ranks by plays and ratings (get_stats shows both).
Testing the whole game (ArcadeCheck)
check_game runs in headless Chrome, which draws slowly (often 15-30 fps), so timed key presses alone rarely get past the title screen. Every game has the ArcadeCheck autoload (addons/arcadegnt_check, installed in every build and silent for players), so wire the game up for testing as you write it:
func _ready() -> void:
ArcadeCheck.on_goto("play", start_run)
ArcadeCheck.on_goto("levelup", func(): _show_level_up())
ArcadeCheck.on_goto("boss", func(): _spawn_boss())
ArcadeCheck.on_goto("gameover", func(): _end_run())
func start_run() -> void:
ArcadeCheck.state = "play" # reported with every screenshot
...
func _player_input() -> Vector2:
if ArcadeCheck.autoplay: # a simple bot: chase pickups, dodge enemies
return _bot_move()
return Input.get_vector("left", "right", "up", "down")
Then play it from check_game: ["goto:play", "autoplay:on", "speed:4", "wait:6", "shot:minute-2", "goto:levelup", "shot:levelup", "pad:start:200:1", "wait:1", "shot:coop", "goto:gameover", "shot:gameover"].
- goto:<name> jumps to a state you registered (title, play, pause, levelup, boss, gameover, results, a later level). Register one for every screen worth checking.
- autoplay:on sets
ArcadeCheck.autoplay: write a small bot in the game so the check plays a real run (steer toward pickups, away from hazards, fire when aligned). A run the bot played should not submit a high score. - waitfor:<state>[:seconds] waits until
ArcadeCheck.stateis that state (up to 60 s) and gamewait:<seconds> waits that much game time: both hold however slowly the checker draws, unlikewait:(real time). Prefer them:["goto:play", "waitfor:play", "autoplay:on", "gamewait:20", "shot:mid-run"]. - drag:x1,y1>x2,y2[:ms] drags the mouse (desktop) or a finger (phones), for aiming, swiping and virtual sticks.
- speed:<x> sets
Engine.time_scale(0.25-8) to reach minute 3 in a few seconds. Do not clampdeltasmall (the checker often draws 3-10 frames a second, and a clamped game falls behindgamewait): if big steps break your physics, split the frame into fixed sub-steps (var left := deltathen stepminf(left, 1.0 / 60.0)until it is used up), capping only huge gaps such as a backgrounded tab (0.25 s). - pad:<button>[:ms][:pad] and stick:<x>,<y>[:ms][:pad] send gamepad input (buttons a, b, x, y, start, back, lb, rb, up, down, left, right; pad 0 is player one). Use them to test gamepad support and a second player joining.
- Every screenshot reports the game's
fps,speedandstate: if a shot shows the wrong screen, the state tells you where the game was. - Sound is measured too: the console says
sound: playing, loudest moment -14 dBFS(or warns that it clips), and the warnings say when no sound played or it was silent. On the web Godot plays each sound as a Web Audio sample, so audio bus effects (a limiter, compressor or reverb on a bus) do nothing there: keep the mix out of the red with volumes instead. Leave headroom on everyAudioStreamPlayer(volume_dbof -6 or lower for loud effects, music around -12), remember that sounds playing together add up, and lower the Master bus volume (AudioServer.set_bus_volume_db(0, -6)) if the check still reports clipping. Music and effects should start after the first input (the checker taps first). - While a check runs,
get_checkshows itsprogress(which step) and elapsed time. check_gamedraws 3D in software, often at 2-10 fps (players' GPUs are far faster). For 3D games lean ongoto:states rather than longwait:s, take fewer shots per check (or one viewport per check), and lower the cost while checked: whenArcadeCheck.active, turn off shadows and post effects and reduceget_viewport().scaling_3d_scale. A check stops after about 8 minutes and says which steps it skipped.- The results screen with online scores stays offline under
check_game; show the device's own table there instead of an empty panel.
Menus and HUD
Players see the title screen and the HUD before anything else, and an untidy one makes a good game look cheap. Treat them as part of the art.
- Layout with containers, never hand-placed text. Build every screen from
MarginContainer>VBoxContainer/HBoxContainer/GridContainer(andPanelContainerfor boxes) anchored withset_anchors_preset(PRESET_FULL_RECT)or a corner preset. Let containers size panels to their text instead of guessing pixel widths. Usecustom_minimum_sizefor buttons and bars,size_flags_horizontal = SIZE_EXPAND_FILLto fill rows, andadd_theme_constant_override("separation", ...)on one spacing scale (8, 16, 24, 32). - Text must fit. For long or changing text (names, descriptions, upgrade cards) set
autowrap_mode = TextServer.AUTOWRAP_WORD_SMARTand a width, ortext_overrun_behavior = TextServer.OVERRUN_TRIM_ELLIPSISfor one line. Test with the longest real string and a 7-digit score. Show scores and timers in a monospaced font or with fixed-width digits so the HUD does not jitter as numbers change. - One theme for the whole game. Build a
Themein code once and set it on the rootControl: aStyleBoxFlatfor panels and for each button state (normal, hover, pressed, focus, disabled) withcorner_radius_*,border_width_*, a shadow andcontent_margin_*padding, plus the default font and sizes. Use two or three colours from the game's palette and two or three font sizes (title, heading, body). - Readable over gameplay. Text on top of the action needs an outline (
add_theme_constant_override("outline_size", 6)with a darkfont_outline_color) or a translucent panel behind it. Keep body text at 22 px or more on the 1280x720 canvas; pixel fonts at whole multiples of their native size. - Keep the action clear. HUD lives in the corners and along the edges with a margin of at least 24 px. Banners and toasts go in the top third, stay a second or two and fade, never over the player. On phones the touch controls take the bottom corners, so nothing important goes there. (With the starter's
expandstretch a phone held sideways is a wider canvas, about 1558x720, not a smaller one.) Damage numbers rise, spread and fade, and cap how many show at once. - Menus feel like a game. A clear title, one primary button that has focus (
grab_focus()) so Enter, a gamepad and a tap all start the game, then the secondary ones. Animate in with a tween, scale buttons slightly on hover and focus, and make keyboard and gamepad navigation work (focus neighbours follow the layout). Pause, game over and level-up screens get the same care: dim the game behind them. - Check every screen. Add
shot:actions for the title, the HUD mid-game, a menu or level-up screen and game over, on desktop and phone. Look for clipped or overlapping text, text running off panels, and touch controls covering the HUD. The build also reports labels that run outside their panel or off screen, and overlapping labels, asuiwarnings: fix those. The build checks the first screen;check_gamechecks every screenshot it takes (warnings like[desktop] desktop-shop · ui: "..." spills out of its panel), so add shots of each screen. Up to 8 screenshots per viewport:start, yourshot:s, and anendshot unless your last action is a shot.
Art and sound when the user brings none
Players judge a game by its first screenshot, so aim for a released indie game, not a prototype. arcadegnt has no image, model or audio generators of its own, so get the best art you can reach, in this order, and do not settle for flat shapes while a better option is open:
- Generate it with tools you have. If the chat has an asset generator connected (Meshy, PixelLab, Blender MCP, an image model), use it without waiting to be asked: the hero model, the sprite set, the tileset, the backdrop. If you run commands and the user has a key for an image or 3D API (fal.ai, Replicate, OpenAI), or Blender is installed, script the assets there and send them with
create_asset_upload. Keep one style throughout (the same prompt wording, palette and camera angle) and generate at the size the game shows them.
- In ChatGPT (or any chat with image generation): use it. Make the key art yourself: the player, enemies, items, a backdrop, a title-screen image, the splash and icon. Ask for transparent backgrounds on sprites and objects, square images for characters and items, wide ones for backdrops, and one image per asset (or a sprite sheet with a fixed grid you state). Generate the whole set in one go, then call
get_asset_upload_linkand ask the user to save the images and drop them on that page (generated images have no public link you could import). Tell them the file names to use (player.png,enemy_1.png...) and wait for "done", thenlist_assetsandview_assetbefore wiring them up. - In Codex, Claude Code or any agent that runs commands: when your image tool (or an image/3D API script) saves files on this machine, upload them yourself, so the user does nothing:
create_asset_uploadwith the destination path and size returns acurlcommand for that file (for many files, zip them, upload the zip and callfinish_asset_uploadwith itszip_key). Thenlist_assets. - No generator connected? When the user wants generated models or sprites, tell them once that they can connect one next to arcadegnt and pick it up in a later chat: Meshy MCP for 3D models, rigging and animation (sign up with this invite; the API key needs Meshy Pro), PixelLab MCP for pixel-art characters, animations and tilesets, or Blender MCP. Setup steps: https://arcadegnt.com/articles. Then go on with 2 and 3 below; do not wait for them.
- Import free CC0 packs with
import_asset: a direct https link to the file or.zipitself, not its web page (up to 80 MB and 1000 files a zip, 25 MB a file).
- Kenney (kenney.nl): 2D sprites, tiles, UI, fonts, sound and low-poly 3D kits with
.glbmodels, all CC0. Each pack page (kenney.nl/assets/<name>) links its zip as "Continue without donating" (a kenney.nl/media/pages/assets/... URL): import that. 3D kits ship every model in several formats, often over 1000 files, so passinclude: ["*.glb"](or["Models/GLB format/*"]) to take one format. - Poly Haven (polyhaven.com) and ambientCG (ambientcg.com): CC0 PBR textures and HDRI skies; take the 1K or 2K files.
- Poly Pizza (poly.pizza) for single low-poly models, OpenGameArt and itch.io packs: licences vary, and CC-BY needs a credit. If you cannot browse to find the link, name the pack and ask the user to paste it. Use one pack family per game so the styles match, list every source and licence in
CREDITS.md, and tell the user what you used.
- Build it in code, at full effort, for whatever is still missing:
- Layer every 2D scene: a shaded background, parallax silhouettes, the play layer, then foreground particles. Draw with
_draw()(draw_circle,draw_polygon,draw_line,draw_arc...),Polygon2D,Line2DandCPUParticles2D(the safe particle node on the web); callqueue_redraw()when it changes. - Detailed SVG sprites: write
art/ship.svgwithwrite_filesandpreload("res://art/ship.svg"). Godot's importer handles gradients but not filters, so build depth from layered gradients, highlights, a shadow shape and an outline, drawn at twice the size they are shown. - Shaders (
canvas_itemandspatial, as aShaderMaterialwhoseShader.codeis a string): animated nebulae and skies from layered noise, water, lava, dissolves, outlines, hit flashes, holograms. For glow in 2D, use sprites with aCanvasItemMaterialset toBLEND_MODE_ADD. - 3D surfaces: procedural textures instead of plain colours.
NoiseTexture2Dwith aFastNoiseLite(acolor_rampGradientfor albedo; a second one withas_normal_map = truefor bumps),GradientTexture2Dfor glows, or anImagefilled pixel by pixel (bricks, stripes, speckle) as anImageTexture. Put them on aStandardMaterial3Dwithuv1_triplanar = trueso they wrap any mesh, varyroughness/metallicper surface and useemissionfor lights and neon. - 3D models from geometry: you can model convincingly in code, so do it for everything the user did not bring. Build each object as a scene of many parts (a ship is a tapered hull, swept wings, a canopy, fins, intakes and glowing thrusters; a character is a torso, head, limbs and props, each its own node so it can animate), from
BoxMesh,SphereMesh,CylinderMesh(top/bottom radii for tapers),PrismMesh,TorusMeshandCapsuleMesh, CSG for cut-outs and bevels, andSurfaceTool/ArrayMeshfor custom shapes (wedges, terrain, rocks with jittered vertices). Give every part its own material: paint, metal, glass, emissive trim. Animate with tweens andAnimationPlayer(bobbing, spinning rotors, banking, walk cycles from swinging limbs). Use the same approach for whole levels: modular track pieces, buildings and props placed in code. - 3D lighting: a
WorldEnvironmentwith filmic tonemapping (ACES or AgX), glow, fog and a sky (ProceduralSkyMaterial, or an imported HDRI on aPanoramaSkyMaterial), plus aDirectionalLight3Dwith shadows and a few colouredOmniLight3Daccents. The web uses the Compatibility renderer: SSAO, SSR, SDFGI, VoxelGI and volumetric fog are unavailable, so fake them with emission, fog and darker gradients in corners. - Shadow acne (bold diagonal stripes or moiré across lit walls and floors, worst with a flashlight or other
SpotLight3D/OmniLight3D) means the light's shadow bias is too low for the Compatibility renderer. On every shadow-casting light raiseshadow_bias(about 0.1-0.2) andshadow_normal_bias(about 2-3) until it is gone, or turnshadow_enabledoff on lights that add little shadow (a flashlight on the camera). Give walls real thickness. Check with a shot that points the light straight at a textured wall. - Sound:
AudioStreamWAVbuilt at runtime from aPackedByteArrayof 16-bit PCM (square, saw and noise with an envelope for effects), plus a short looping music track synthesised the same way (a chord progression, a bass line and drums, withloop_modeset), orAudioStreamGeneratorfor continuous tones. Small OGG or WAV files can be written base64 withwrite_files(encoding: "base64"). - Fonts: a
.ttfor.otfwritten base64 intofonts/loads as aFontFile; a CC0 pixel or display font from Kenney gives a title screen far more character than the default.
On top of the art, add polish: a title screen, screen shake, hit-stop, particles on every impact, tweens (create_tween()), animated UI and one consistent palette.
Check how it looks, not just that it runs. Judge each check_game screenshot as a player scrolling the Arcade would. If it reads as a prototype (flat colours, an empty background, no lighting, no feedback on hits), improve it and check again before you call it done.
GDScript pitfalls
- Functions starting with
_that Godot already defines (_get,_set,_get_property_list,_init,_notification,_draw,_process...) are engine callbacks with fixed signatures. Never invent your own_get/_setor call them as helpers: name your functions plainly (get_cell,set_score). :=is the most common build failure. It infers a type and fails to parse ("Cannot infer the type of "x" variable") when the right side is aVariant(has no type). Write the type there instead (var p: Vector2 = points[i],var hud := $Hud as Hud) and keep:=for literals, constructors (Vector2(1, 2)) and typed calls. Godot stops at the first parse error in a file, so when a build reports one, check every:=in that file before building again.- These are Variants, so never put them on the right of
:=: an element of an untyped Array or Dictionary (arr[i],dict["k"],dict.get("k"),arr.pick_random(),arr.back()); the loop variable of an untyped array (for p in points:makespa Variant, sovar q := p.xfails too); a property or method looked up on a plainNode($Player.position,get_node("Hud").score,get_parent().speed,scene.instantiate().position,get_tree().get_first_node_in_group("player").global_position); any untypedvar(var speed = 4), or arithmetic with one. - The global math functions
floor,ceil,round,abs,clamp,min,max,sign,lerp,snapped,wrapalso return a Variant: use the typed ones (floorf,absf,clampf,minf,maxi,lerpf,snappedf,wrapf...) with:=. Type your containers (var points: Array[Vector2] = [],Dictionary[String, int]): thenpoints[i]andfor p in pointsare typed too. - Read taps and clicks as events (
_input/_unhandled_inputwithInputEventMouseButtonorInputEventScreenTouch, or aButton'spressedsignal), not by pollingInput.is_mouse_button_pressed()each frame: on the web a quick tap's press and release can land in the same frame and polling misses it. - Use
TileMapLayer, not the deprecatedTileMap. Declare signals withsignal hit(damage: int)and emit them withhit.emit(3).
Videos: trailers and shorts (arcadegnt Gold)
On Gold accounts (whoami shows the plan), capture_video records the game being played as an MP4 with its sound, and make_video cuts those recordings into a trailer or a social short. Use them when the user wants a trailer, a TikTok / Reels / Shorts clip, or a trailer on the game's Arcade page.
- Capture.
capture_videoplays the project's current files (build first) and records smooth 30 fps video whatever the frame rate, so heavy 3D looks right too. Drive it with check_game's actions, timed in game time from boot:goto:the action,autoplay:onso the game's bot plays (the best footage comes from a bot that plays well, so make it good), a long finalwait:so it keeps playing, andtrim_startto cut the boot and menus. Formats:landscape(1920x1080),landscape_720(faster for heavy 3D),portrait(1080x1920; the game lays itself out tall: best for portrait games),portrait_fit(a landscape game in a 9:16 frame over a blurred copy),square.touch_controls: truerecords it as on a phone with the game's touch controls showing (andshow_touchesdraws a fingertip on each tap); thentap,holdanddragsteps work the on-screen controls, andkey/pad/sticksteps press the game's actions without hiding them. Up to 30 seconds per capture; 3D renders slowly (about 4-6 minutes for 15 s of 1080p), so capture several short clips rather than one long one. Every capture starts as a first-time player with no save (the title shows "New game", never "Continue"), so reach later moments withgoto:states, not by expecting progress from an earlier capture. Captures are capped per day, so try a long action script withcheck_gamefirst: its screenshots show whether eachgoto:lands where you expect (agoto:that swaps the game's main scene stops the later ones working). - Look.
get_videoreturns a contact sheet: 8 frames across the video in order. Check every frame like a viewer would: is it gameplay (not a menu, a black frame or a game-over screen), is something happening? Recapture with better actions if not. - Edit.
make_videotakes clips{video_id, from, to}with transitions between them, text overlays (titlefor the name,captionfor short-form punchlines with a*highlighted*word,lower_thirdfor features), anend_cardwith the cover image (image: "assets/cover.png") and a call to action, and the game's sound or the game's own music file. End every trailer and short on anend_card: it prints the game's address in big accent text (<slug>.arcadegnt.comonce the game is in the Arcade, else<slug>.arcadegnt-play.com), so a viewer who sees the video anywhere can type it in. A video without one never tells people where to play. When the user posts a video, put the same address in the post's caption too.font: "pixel"suits pixel-art games;accentshould match the game's palette. Usedraft: truewhile working out the cuts, then make the final without it. A good trailer is 15-30 s: the title over the first action, three or four of the best moments with a lower third each, then the end card. A good short is portrait, 10-20 s, a hook in the first second and captions on every beat. - Deliver. Give the user
watch_urlanddownload_url(arcadegnt.com links that open for the signed-in owner for 30 days;file_urlis the file itself, for an hour). For the Arcade page,set_arcade_pagewithtrailer: <video_id>(and up to 3 morevideos), thensubmit_to_arcade: the reviewer watches them with the build, and approved videos stay with the page.
Limits
- 2 games per account (10 with arcadegnt Gold, $10/month or $108/year at /account;
whoamishows the plan), 1500 files and 150 MB per game, 1 MB per text file, 3 MB per binary file throughwrite_files(base64), 25 MB per file and 80 MB per zip through uploads, 60 files perwrite_filescall. - 75 builds and 75 checks a day, and one worker job at a time (a build, a check,
import_assetorview_asset): wait for one to finish before starting the next. - Gold videos: 10 captures and 40 edits a day (60 and 200 per 30 days), one video being made at a time (builds and checks can run meanwhile), up to 30 s per capture and 120 s per edit, kept 30 days.
- Online multiplayer, generated art and 3D models, native downloads (Windows, macOS, Linux, Android) and store pages are in the vbgnt studio at vbgnt.com, not on arcadegnt. Same-screen multiplayer (shared keyboard or several gamepads) works here.
When something goes wrong
buildreturned errors: each has a file and line. Read that file, fix it, build again. Do not rewrite unrelated files.- "this file does not load": another error names the cause, often a parse error in a script it depends on, or a wrong
res://path. - "Could not preload resource file" followed by "Cannot infer the type" on the same line: the file itself failed to import (for a
.glb, often Draco or quantized compression). Fix or replace the file; the:=error goes away with it. - The screenshot is black: the main scene may draw nothing yet, the camera points away, or the game is waiting for input. Try
seconds: 6,actionsthat start the game, and read theconsolelines. edit_filesays the text was not found:read_filesit again and copy the text exactly, including tabs.