← Dev Log
BallOrcs Battle3 min read

BallOrcs Battle: hold still to make a control group, and five tribe tutorials

Control groups by holding still on the map, a game speed setting, five tribe tutorials, faster match starts, and a new boot splash.

In plain words

Battle got a batch of changes this week. The biggest one is how you set control groups. Hold your finger, or the left mouse button, still on the map for half a second and a ring opens. Drag to Save, Recall or Centre, then to one of ten slots, and let go. Game speed is a setting now too. Auto slows the game to half speed on the smaller maps, so there is more time to react, and you can pick full or half speed yourself. Matches start a little quicker. There are five new tutorials, one for each playable tribe, that teach its signature unit and ability in a short scripted fight. The boot screen also shows a new HelixPlay Games splash, which is still draft art.

Under the hood

  • Group ring (group_ring.gd, fed by touch_controls.gd and rts_controller.gd): a 0.45 s still hold opens the ring. Releasing in the middle, or on an empty slot for Recall or Centre, does nothing. A second finger or an armed ability closes it. The Box switch now starts box selection, since holding still no longer does. Touch and mouse behave the same (#47).
  • Game speed (settings key game_speed: 0 = Auto, 0.5, 1, 2): Auto halves the clock on maps up to 40 hexes wide for a person. Bots and headless runs stay at 1x, so CI and traces do not move. [ and ] step the speed, and \ returns to the chosen one. Sim ticks and hashes are unchanged (#57).
  • Load timing (scripts/load_timing.gd): one [load] line per stage, from scene and terrain through first draw, controllable, reveal, tour and playable. The speed used to be applied during the load, which stretched the 1.9 s reveal and 2 s camera tour to about 4.3 s each on 25-hex maps. It now applies when the tour ends. On one test machine, Start to playable went from 5.5 to 6.9 s down to 3.9 to 4.1 s over three runs each (#82).
  • Shader compile (engine patch, ShaderGLES3): GLES3 shader variants now compile on first use, not all up front. A cold terrain shader linked in about 10 s per variant on a Direct3D 11 browser, and two thirds of the first-visit stall came from variants that the terrain never draws (#82). Not verified in a build yet: the patch applies cleanly, and the build:linux and build:web CI jobs will be the first real compile.
  • Android renderer fallback (renderer_choice.gd, device_profiles.gd): on GPUs with a distrusted Vulkan driver, the app relaunches on the compatibility renderer. There are boot-loop guards, one attempt per build. Graphics presets are not ported yet because they have not been measured on a device (#51).
  • Tribe tutorials: five scripted scenarios (Rootkin, Cinderkin, Brinekin, Amberkin, Glintkin) in the skirmish menu's Scenario row, after the two stories. They run on ordered tutorial steps with a "Step k/n" line and a card per step. The runner gained read-only condition stats (steps, ability_uses, bought, barricades). No sim rules changed.
  • Menu intro: three random on-screen hexes wobble for 0.35 s before the crumble wave, and the wave still starts inside the same reveal time (#81).
  • Boot splash: the HelixPlay Games splash, draft art (#92).

Several of these changes are covered by headless tests in CI rather than checked by hand on a device.

#rts#touch#ui#tutorials#performance#android