Unity.Rea.Hare/BIBLE
Unity.Rea.Hare: Project Bible
The single source of truth for what Unity.Rea.Hare is, the rules that keep the rebuild faithful, how the code is organised, and every place it does not play exactly like the original, with the reason.
README.mdsays how to build, run and test it;RECONSTRUCTION.mdis the inventory of the original, the parity matrix, the standards audit and the build order;REVERSE_ENGINEERING.mdholds the per-object notes read from the GML source.Anything here that is planned but not yet on main is marked (planned, UH-Tn). Nothing is claimed as built that is not.
1. The one sentence
A robotic rabbit flies, perches and fights in low orbit over a drifting asteroid field, shooting down swarms of enemies that pour out of vortices and wormholes, rebuilt from the GameMaker 8.1 arcade shoot-'em-up HARE (in-game title H.O.P., High Orbit Patrol) as a modern Unity 6 game.
2. The product promise
- Two ways to fight. In flight the ship turns with A/D, boosts and brakes on a shared energy bar and drops mines; perched on a rock it raises a shield wall and fires its ground weapons (vulcan, shotgun, flamer and the rest), leaping off to fly again.
- One shared ammo economy. Four pools (ground and air, primary and secondary), each with the original's maximum, cost and regeneration, refilling only once the trigger is let go.
- The original's bestiary. Ambient insects, the dagger, eight set-piece enemies (hydra, phalanx, meatball, wraith, sawblade, worm, trilobyte, mimic) and the enemy mine, each with its own collision rules, scores and death effects, spawned by
par_enemy_emittervortices or, in generator mode, by wormholes drawing on a difficulty list. - A living rock field. Rocks drift, spin, darken under fire, heal, break into flotsam and are replaced, and are the ground the rabbit stands on.
- The whole game. Title, story, map, ten levels across arena, shaft and side-scroll rooms, the Scrap Mental boss, the garage and the HUD all come across (all built on main, see the RECONSTRUCTION parity matrix; U.HARE-T118's audit left player control rebinding, now built in U.HARE-T120 (V55), and a re-run of the end-to-end verification, U.HARE-T121).
3. What it is not
- Not a redesign. No new modes, levels, enemies or progression beyond the original (the one addition is a campaign save, UH-T65). The scope is the original played as it was meant to play (see §4 rule 1), and the repo is finished when the last reconstruction story is.
- Not a line-by-line port. The code is rebuilt from scratch to current Unity practice; only the behaviour is kept.
- Not tied to 120 steps a second. The original's per-step numbers become per-second rates and fractional steps on Unity's clock (see V1).
4. Design rules
The owner's rebuild standard is in AGENTS.md; these are its rules as they apply here.
Gameplay matches the original; broken things are fixed
Every value, unit and behaviour comes from gmlHARE's source (R:\...\gmlHARE\HARE.gmx), never from a guess. Where the original is plainly broken (a random that is not random, a draw call commented out, a feature that can never be reached, sound that ships switched off) the rebuild plays the way the game was clearly meant to, and the fix is a row in §7 Fixed defects. Everything that works matches exactly. Anything else that differs is a row in §8 Deliberate deviations with its reason. A difference with no row is a bug.
Reverse-engineer before rebuilding
An object, script or room is read in full and recorded in REVERSE_ENGINEERING.md (the per-object notes) or RECONSTRUCTION.md (the inventory) before its rebuild starts.
Core is pure C#
The rules live in an engine-free Core assembly (noEngineReferences, no UnityEngine) tested with dotnet test. State changes only through commands, which produce events; presentation reads state and plays events and never mutates the game.
Hard assembly boundaries
Core, Runtime, Editor and Tests are separate asmdefs with one-way references (see §5).
Content and tuning are data
Levels, enemies, weapons, text and every tuning number live in data files or a settings registry, validated on load (see §6).
Built in code
The scene, UI and objects are composed in code (ProjectSetup today), never wired by hand in the Inspector. Regenerate Main.unity rather than editing it; art import settings come from HareArtImporter, not the Inspector.
Modern Unity only
Unity 6, URP behind a pipeline-agnostic layer, the Input System through an action asset, UI Toolkit or the shared MindAttic components, Unity.Shared profiles and settings, and multiplayer-ready seams: commands carry a player id, one authority holds the state, no global current-player singleton, built on the Unity.Multiplayer kit.
Done means seen working
Core tests green, a build that launches, and the feature seen in play (a screenshot or a scripted run) before a ticket closes.
5. Architecture
5.1 Target
Unity 6000.4.3f1 · URP 2D · scenes generated in code (ProjectSetup: one per room plus the Main.unity bootstrap, U.HARE-T50)
┌────────────────────────────────────────────────────────────────────────────────────┐
│ Unity.Rea.Hare.Runtime (MonoBehaviours, presentation, input, audio, HUD) │
│ reads Core state, plays Core events, turns input into Core commands │
└──────────────▲───────────────────────────────────────┬─────────────────────────────┘
│ events / state │ commands (with player id)
┌──────────────┴───────────────────────────────────────▼─────────────────────────────┐
│ Unity.Rea.Hare.Core (noEngineReferences) │
│ ship flight, weapons and ammo, enemies and spawn pacing, rocks, levels, session │
│ state, settings registry, data loading and validation │
└────────────────────────────────────────────────────────────────────────────────────┘
Unity.Rea.Hare.Online → Runtime, Core, Unity.Multiplayer (U.HARE-T35: the online authority, the NetEntity
player, the kit's front end; compiled only with MindAttic Components installed)
Unity.Rea.Hare.Editor → Runtime, Core (ProjectSetup, HareArtImporter)
Unity.Rea.Hare.Editor.Online → Online, Editor (OnlineSceneBuilder: the online scene, prefab and prefab list)
Tests/Core.Tests → Core (NUnit, dotnet test, outside Unity)
Unity.Rea.Hare.Tests.EditMode → Runtime, Core (Unity Test Framework: the components)
Unity.Rea.Hare.Tests.PlayMode → Runtime, Core (scripted play, UH-T70)
Unity.Rea.Hare.Tests.Online → Online (PlayMode on Unity.Multiplayer's test kit: NetSessionTest, NetBotTest)
Unity.Rea.Hare.Tests.Online.EditMode → Online, Editor.Online (the online scene's wiring)
References only point down: Runtime → Core, Editor → Runtime/Core, tests → what they test. Core references nothing Unity.
5.2 Where it is today
UH-T37 made the split (466c012). UH-T39 moved the player and weapon rules into Core and UH-T40 the enemy rules and spawn pacing; what is left in Runtime is presentation.
| Assembly | Folder | Contents | Status |
|---|---|---|---|
Unity.Rea.Hare.Core
|
Assets/Unity.Rea.Hare/Core/
|
noEngineReferences: EnemyKind, EnemyList (generate_enemy_list); GameClock (the 120 steps/s and 100 px/unit conversions), PlayerId, Vec2/RoomBounds, IRandomSource/SeededRandom (every random draw); Enemies/ (EnemyWorld of EnemyBodys changed only by EnemyCommands that return EnemyEvents: DaggerEnemy, HydraEnemy, SawbladeEnemy, MeatballEnemy, PhalanxEnemy and its shield, WraithEnemy, MimicEnemy and its illusion, TrilobyteEnemy and EnemyMineBody, WormEnemy and its segments, the three insect bodies, EmitterBody/WormholeBody/WormholeEmitterBody the vortex and generator pacing, EnemyComposition, EnemyTable the per-enemy stats as data, GmlMath the ai_* helper scripts, Gibs); Player/ (PlayerWorld and PlayerShip, the PlayerCommands and PlayerEvents, ShipFlight the flight/energy/shield machine, ShipHealth HP, lives and the timers, FlightTuning/HealthTuning); Weapons/ (AmmoPools the four pools and regen alarms, GunRack the vulcan/shotgun/flamer/mine launcher firing rules, GroundLoadout/AirLoadout the weapon cycles, WeaponTable the fire intervals, cycles and damage as data, ShipLoadout the guns a ship is built with as validated data); Art/ (U.HARE-T46: GmlSpriteGeometry with GmlMaskKind and GmlBoundingBox, a GML sprite's origin as a pivot, its collision mask as an outline and its image_speed as a frame rate); Audio/ (U.HARE-T47: GmlSoundSettings, what a sound.gmx's kind, compressed/streamed flags, target type and preload become — mixer channel, load type, format, mono, preload — and MixerLevels, linear 0-1 volume to the mixer's decibels); Text/ (U.HARE-T48: GmlFontMetrics, a font.gmx glyph table in TextCore's terms — string_height("M") lines, each cell's top on the line's top, shift/offset as advance and bearing, string_width — and Pack, the gapped atlas repack); Session/ (U.HARE-T49: GameSession, globals.gml's session state — LIVES, COINS, SKILLPOINTS, KILLS, current_score and goal_score, difficulty, use_metric, master_volume, gamemode, the objective with its target, time elapsed and limit, current_scenario and current_level, level_complete and paused — owned by whoever holds the authority, never a global; changed only by SessionCommands (RestartGame is game_restart, ChooseQuickstart/ChooseCampaign/ChooseGenerator/SelectScenario the menus, BeginLevel a level script's objective block, TickSession obj_healthbar's second count and obj_game's objective check, AddScore, LoseLife, CollectCoin, SpendSkillPoint, RecordKill, DefeatTarget, CompleteLevel, AdvanceLevel, SetPaused, StepMasterVolume, ToggleUnits) that return a SessionResult of SessionEvents (ScoreChanged, LifeLost, ExtraLifeEarned, LevelCompleted, LevelAdvanced, TimeLimitWarning, SessionReset, ...); its starting values and rule numbers are the content registry's session section, SessionTuning, with LIVES read from health.StartingLives); Flow/ (U.HARE-T50: RoomFlow, the original's room flow — the current room, next_room and the room's RoomFade (obj_fade_game/_map/_story/_title/_upgrade's shared Create and Step: image_alpha 1 fading out by fadespeed 0.03 a step on entry, a button's mode = "fadein" going back to opaque, then once, executeOnce, room_goto(next_room) or, in a play room, current_level += 1; setup_level()) — owned by whoever holds the authority, changed only by FlowCommands (GoToRoom is room_goto, EnterRoom a room that came up outside the flow such as room_restart, FadeToRoom/StartFadeIn the buttons' fade-in with the optional obj_fade_title.mode == "off" check, PressEscape the controllers' Esc room_goto(room_title), PressFullscreen their F1 window_set_fullscreen(!window_get_fullscreen()), StepRoom one step at the room's room_speed) that return a FlowResult of FlowEvents (RoomChanged, RoomEntered, FadeInStarted, FullscreenToggled, LevelAdvanceRequested); RoomId/RoomList the nine rooms by GML name (room_boss1 is never entered, so it is not one), RoomTable the registry's rooms section: each room's size, room_speed, fade and which of Esc and F1 its controller answers); Popups/ (U.HARE-T27: FloatText/FloatTextField obj_float_text and the show_float_text scripts, TipBox obj_tip, AlertMarker obj_alert, PopupTuning the registry's popups section; V35); Online/ (U.HARE-T35: SharedWorld, the one world an online game's authority holds — every seat's ship in one PlayerWorld, where each ship is in the room, and the one fixed step that advances them all; PlayerFor/SeatOf map the kit's 0-based seat index to a PlayerId, seat 0 being P1 like local play's one ship, so a reconnecting player gets the same ship back; OnlineTuning, the registry's online section); Helper/ (U.HARE-T66: HelperField of HelperHawks, create_helper and obj_helper, changed only by HelperCommands (CallHelper, HoldHelperTurn, PressHelperFaster/PressHelperSlower, ToggleHelperSolo, DetonateHelper, SetHelperOwner, SetHelperView, SetHelpersPaused, TickHelpers) that return HelperEvents; HelperTuning, the registry's helper section; V43)
|
in place |
Unity.Rea.Hare.Runtime
|
Assets/Unity.Rea.Hare/Scripts/
|
Art/ (HareArtManifest, the generated map from every GML sprite and background name to its imported frames, clip, mask and atlas, loaded from Resources/Hare/HareArtManifest; U.HARE-T46), Audio/ (U.HARE-T47: HareAudioManifest, the generated map from every GML sound name to its clip, mixer channel and sound.gmx volume, with the AudioMixer and the original's credits, loaded from Resources/Hare/HareAudioManifest; HareAudio, which plays a GML sound by name through its channel's group, routes every AudioSource the game makes, and puts the profile's music/sfx volumes and mutes and the session master volume on the mixer; HareArt.Clip/Play now forward to it), Player/ (PlayerShipController, PlayerHealth, ShieldWall, PlayerDamageSource, PlayerShipBuilder which composes the armed ship from a ShipLoadout), Weapons/ (VulcanWeapon, Shotgun, Flamethrower, MineLauncher, AirWeaponLoadout, GroundWeaponLoadout, PlayerAmmo, Bullet, Rocket, LaserBeam, RailgunShot, Mine, the explosions, and Gml, the unit and step helpers in WeaponTargets.cs), Enemies/ (EnemyDirector the scene's authority over the enemy world and EnemyViews; the views EnemyBodyView/SetPieceEnemy with Dagger, the eight set pieces and their parts, EnemyMine, the insect views, Vortex/EnemyEmitter/Wormhole/WormholeEmitter, EnemySpawner, FadingDebris), Rocks/ (Rock, RockField, Flotsum), Effects/ (DeathEffects, GmlEffects, TinyExplosion, MuzzleFlash, OvalExplosion, DeathParticle, SpriteAnimation, HareArt), Settings/ (ActiveProfile, HareSettings; U.HARE-T43), Flow/ (U.HARE-T50: RoomFlowDirector, the one object that plays Core's RoomFlow: made by the Main.unity bootstrap and kept across room loads, it steps the room at its room_speed on real time (at most MaxStepsPerFrame steps a frame), sends the Meta map's Menu (Esc) and Fullscreen (F1) keys as commands, loads a room's scene by its GML name on RoomChanged, flips Screen.fullScreen on FullscreenToggled, draws the fade's opacity black on the room camera's ScreenOverlayLayer, reports a room scene that loads outside the flow (obj_player's death reloading it, or Play pressed on a room scene in the Editor) as EnterRoom, and raises LevelAdvance for the level setup, U.HARE-T57), Rendering/ (HareSortingLayers the back-to-front sorting layer plan, CameraRig/LetterboxCamera the 2D camera rig and its 1920x1080 reference-resolution letterboxing, ScreenOverlayLayer the room fade's layer (U.HARE-T50) and the flashbomb's (UH-T67); none of it references a render pipeline, U.HARE-T44), UI/ the UI foundation (U.HARE-T45) every HUD, menu, results, upgrade and story screen builds on: HarePanel builds the PanelSettings (ScaleWithScreenSize, MatchWidthOrHeight, HareTheme.tss — one line, @import url("unity-theme://default"), the same pattern Unity.GridGame's GaidenTheme.tss uses — so native controls keep their baseline chrome in a player build) and, inside its root VisualElement, a "stage" pinned to exactly the 1920x1080 reference resolution, entirely in code (no hand-authored PanelSettings asset); HareUiFit locks the panel's match axis to whichever one LetterboxCamera pillarboxes or letterboxes and re-centres the stage inside the spare logical room that produces, so the UI's 1920x1080 area always exactly covers the visible, non-letterboxed screen (an Opus review of this diff caught the first cut only scaling, not confining, the UI); Theme.uss (Resources/Hare/UI/Theme.uss) is the shared stylesheet; HareFonts resolves each of the eight draw_set_font faces to the bitmap FontAsset the font pipeline builds from GameMaker's own bake (U.HARE-T48, §6) and applies it at its native size; HareTextStyles names the text styles screens use (HudScore, HudText, HudAmmo, MenuTitle, MenuText, Typewriter, StoryTypewriter, Conversation, ConversationName, FloatText, Default), each a Theme.uss class in the face the original draws that text with; and HareUi is the widget kit: OutlineText/OutlineTextAlpha/OutlineTextColor/OutlineTextColorAlpha reproduce the draw_text_outline family exactly (a stacked Label per offset in the full (2*size+1)^2 square, each pinned to all four edges so it matches the box's own size instead of shrinking to its text — not a CSS shadow approximation), Button, Window, Dialog, and Bar/SetBar whose low/mid colour thresholds (a third, two thirds) and colours (c_red, c_yellow, and obj_energybar's own oddly-named c_lightgreen, rgb(168,157,4) in globals.gml) are reconstructed from obj_energybar's Draw event, not invented
|
references Core one way; the player and weapon scripts are thin views (PlayerSeat and SeatView send commands and play events) that still read input directly (UH-T42); the enemy views send ticks and weapon contacts to Core and play what comes back
|
Unity.Rea.Hare.Editor
|
Assets/Unity.Rea.Hare/Editor/
|
ProjectSetup (URP 2D assets, project settings, sorting layers, Main.unity), HareArtImporter (sprite pivots from sprites.txt, particle textures); Art/ the art pipeline (U.HARE-T46, §6): GmlArtData (reads and validates Art/gml-art.json), GmlArtImporter (texture import settings from it), GmlArtBuilder (animation clips, sprite atlases, the runtime HareArtManifest); Audio/ the audio pipeline (U.HARE-T47, §6): GmlAudioData (reads and validates Audio/gml-audio.json), GmlAudioImporter (clip import settings from it), GmlAudioBuilder (the AudioMixer, through the editor's internal AudioMixerController by reflection since Unity has no public mixer-authoring API, and the runtime HareAudioManifest); Fonts/ the font pipeline (U.HARE-T48, §6): GmlFontData (reads and validates Fonts/gml-fonts.json), GmlFontBuilder (one static bitmap FontAsset per GML font, its repacked atlas inside it)
|
in place |
Unity.Rea.Hare.Editor.Rendering
|
Assets/Unity.Rea.Hare/Editor/Rendering/
|
The URP seam (U.HARE-T44): UrpSeam (the only code in the project that references UnityEngine.Rendering.Universal — the 2D pipeline asset, URP's per-camera data, the global Light2D) and SortingLayerSetup (writes HareSortingLayers' order into ProjectSettings/TagManager.asset). Its own asmdef carries the URP package references so the restriction is enforced by the compiler: Unity.Rea.Hare.Editor and Unity.Rea.Hare.Runtime no longer reference the URP packages at all
|
in place |
Unity.Rea.Hare.Tests.EditMode
|
Assets/Unity.Rea.Hare/Tests/EditMode/
|
NUnit tests of the components: the glue of the player and weapon views (PlayerSeatTests, projectiles, the shield wall), enemies, rocks, effects; UI/ (U.HARE-T45): HarePanelTests, HareUiFitTests, HareFontsTests, HareUiTests (the widget kit, in particular OutlineText's layer count and colours against the GML algorithm); Art/GmlArtPipelineTests (U.HARE-T46: every sprite and background imported and in the manifest, pivots on the GML origins, clip timing, masks, atlas membership, background tiling; this assembly also references Unity.Rea.Hare.Editor for GmlArtData); Audio/GmlAudioPipelineTests (U.HARE-T47: all 75 sounds imported and named in the manifest, each clip's load type, format, rate and mono against its sound.gmx, the mixer's groups and exposed volumes, the moved weapon sounds' GUIDs, the credits); Fonts/GmlFontPipelineTests (U.HARE-T48: all eight fonts with their face, size and style, users and licences, no typeface file anywhere under Assets, every atlas cell byte for byte GameMaker's with clear gaps, each FontAsset a saved static bitmap font carrying exactly the GML glyph table, rebuilds byte-identical, every named style's Theme.uss rule in its face at its native size); UI/HareFontsTests now proves every face resolves and applies at its native size
|
in place; pure rule tests live in Tests/Core.Tests once their rules are in Core
|
Unity.Rea.Hare.Tests.PlayMode
|
Assets/Unity.Rea.Hare/Tests/PlayMode/
|
EnemyPlayTests: the enemy world under Unity's own physics loop (EnemyDirector's driver steps it once a FixedUpdate), proving a seed reproduces a run end to end, composition placement and per-enemy contact damage (UH-T40); PlayerShipPlayTests: the main scene's ship wakes armed and fires (UH-T77); HareUiPlayTests (U.HARE-T45): a PanelSettings/UIDocument built by HarePanel actually lays out a HareUi widget tree once Unity's UI Toolkit loop is running, not just in a detached EditMode tree; HareAudioPlayTests (U.HARE-T47): the live mixer takes the profile's music/sfx volumes and mutes and the session master volume, and a GML sound plays through the Sfx group; HareTextPlayTests (U.HARE-T48): every named style resolves to its face at its native size on a live panel, and, rendered to a texture with a graphics device (tools/unity.ps1 -Graphics), each face's glyphs match GameMaker's bake pixel for pixel with nothing bleeding in around them and a whole line's ink lands on draw_text's own pen positions; it writes Screenshots/fonts.png
|
more scripted play planned, UH-T70 |
Unity.Rea.Hare.Online
|
Assets/Unity.Rea.Hare/Online/
|
U.HARE-T35, on the shared Unity.Multiplayer kit: HareNetPlayer, the NetEntity player (the NetworkManager's Player Prefab, Resources/Hare/Online/HareNetPlayer.prefab) carrying its seat — its owner sends the same Input System actions local play reads as [ToServer] calls (Turn, Aim, PressBoost, PressBrake, ReleaseShield), which run on the server as the same Core commands PlayerShipController sends (SetTurn, SetAim, PressBoostKey, PressBrakeKey, ReleaseShieldKey), and every peer draws the [Synced] seat, position, heading, aim, energy and flight state; its name and colour come from the session's roster; HareAuthority, the one authority, on the server only (one per server session, so a test process can run a host and its clients side by side), which holds the session's SharedWorld, seats each player, frees a seat's ship once the kit releases the seat, steps the world once per FixedUpdate and writes each ship's state into its player; HareOnlineGame, the online scene's component, which adds Play solo (leaves for Main.unity with none of the kit left behind) and How to play to the kit's drop-in front end and sizes the session from the online section; HareBot, the [NetBotDriver] that turns and boosts through the same calls a player makes
|
compiles only when MindAttic Components is installed (MINDATTIC_COMPONENTS, as the kit's own front end does); flight only so far: weapons, health, rocks, enemies and the session follow the same path as they move under the authority
|
Unity.Rea.Hare.Editor.Online
|
Assets/Unity.Rea.Hare/Editor/Online/
|
OnlineSceneBuilder (Unity.Rea.Hare > Rebuild Online Scene, batch BuildAll): writes Scenes/Online.unity — the arena's camera and light (ProjectSetup.AddArenaCameraAndLight, shared with the main scene), the kit's NetworkManager with Unity Transport, NetBootstrap and NetFrontEnd (through the kit's own NetFrontEndSetup), HareNetPlayer as the Player Prefab and in Online/HareNetPrefabs.asset, and HareOnlineGame — second in Build Settings after Main.unity, and mp-host.json (the server scene and the smoke test's bots)
|
in place |
Unity.Rea.Hare.Tests.Online / .Online.EditMode
|
Assets/Unity.Rea.Hare/Tests/Online/
|
PlayMode on Unity.Multiplayer's test kit, over real Unity Transport on a free loopback port: HareNetPlayerTests (NetSessionTest, a host and a client: each ship carries its seat, only the server holds the world, a client's turn and boost run on the server's world and come back to its own client, its name and colour come from the roster, and a cheating client's oversized turn is clamped to the rules' turn rate), HareBotTests (NetBotTest: a dedicated server and two HareBots join by code through the in-process rendezvous service and fly), OnlineScenePlayTests (the generated scene hosts from its own NetBootstrap, seats and flies the host's ship, and Play solo lands in the local game with no NetworkManager left); EditMode OnlineSceneTests (the scene's kit components and Player Prefab, the local game first in Build Settings with no NetworkManager, the kit's prefab validator)
|
the test assemblies carry MINDATTIC_NGO_TESTABLE, committed in ProjectSettings.asset with NGO under testables
|
Tests/Core.Tests
|
Tests/Core.Tests/
|
dotnet test project compiling Core/**/*.cs directly (C# 9, as Unity builds it): EnemyListTests, the enemy rules (EnemyBasicsTests, EnemySetPieceTests, EnemySpawnerTests, driven by EnemyRig on a seeded random), and the player and weapon rules (PlayerAmmoTests, PlayerHealthTests, PlayerFlightTests, GunTests, LoadoutTests), GmlSpriteGeometryTests (U.HARE-T46), GmlSoundSettingsTests (U.HARE-T47), GmlFontMetricsTests (U.HARE-T48) SharedWorldTests (U.HARE-T35: seats and ids, spawn points, the one step, reseating and releasing, the key commands, the online section) and RoomFlowTests (U.HARE-T50: the rooms table, room_goto, the fades step by step, Esc and F1 per room, the rooms section)
|
in place; run by tools/run-core-tests.ps1
|
The Input System action asset (UH-T42), Unity.Shared profiles and settings (UH-T43) and the UI foundation (U.HARE-T45, Scripts/UI/) are in place, and so is the multiplayer kit (U.HARE-T35, §5.3). The pipeline-agnostic URP seam, sorting layers, 2D camera rig and 1920x1080 reference resolution are done (U.HARE-T44, §5.2 above); the room fade plays on its ScreenOverlayLayer (U.HARE-T50, obj_fade_* reverse-engineered into Core's RoomFade); the flashbomb's flash is its own FlashbombView at depth -1000 over the room (U.HARE-T67, V48). The UI foundation has no screen content of its own yet — no HUD, menu, results, upgrade or story screen reads from it — that is every one of UH-T59/UH-T61/UH-T62/UH-T63/UH-T64's own job; U.HARE-T45 only builds the PanelSettings, theme and widget kit they will build on, plus the draw_set_font face seam U.HARE-T48 fills with the original's eight fonts (as GameMaker's baked glyph atlases, not typeface files: §6) and their named text styles.
5.3 Commands, events and the one authority (player and weapons done in UH-T39; enemies UH-T40; authority UH-T35)
Today the player's rules are Core's: a PlayerWorld holds one PlayerShip per PlayerId (flight and energy, health and lives, the four ammo pools, the guns, the two weapon loadouts), and state changes only through PlayerCommands (Boost, Leap, TakeHit, FireGun, NextAirWeapon, TickAmmo and the rest, each carrying the player id), which return a CommandResult of whether it took effect and the PlayerEvents it raised (ShipLanded, PlayerDamaged, GunFired, AmmoReloaded, AirWeaponFired, ...). On the Unity side PlayerSeat sits on a ship and holds its world and id (local play seats one player in a world of its own; there is no global current player), and the views (PlayerShipController, PlayerHealth, PlayerAmmo, VulcanWeapon, Shotgun, Flamethrower, MineLauncher, the loadouts, all SeatViews) turn input into commands and play the events: they spawn a bullet when GunFired arrives, a shield wall on ShieldRaised, a sound on VulcanCue. Each view still advances its own part of the world from Update/FixedUpdate (TickAmmo, TickGun, StepFlight, ...) until the one-step authority below. The enemies are Core's too (UH-T40): an EnemyWorld holds every EnemyBody (the nine enemies and their parts, the mine), insect, vortex and wormhole emitter, and changes only through EnemyCommands (SpawnEnemy, TickEnemy, StrikeBullet, StrikeRocket, StrikeExplosion, StrikeBeam, StrikeShield, Separate, AddEmitter, AddWormholeEmitter, PlaceComposition, SetTarget for each seat's ship, HurtPlayer and the rest) that return an EnemyResult of whether it took effect and the EnemyEvents it raised (EnemySpawned, EnemyKilled, RoundFired, TinyExplosionRaised, DeathBurstRaised, DebrisRaised, VortexReleased, ...). Every random draw, the gib scatter included, comes from the world's IRandomSource, so EnemyDirector.Reset(seed) (or a SeededRandom in a Core test) reproduces a run. The enemies chase the nearest PlayerTarget, one per seat. The player and enemy hit rules meet in HurtPlayer: an enemy's contact, or an enemy round, hurts a ship through that ship's own TakeHit, and the seat plays the events. On the Unity side EnemyDirector owns the world, runs each view's commands and plays the events (it spawns rounds, effects, debris and the views of anything Core made); EnemyBodyView and its subclasses only turn ticks and weapon contacts into commands and show where Core says the body is. Rocks and projectiles still hold their own state and announce through C# events (GrenadeExplosion.Exploded). The GML global paused is the static Gml.Paused, passed into the enemy world before each command.
Weapon rhythm is data in WeaponTable: the vulcan's VulcanBaseRateSteps/VulcanMinRateSteps/ VulcanSpinUpDecrementSteps ramp, the other guns' and air weapons' fire intervals in steps, the ground and air cycles (GroundCycle, AirCycle) and per-round damage, so changing a rate or the cycle order is a one-line change there and Core tests cover it.
The ship's guns are data too (UH-T77): ShipLoadout lists each GunMount (gun and trigger), by default obj_player Create's (ground_weapon = weapon_vulcan at the head of Q's vulcan, laser, railgun, shotgun, flamer cycle, ground_weapon_secondary = weapon_shotgun, air_weapon_secondary = weapon_mine; the rocket and mine air primary is AirLoadout's), and refuses a loadout the original could not fire. PlayerShipBuilder composes the ship from it (controller, health, ammo, one component per gun, both loadouts), seated in a shared world when an authority passes one, and ProjectSetup saves that ship into Main.unity with the weapon sounds wired. Until the player switches, the ground slot holds the cycle's first gun whatever order the components woke in.
Online (U.HARE-T35) is built on the shared Unity.Multiplayer kit (with MindAttic Components for its menus), beside local play rather than in place of it. Main.unity is untouched and first in Build Settings, so a launch plays the local game exactly as before, with no NetworkManager in it. Online.unity, generated by OnlineSceneBuilder, holds the kit's NetworkManager, NetBootstrap and drop-in NetFrontEnd (Host, Join by IP, Join by code, the lobby with its join code and roster, reconnect to the same seat, the Esc menu), whose main menu also offers Play solo back to the local game. There the state has one authority: HareAuthority, on the server only, holds Core's SharedWorld (every seat's ship in one PlayerWorld and where it is) and steps it once per fixed step. Each player is a HareNetPlayer NetEntity carrying its seat (PlayerId = seat + 1, so P1 is seat 0 as in local play, and a reconnect within the kit's grace window flies the same ship); its owner's input travels as [ToServer] calls that the server runs as the very commands local play sends (PlayerShipController now sends PressBoostKey, PressBrakeKey and ReleaseShieldKey too, the GML key events it used to branch on itself), and presentation on every peer only draws the [Synced] state. Only flight is online so far; weapons, health, rocks, enemies and the GameSession follow the same path as they move under the one-step authority below. A dedicated server and bots run the same scene (mp-host.json, HareBot).
The target, as in Unity.SpaceGod and Unity.Chain:
- One world. The whole game state (session, ships, ammo, enemies, rocks, projectiles) is one Core world, held by one authority, and nothing else changes it.
- Commands in. Input becomes plain immutable commands carrying the player's id (turn, boost, brake, shield, aim, fire primary, fire secondary, switch weapon, leap, pause), so a networked player's NetEntity can carry them to the authority unchanged.
- One step. The authority alone steps the world on Unity's fixed step, in the original's per-step order (alarms, Step, collisions), so GML's per-step rules keep their order at any frame rate.
- Events out. Everything that happens is an event (fired, hit, killed, rock broken, ammo changed, weapon switched, spawned, paused); presentation draws, plays sound and spawns effects from them and never writes back.
- No current player. GML's
playerglobal becomes a seat; nothing looks up "the" player.
5.4 Units and time
The original runs room_gamescreen at 120 steps a second with 1 px = 1 unit. The rebuild keeps both, converted in one place (Gml in Scripts/Weapons/WeaponTargets.cs):
Gml.StepsPerSecond = 120;Gml.Steps(n)turns a step count into seconds. A per-step rate becomes a per-second rate (x 120); an alarm becomes a countdown in fractional steps advanced bydt x 120, so timers fire on the same step count the original used whatever the frame rate.Gml.PixelsPerUnit = 100;Gml.Px(n)turns GML pixels into world units. The sprites import at the same 100 PPU.- GML directions are degrees with 0 = +x and counter-clockwise positive (
Gml.Dir); GML y grows down, so GML y = 0 is the room rectangle's top (Gml.Room, 3840 x 2160 px centred on the origin).
6. Data files
The original has one: datafiles/credits.txt (sound credits, UH-T69). Everything else is code: the levels are GML scripts (level_01..level_10 on level_default, the composition, objective and setting scripts), tuning is object Create variables, and session state is globals.gml.
The rebuild today (U.HARE-T41) loads one validated data file, Resources/Hare/Content/GameContent.json, into Core's ContentRegistry (Assets/Unity.Rea.Hare/Core/Content/): a plain, dependency-free JSON reader (MiniJson) feeds a reflective binder (ContentBinder) that overlays the file's fields onto each section's compiled-in defaults (so a field the file omits, or a missing file entirely, keeps the original's own figure), then every section validates itself and every problem — not just the first — comes back in one ContentValidationException. ContentBootstrap (Runtime) loads the file before any scene's Awake runs and falls back to the compiled-in defaults, logging the full validation report, if it fails; GameContent.Current is what every rule reads instead of a literal. Two data files of its own stand alongside it: Resources/Hare/Sprites/sprites.txt (each sprite's GML origin, read by HareArtImporter) and the original's sprites and particle shapes under Resources/Hare/; its sounds are the audio pipeline's (below).
The art pipeline (U.HARE-T46) imports all of the original's art, repeatably, from HARE.gmx itself:
tools/import-gml-art.ps1readsHARE.project.gmx(the resource tree, so each sprite keeps its group), everysprites/*.sprite.gmxandbackground/*.background.gmx, and the objects and rooms for timing. It mirrors the frames intoAssets/Unity.Rea.Hare/Art/Sprites/<group>/<sprite>/<sprite>_<n>.pngand the backgrounds intoArt/Backgrounds/, copying only changed bytes and deleting what the original no longer has, and writesArt/gml-art.json: per sprite its origin, size,colkindmask, bounding box, tiling,image_speed(with the objects it came from), room speed, frames and the Unity assets it becomes; per background its size and tiling; and askippedlist of anything not imported and why (empty today). Rerunning it on the same source changes nothing. It then runsGmlArtBuilderheadless (-NoUnityskips that).GmlArtImporter(anAssetPostprocessorthat depends ongml-art.json) gives every frame its import settings: a single sprite at 100 PPU, pivot on the GML origin (GmlSpriteGeometry.Pivot), full-rect mesh, bilinear (HARE'soption_interpolate), uncompressed, no mipmaps; an alpha-traced physics shape only for precise masks (GameMaker also clips a precise test to the bounding box, which the manifest carries for the collider code to apply). Backgrounds become sprites pivoted top left (wheredraw_backgrounddraws from), repeating on each axis that tiles.GmlArtBuilder.BuildAll(menu Unity.Rea.Hare > Build Art From gml-art.json) writes a looping SpriteRenderer clip per animated sprite (Art/Animations/, each frame held1 / image_speedsteps at the sprite's room speed,GmlSpriteGeometry.FramesPerSecond), a Sprite Atlas V2 per group (Art/Atlases/Sprites_<group>.spriteatlasv2, packed for player builds; the seven sprites over 1024 px on a side keep their own textures), andResources/Hare/HareArtManifest.asset, the runtime map from every GML sprite and background name to its frames, clip, mask (GmlSpriteAsset.MaskOutline, in world units around the origin) and atlas.
image_speed is a per-instance variable in GameMaker, so the tool takes it from the Create event of each object whose sprite it is, and the room speed from the rooms those objects are reachable from (placed there, or named in code reachable from there). Reachability by name is coarse: when a sprite turns up in rooms of both speeds the clip uses the combat rooms' 120 and says so in the sprite's notes. The views still draw the older copies under Resources/Hare/Sprites through HareArt; moving them onto HareArtManifest is each view ticket's job.
The audio pipeline (U.HARE-T47) imports all of the original's sound, and its one data file, the same way:
tools/import-gml-audio.ps1readsHARE.project.gmx(the sound groupsmusic,player,vulcan) and everysound/*.sound.gmx, checks each file undersound/audioby its content (the WAV header's format, channels, rate and length), mirrors the clips intoAssets/Unity.Rea.Hare/Audio/Sounds/<group>/<sound>.<ext>anddatafiles/credits.txtintoAudio/credits.txt, and writesAudio/gml-audio.json(every sound.gmx field, the source facts, the clip, and askippedlist: only the two album-art JPEGs). Rerunning it changes nothing; it then runsGmlAudioBuilderheadless (-NoUnityskips that). The six weapon WAVs that were hand-copied before were moved into it with their.meta, soMain.unity's references to them still hold; theResources/Hare/Audiocopies ofsfx_deathandsfx_explodeare gone (HareArt.Clipreads the manifest).GmlAudioImporter(anAssetPostprocessorthat depends ongml-audio.json) applies Core'sGmlSoundSettings: the six streamed, compressedmusic_*stream as Vorbis (quality 0.7,vorbisQualityin the data file, Unity's nearest to GameMaker's 192 kbps); the uncompressedsfx_*are PCM decompressed on load, the latency and quality GameMaker gave them; every clip is resampled to GameMaker's 44.1 kHz export rate, preloaded (GameMaker's preload box) and 2D; GameMaker's mono target forcessfx_hurt8andsfx_vulcan_spindownto mono.GmlAudioBuilder.BuildAll(menu Unity.Rea.Hare > Build Audio From gml-audio.json) buildsAudio/HareMixer.mixer(Master, with Music and Sfx under it; the three group volumes exposed asMasterVolume,MusicVolume,SfxVolume), only adding what is missing to an existing one, and writesResources/Hare/HareAudioManifest.asset: every GML sound name to its clip, channel and sound.gmx volume and pan, plus the mixer, its two groups and the creditsTextAsset.
At run time HareAudio plays a sound by GML name through its channel's group and puts the volumes on the mixer (MixerLevels.ToDecibels, 20 log10 of the 0-1 volume, silence at -80 dB): Music and Sfx from the profile's MusicVolume/MuteMusic and SfxVolume/MuteSfx (applied on the first frame; call HareAudio.ApplyProfile again after the options change them), Master from the session's HareAudio.MasterVolume, the original's master_volume. Music is obj_jukebox's (U.HARE-T29, D33): each play room's Jukebox asks for a track whenever HareAudio.IsMusicPlaying is false, the session's PlayRandomMusic rolls it from session.Tracks, and HareAudio.PlayMusic plays it once on the persistent host's Music source.
The font pipeline (U.HARE-T48) imports the original's eight fonts the same way, as what the game actually shipped: GameMaker never ships a typeface, it rasterises each font resource once into a glyph atlas (fonts/<name>.png, white glyphs on transparency) and a glyph table (fonts/<name>.font.gmx: each character's cell, its shift advance and offset bearing), and draws text from those.
tools/import-gml-fonts.ps1readsHARE.project.gmx(which fonts are in the resource tree), everyfonts/*.font.gmxand every object and script for itsdraw_set_fontcalls (outside comments), mirrors the atlases intoAssets/Unity.Rea.Hare/Fonts/Atlases/<name>.png, and writesFonts/gml-fonts.json: per font its face, size, bold/italic, charset, anti-aliasing, ranges, glyphs, kerning, atlas, the objects that draw with it and notes; the licence of each typeface; and askippedlist (empty). Rerunning it changes nothing; it then runsGmlFontBuilderheadless (-NoUnityskips that).GmlFontBuilder.BuildAll(menu Unity.Rea.Hare > Build Fonts From gml-fonts.json) buildsResources/Hare/Fonts/<name>.asset, one static bitmap (SMOOTH, not SDF) FontAsset per font. Its glyph table is the font.gmx's (GmlFontMetrics): the face's point size is the font.gmx size, so a style at thatfont-sizedraws 1:1; each cell's top sits on the line's top, asdraw_textdraws it; the baseline is the bottom of theMcell, so lines arestring_height("M")apart. Its atlas, stored inside the asset, holds every cell byte for byte as GameMaker baked it, repacked with 16 px of clear space around each (GmlFontMetrics.Pack, V17). A rebuild rewrites the asset in place, byte-identical for the same data.
| Font | Face (font.gmx) | Drawn by | Named styles |
|---|---|---|---|
fnt_point
|
Berlin Sans FB 12 | 40 objects: the HUD's small text, every menu, dialog and level button, the in-game typewriter, conversation names, floating text, tips, labels, results rows | HudText, MenuText, Typewriter, ConversationName, FloatText; .hare-root's default
|
fnt_score
|
Berlin Sans FB 36 | obj_game (score), obj_healthbar (lives), obj_speedometer, the title buttons, the yes/no dialogs, obj_level_results, obj_levelstart, obj_upgrade, obj_conversation (speech)
|
HudScore, MenuTitle, Conversation; window titles and button captions
|
fnt_medium
|
Berlin Sans FB 16 | obj_typewriter_story
|
StoryTypewriter
|
fnt_small
|
Berlin Sans FB 11 | obj_weapon_gui (ammo)
|
HudAmmo
|
fnt_basic
|
Arial 12 | nothing (GameMaker's own default face) | Default, text drawn before any draw_set_font
|
font4, font7, font8
|
Arial 12 | nothing; byte-identical bakes of fnt_basic, and font4 is not even in HARE.project.gmx
|
none; imported so every face name resolves |
No font is bold or italic; all are anti-aliased (aa 3), characters 32-127, with no kerning pairs.
Licences. Arial (Monotype, shipped with Windows) and Berlin Sans FB (The Font Bureau, shipped with Microsoft Office) are proprietary: their licences cover use on the machine they came with, not redistributing the font files. So the rebuild ships no typeface file at all (GmlFontPipelineTests fails if a .ttf/.otf appears under Assets), only GameMaker's rasterised glyphs of them, exactly what the original game distributed. Whether shipping those rasterisations publicly is fine is U.HARE-T69's licence pass to confirm; if it is not, the faces are swapped for open ones there, and every screen follows through HareTextStyles with no change of its own.
| Data | Holds | Original source | Status |
|---|---|---|---|
| ship | flight, brake and boost speeds, turn rates, energy, shield, leap tolerance, health and hurt timing | obj_player Create, player_*
|
done |
| weapons and ammo | each weapon's rate, speed, spread, reach, damage, muzzle geometry; the four ammo pools' max, cost, regen | shoot_*, fire_*, set_ammo_cost, obj_player Create
|
done |
| enemies, generator | per kind: points, death effect size, bbox, push, difficulty points, emitter/wormhole scale | obj_* Create and collision events, create_wormhole, generate_enemy_list
|
partial — each kind's own movement speeds, alarms and hit rules are still literals in its *Enemy/*Body class, not yet in EnemyCatalog
|
| emitter/wormhole timings | par_enemy_emitter's alarms and default wait range; obj_wormhole/obj_wormhole_emitter's one_tick, opening fraction and re-arm ranges
|
EmitterBody, WormholeBody, WormholeEmitterBody
|
done |
| rocks | sprites, speeds, spin, spin_max, heal and spin-wound rates, hit darkening and pushes, flotsam
|
par_rock, create_new_rock, rock_destroyed, obj_flotsum
|
still [SerializeField]/const on the components
|
| levels | room, rock counts and stationary share, enemy min/max per kind, objective, time limit, setting | level_01..level_10, level_default, level_enemygenerator, level_composition_*, level_objective_*, level_setting_*
|
done: the arena section's LevelSettings (Levels, DefaultLevel, GeneratorLevel) and load_level's SettingParts/ObjectiveParts/CompositionParts (U.HARE-T20, V27); the scenario-to-level mapping is the story section's Scenarios (load_scenario, U.HARE-T28), which setup_level runs from U.HARE-T64
|
| rooms | each room's size, room_speed, which obj_fade_* it has and whether its controller answers Esc and F1; fadespeed, the first room, Esc's room, next_room's starting value, and the rebuild's per-frame step limit
|
the .room.gmx files, obj_fade_* Create, obj_title/obj_game/obj_map/obj_story/obj_intro key events, globals.gml
|
done (RoomTable, U.HARE-T50)
|
| title | the title's buttons (object, caption, face and offset, hover message, place, mask, sound, what a press does: room, fade check, game mode, level, difficulty, or the dialog it opens), obj_yesno_dialog (box, alpha, margin, text sizes, Yes and No), obj_logo's caption fade speed, the hover sound and colours | obj_title, obj_logo Create and Step, obj_btn_campaign/_quickstart/_quit/_level01..08/_diff0/_diff100/_yes/_no, obj_yesno_dialog, their sprites' boxes
|
done (TitleTuning, U.HARE-T26, V39)
|
| HUD | obj_healthbar's, obj_weapon_gui's, obj_energybar's and obj_speedometer's positions, sprites, icons, colours and speed factors | those objects' Create and Draw GUI, next_ground_weapon, next_air_weapon, globals.gml's c_lightgreen
|
done: the arena section's Hud (U.HARE-T25, V32)
|
| text | story, conversation, tips, credits | obj_story, obj_conversation, obj_tip, credits.txt
|
done for the story and conversation: the dialogue section's lines (story.NN, conversation.map.NN, joined in order by DialogueCatalog.Script; U.HARE-T28, V41); the tips are the popups section's, the credits the audio pipeline's
|
| story | obj_typewriter_story's place, speeds, pause and silent characters and sound; obj_scroll_world's sprite, scroll and turn; the story's way out; obj_conversation's box, frame, margins, slides, sounds and typing; obj_typewriter; load_scenario's scenario-to-level table | obj_story, obj_typewriter_story, obj_scroll_world, obj_conversation, next_line, obj_typewriter, load_scenario
|
done (StoryTuning, U.HARE-T28, V41)
|
| upgrades | garage/upgrade screen's SKILLPOINTS costs | obj_upgrade_*, the schematics
|
schema only (UpgradeCatalog), empty until U.HARE-T24
|
Player options (U.HARE-T43) live in a Unity.Shared profile, the same way across every MindAttic game: Profiles.Current.Settings.Common (display name, colour, music/SFX volume, mutes, reduce motion) and Hare's own game block, typed by HareSettings (difficulty, useMetric, fullscreen — the original's globals difficulty, use_metric, and since U.HARE-T60 masterVolume, the original's master_volume). The persisted volumes are Unity.Shared's shared music/SFX volumes, on the mixer's Music and Sfx groups, and Hare's masterVolume on the mixer's Master group over both (HareAudio.MasterVolume, U.HARE-T47), which obj_game's keypad +/- move and which a new session starts from (SessionSettings.Seed, V37). While Unity.Shared's session mute (Profiles.SessionMuted, the CLI's -muted, tools/play.ps1's default) is on, every mixer group is silent, and the keys still move and save only the player's own stored masterVolume: the mute's forced 0 volumes and mutes are never written to settings.json. Scripts/Settings/ActiveProfile.cs reaches the current profile; Unity.Shared's own ProfilesBootstrap roots the store at Application.persistentDataPath before the first scene loads. The campaign is saved (U.HARE-T65, V50) to campaign.json under ActiveProfile.SavesFolder (the profile's Saves/ folder): Core's versioned CampaignProgress document, written by Scripts/Settings/CampaignStore.cs to a .tmp file that then replaces the old one, with an unreadable file moved aside to campaign.json.bad.
7. Fixed defects
Places where the original's code is plainly broken. The rebuild plays the way the game was clearly meant to. Status: fixed (on main), planned (the ticket that fixes it).
| # | Defect in the original | Where | What the rebuild does | Status |
|---|---|---|---|---|
| D1 | A near-zero spin roll zeroes the caller's spin, not the new rock's, so the "no barely-spinning rocks" rule never applies
|
create_new_rock, setup_level
|
zeroes the rock's own spin within 0.03 (Rock)
|
fixed (UH-T17) |
| D2 | A negative spin wound flips sign every quarter second: Alarm 1's negative branch tests spin < -original_spin and does spin *= -0.96
|
par_rock Alarm 1
|
a negative spin slows by 0.96 like a positive one | fixed (UH-T17) |
| D3 | A bullet or rocket push on a negatively spinning rock snaps its spin to -spin_max at once
|
add_spin
|
the negative branch mirrors the positive one, adding up to spin_max
|
fixed (UH-T17) |
| D4 | Replacement rocks leave the room and thin the field: create_new_rock sets the speed sign for its side, then a random heading over it, so half the new rocks fly straight out and the still ones park outside the room for good
|
create_new_rock
|
a new rock heads into the room at 0.1-1.5 px/step (RockField)
|
fixed (UH-T17) |
| D5 | Flotsam freezes after a pause: obj_flotsum stores Speed = speed every step but never restores it, so after the first pause every shard stops for good
|
obj_flotsum Step
|
flotsam stops while paused and drifts on after (Flotsum)
|
fixed (UH-T17) |
| D6 | setup_level calls instance_create(obj_wormhole_emitter, 0, 0) and create_wormhole instance_create(obj_wormhole, 0, 0) with the arguments swapped
|
setup_level, create_wormhole
|
creates the emitter and each wormhole properly | fixed (UH-T15) |
| D7 | create_wormhole sizes its placement margin with the caller's undefined scale
|
create_wormhole
|
uses the wormhole's own scale (Wormhole.Create)
|
fixed (UH-T15) |
| D8 | The generator's globals enemy_count and current_enemy are never reset, so a later generator run would carry on from where the last one stopped
|
generate_enemy_list, obj_wormhole_emitter
|
the list and its cursor belong to each emitter (WormholeEmitter, EnemyList)
|
fixed (UH-T15) |
| D9 | sfx_whoosh.wav is an MP3 under a .wav name (an ID3 tag, then 320 kbps MPEG-1 Layer III frames); no code plays it
|
sound/audio
|
imported by its content as sfx_whoosh.mp3, kept compressed in memory rather than inflated to PCM (GmlSoundSettings' already-compressed source rule); still played by nothing, as in the original
|
fixed (U.HARE-T47) |
| D10 | set_time_limit_string writes the ", " separator whenever there are whole minutes, so a limit of whole minutes reads "Survive 1 minute, "
|
set_time_limit_string
|
writes the separator only between minutes and seconds ("Survive 1 minute"; GameSession.DescribeTimeLimit); every shipped limit is 90 s, which reads "1 minute, 30 seconds" either way
|
fixed (U.HARE-T49) |
| D11 | KILLS is declared, reset and shown on obj_level_results, but nothing ever increments it, so the results screen always reads 0 kills
|
globals.gml, obj_level_results
|
the session counts kills (RecordKill raises KillsChanged): every whole enemy (not a worm segment, phalanx shield, mimic illusion or enemy mine) the ship's weapons destroy, its own bullets (the rounds that score), rockets and their blasts, the shield wall, the laser, the railgun and the flamer (EnemyKill.CountsAsKill); EnemyDirector.Killed reports each death and the play room (ArenaRoom) sends RecordKill, so obj_level_results reads the real count
|
fixed (U.HARE-T49 in Core, wired U.HARE-T22) |
| D12 | fling_player has no state check and player_hurt's death leaves current_rock set, so a dead ship whose rock broke or drifted out was flung back into flight
|
fling_player, rock_destroyed, par_rock Step
|
death lets go of the rock and Fling is refused while dead (ShipFlight.Fling)
|
fixed (U.HARE-T53) |
| D13 | Space and Shift raised the shield while perched: the first port bound Space to boost and boost's key raises the shield on the ground, but in the original Space is the crouch-and-leap key (press: crouch perched, boost in flight; release: player_leap) and only W and S shield
|
obj_player key events 32/87/83
|
Space is the Leap action with the right mouse button: crouch or boost/brake on the press, player_leap on the release; W and S still shield
|
fixed (U.HARE-T53) |
| D14 | LIVES can go below zero: the out-of-bounds rule spends the last life and reset_player flies the ship back in with LIVES = 0, and dying then does LIVES -= 1 unchecked, so obj_healthbar reads "x -1" for the 320-step death wait before game_restart
|
player_hurt, obj_player Step
|
a spent life never takes LIVES below 0 (ILivesLedger.Spend, the session's SpendLife); the death wait still ends in game_restart because no life is left
|
fixed (U.HARE-T54) |
| D15 | par_structure_cover's Step (x = parent.x; y = parent.y) is commented out, so when random_positions scatters the structures (a wrap with randomize_on_loop) every cover stays where it was: the bare grey silhouette shows in one place and the detailed art hangs over empty sky in another
|
par_structure_cover Step, random_positions
|
the cover follows its structure every frame and on a move (StructureCover.Follow, Structure.MoveTo)
|
fixed (U.HARE-T56) |
| D16 | obj_snow's dY = irandom_range(0.5, 2): GameMaker truncates the bounds, so a third of the flakes roll 0, never fall and pile up above the room for as long as it runs (one more every step of snow)
|
obj_snow Create
|
a 0 roll falls at 0.5 px a step, the least the script asks for (WeatherTuning.SnowZeroFall); 1 and 2 are unchanged
|
fixed (U.HARE-T18) |
| D17 | obj_sand is destroyed only below the room, but dY = irandom_range(-1, 6) can roll -1 (only 0 is caught), so one grain in eight rises off to the right for ever, two more made every step of sand
|
obj_sand Step
|
a grain is also gone once it is past the room's right edge (x > room_width + sprite_width), where no view can see it
|
fixed (U.HARE-T18) |
| D18 | obj_fog's Draw event is //draw_self();, so its 32 banks move along the bottom quarter of the room and are never seen: fog that cannot be seen
|
obj_fog Draw
|
the banks are drawn (spr_cloud1..4 at their image_alpha 0.3, depth -1, WeatherView); the emitters' own commented-out draw_self stays off, since an emitter is meant to be invisible
|
fixed (U.HARE-T18) |
| D19 | room_sidescroll and room_shaft place an obj_player at 1362,1098 after their obj_game. GameMaker runs each instance's Create as the room makes it, so obj_game's Create runs setup_level (whose with(obj_player) instance_destroy() finds nothing yet, then player = instance_create(...) and reset_player) before the room's own obj_player exists: both stage rooms start with two rabbits, the room's one standing at 1362,1098 with its own HP and inputs, never reset, never counted by player, and both views following whichever GameMaker finds first. room_gamescreen places none, and every other path (setup_level's clear on a level advance) means one
|
room_sidescroll, room_shaft instances
|
one ship per play room, flown in by setup_level's reset_player (ArenaRoom.Begin); the leftover instance is not placed
|
fixed (U.HARE-T21) |
| D20 | obj_surface_reflection's splash is placed lengthdir_x(32, image_angle) along the reflection's own image_angle, which its Create copies from the ship once and only its A/D key events turn after; every respawn (270 +- 30), every skim off the water (0 or 180) and every spin leaves it pointing somewhere else, so the splash lands 32 px to the wrong side of the ship
|
obj_surface_reflection Create, Alarm 0, key events 65/68
|
the splash is 32 px along the ship's own image_angle, which is what the copy was clearly meant to track (StepReflection)
|
fixed (U.HARE-T58) |
| D21 | Enter on obj_level_results sets player.state = state_leave whatever the ship is doing, but a ship that died as the level completed (a time limit running out during its death wait) still has alarm_death_wait set, and its reset_player puts it back to state_moving above the room: it never leaves, level_complete stays true and no panel comes back, so the game can go no further
|
obj_level_results Enter, obj_player Alarm 4, reset_player
|
a ship sent off while dead leaves with the rest: its death wait ends there (ShipHealth.MakeInvulnerableToLeave), so it flies off the top and the next level is set up
|
fixed (U.HARE-T22) |
| D22 | A projectile's alarm that comes due while paused is lost: GameMaker counts alarms down while paused, but obj_rocket's Alarm 0 (ignite) and obj_mine's Alarm 0 (arm) and Alarm 1 (the 8-10 s fuse) do all their work inside if(!paused) and are never set again, so a rocket fired just before P never ignites and sits frozen at its muzzle for good, and a mine dropped then never arms or never goes off on its own
|
obj_rocket Alarm 0, obj_mine Alarms 0 and 1
|
a paused rocket or mine stops its own clock along with its movement, so it ignites, arms and times out the same number of unpaused steps after it was made (Rocket.Tick, Mine.Tick)
|
fixed (U.HARE-T60) |
| D23 | Every key press on the title (and every step the left button is held) brings in another menu: obj_title's events set obj_stand_title.phase = "on" again, and obj_stand_title, already risen, at once makes a second obj_logo, whose Create makes a second full set of buttons (and puts the captions back to alpha 0). From then on every caption is drawn twice and one click runs two buttons' pressed events (two sfx_roit, two quit dialogs' checks, two fades), and pressing Esc to close the quit dialog stacks another set
|
obj_title key and mouse events, obj_stand_title Step, obj_logo Create
|
the menu comes up once: a second call is refused (TitleScreen.CallMenu/ShowMenu), and so is a call while the rabbit is already rising (which in the original only set phase = "on" again)
|
fixed (U.HARE-T26, U.HARE-T62) |
| D24 | current_scenario is a global that room_map never clears on entry: a mission reached on the map, then left for the garage (obj_btn_upgrade) and come back to, is still "chosen" when the map comes up again with the earth back at angle 0 and no marker under obj_destination, so any key launches it with no mission shown
|
obj_map key press (any key), obj_destination Create (only last_scenario = -1)
|
entering the map clears the scenario (MapScreen.Create raises MapScenarioSelected -1 for the session), so a launch needs a marker reached on this visit
|
fixed (U.HARE-T19) |
| D25 | player_leap and fling_player take the shield down (shielding = false; with(obj_shieldwall) instance_destroy()) but never touch obj_energybar, whose mode the shield had set to "drain"; the W/S release that would set "fill" only acts while state_idle, so a ship that leaps or is flung from behind its shield flies off with the bar emptying for nothing, 60 a second, until it next lands, and within a second or so has too little left to boost or brake on that flight
|
player_leap, fling_player, obj_player KeyRelease 87/83, obj_energybar Alarm 0
|
a leap or fling that ends the shield ends its drain too: the bar starts to fill, as the key's release does while perched (ShipFlight.EndShieldDrain); a boost or brake still running keeps its drain
|
fixed (U.HARE-T89) |
| D26 | obj_flashbomb's Step sweeps with(par_enemy) { if(in_view(x,y)) if(collision_circle(player.x, player.y, obj_flashbomb.radius, par_enemy, true, false)) { instance_create(x, y, obj_rocket_explosion); instance_destroy() } } (and the same for par_projectile with obj_tinyexplosion): the circle test asks whether any enemy touches the circle round the ship, not the one the with is on, so the first enemy the ring reaches blows up every enemy in view at once, and likewise every shot; obj_flashbomb.radius is the first bomb's radius whichever bomb runs it, so a second bomb set off while one is out sweeps with the first one's ring
|
obj_flashbomb Step
|
each enemy and each shot in view goes when the bomb's own ring reaches its own mask (FlashbombSweep.Sweep, Physics2D overlap of the ring round the ship), so the blast spreads out from the ship as its drawn circles do
|
fixed (U.HARE-T67) |
| D27 | room_upgrade's garage does nothing lasting: SKILLPOINTS = 5 in globals.gml and nothing ever adds a point; a pip's left press (if(SKILLPOINTS > 0) { SKILLPOINTS -= 1; sprite_index = spr_upgrade_circle_filled; //Write to Ini here }) is never saved and is gone when the room is left (the pips come back empty, the points stay spent); a filled pip pressed again spends another point for nothing; no code anywhere reads a pip, so a purchase changes no weapon; the three Reload pips carry the Spread pips' copied message ("Decrease Shotgun's spread by 5%")
|
globals.gml, obj_upgrade_vulcan1/obj_upgrade_shotgun1/obj_upgrade_missle1 Create and left pressed
|
the garage works as it was meant to (V49): every pip bought is saved at once in the campaign save (CampaignProgress version 2, campaign.json) and drawn filled from then on; a filled pip is not bought again; SKILLPOINTS are the starting 5 plus one for each map mission's first win, less the pips bought; each row's pips change the ship's weapons; the Reload pips say "Decrease Shotgun's reload time by 5%"
|
fixed (U.HARE-T24) |
| D28 | Scrap Mental's defeat lets its hull go with with(obj_shrapnel_piece) { mode = "float"; } and nothing more: an attached piece's speed is its Create's Speed = 1 and its direction the default 0, so all 36 plates slide off to the right together at 1 px a step instead of bursting outward like a piece shot loose (whose Alarm 1 sets direction = image_angle; speed = irandom_range(8, 12))
|
obj_scrapmental Collision obj_bullet and obj_rocket (the kill branch), obj_shrapnel_piece Create and Alarm 1
|
every piece still on the boss flies off as Alarm 1 sends a loose one: along its own image_angle at 8-12 px a step (ShrapnelPieceBody.Fly), without the 20 points
|
fixed (U.HARE-T68) |
| D29 | The shrapnel family only handles a boss that is defeated: when obj_scrapmental is gone some other way (a beam's or flashbomb's instance_destroy), an attached piece goes "float" at 1 px a step to the right (D28), a grabbed piece (instance_exists(parent) && instance_exists(harpoon) false) and a harpoon (whose Step only acts if(instance_exists(parent))) hang where they are for good, the harpoon an invisible par_enemy still hurting the ship, and obj_shrapnel_back, whose fade only the kill branch starts, rides on nothing
|
obj_shrapnel_piece Step, obj_shrapnel_harpoon Step and Draw, obj_shrapnel_back
|
a boss gone any way is treated as defeated: attached and grabbed pieces fly off (ShrapnelPieceBody.Fly), a grabbed piece whose harpoon is gone does too, harpoons burst in a tiny explosion, and the back plate fades out on its own (Scrapmental.OnKilled)
|
fixed (U.HARE-T68) |
| D30 | The defeated boss stays a live par_enemy for its 10 s death_delay: undrawn (if(alive) in Draw), its Step still chases the ship at 1 px a step and touching it still hurts, beams and flashbombs can still take it, and its obj_rocket event (unlike the bullet one) has no && alive, so a rocket into the empty spot defeats it again for another 500 points, 24 more pickups and a second explosion
|
obj_scrapmental Step, Collision obj_rocket, par_enemy collisions
|
once defeated it is inert (ScrapmentalEnemy.IsParEnemy false, its Step and rocket event do nothing, Scrapmental turns its colliders off) and only waits out alarm[4], whose instance_destroy completes o_defeat as in the original
|
fixed (U.HARE-T68) |
| D31 | A floating shrapnel piece is destroyed off the room's left, right and top edges, but the bottom test is y > room_width + sprite_height: room_width, not room_height, so a piece flying downward goes on far below the room as a live par_enemy
|
obj_shrapnel_piece Step
|
the bottom test uses room_height (ShrapnelPieceBody.StepEvent)
|
fixed (U.HARE-T68) |
| D32 | obj_shrapnel_harpoon's Alarm 0 does its work inside if(!paused) and is never set again, so an arm whose alarm comes due while paused never fires for the rest of the fight; and a harpoon keeps its built-in speed = Speed = 8 through "reel" and "rotate" (only the Step's own x/y placement hides it), so while reeling and rotating it is pushed 8 px off the point its Step puts it on, away from the line drawn to the boss
|
obj_shrapnel_harpoon Alarm 0, Step
|
a paused arm's alarm is held until play resumes (ShrapnelHarpoonBody.Alarms), and reeling or rotating it has no speed of its own, so it sits exactly where the Step places it (ShrapnelHarpoonBody.Reel)
|
fixed (U.HARE-T68) |
| D33 | The music never plays: setup_level makes an obj_jukebox whose Step runs play_random_music, but its if(!audio_is_playing(0)) asks about sound index 0 (sfx_whoosh, which nothing plays), so it rerolls current_track and track_name every step, and its audio_play_sound(current_track, 1, 0) is commented out (as are obj_game's and setup_level's own calls), so all six imported tracks ship switched off
|
play_random_music, obj_jukebox, setup_level
|
the jukebox (Jukebox, made by ArenaRoom.Begin, setup_level) asks whether the music is playing (HareAudio.IsMusicPlaying); when it is not, the session's PlayRandomMusic rolls irandom_range(1, 5) over the five tracks in the original's order (session.Tracks: Pinball Spring, In a Heartbeat, Latin Industries, Presenterator, Wallpaper; music_overcast is in no branch and stays unused) into CurrentTrack/TrackName (the F12 overlay's "Current Track"), and HareAudio.PlayMusic plays it once, not looped, through the Music group at its sound.gmx volume 1; when it ends the next roll picks again (a repeat allowed, as irandom_range allows)
|
fixed, U.HARE-T29 |
| D34 | Enemy rounds hit other enemies: obj_hydra, obj_meatball, obj_worm and Scrap Mental fire obj_bullet with bullet.owner = ID, and every enemy's Collision obj_bullet guards only if(other.owner != ID) (par_enemy_emitter, obj_wormhole and setup_level give each enemy ID = its own id), so it ignores only the rounds it fired itself; another enemy's round runs the full handler (destroys the bullet, costs a hydra a turret, drains a meatball, kills a sawblade or dagger with its pickup and effects) and scores only when other.owner == player.id
|
obj_hydra, obj_sawblade, obj_dagger, obj_meatball, obj_phalanx, obj_mimic, obj_trilobyte, obj_scrapmental Collision obj_bullet
|
BulletShot carries the firing enemy's id (ShooterId, set from Bullet.ShooterId, which EnemyRounds.Spawn fills from RoundFired.SourceId); EnemyBody.IgnoresRound skips only the body's own rounds, and only FromPlayer scores
|
fixed (U.HARE-T91) |
Not restored, on purpose:
obj_fly'simage_index = choose(spr_fly, spr_fly2)sets a frame index on a one-frame sprite, sospr_fly2never shows. The fly is ambient and the second sprite is a variant, not a missing feature; the rebuild showsspr_flyas the original does (Fly). Owner's call if it should alternate.obj_tinyexplosion's commented-out sound: see V2.- Content nothing reaches (
room_boss1,obj_ring, the unplaced insect and weather emitters (the weather ones ported and selectable per level as data, V26, but no shipped level names them),obj_oval_explosion,obj_moon_surface(ported, created by nothing, V30),load_leveland its six parts (ported as data, V27)): recorded in RECONSTRUCTION; restoring them would mean inventing where they go.
8. Deliberate deviations
Working behaviour of the original the rebuild does differently, and why. Status: kept (the deviation stays), to settle (a ticket brings it back in line or decides), temporary (an intermediate step until the ticket), matches (a difference an earlier port step had, now back in line; kept as a record).
| # | Original | Rebuild | Why | Status |
|---|---|---|---|---|
| V1 | Every rate is per step at 120 steps/s (60 in the menu rooms), and the game slows down when a step overruns | per-second rates and fractional-step alarms on Unity's clock (Gml.StepsPerSecond, Gml.Steps, §5.4)
|
frame-rate independence; at full speed every figure lands on the same step count as the original | kept |
| V2 | obj_tinyexplosion's audio_play_sound(sfx_bullet_explosion) is commented out
|
kept silent (TinyExplosion)
|
the rule fixes sound that ships switched off, but this one was muted on purpose: it would play on every bullet impact, a mix choice, not a defect | kept |
| V3 | 1 px = 1 GML unit | 100 px = 1 world unit (Gml.PixelsPerUnit), sprites imported at 100 PPU
|
Unity's default sprite scale; physics and cameras work in world units | kept |
| V4 | obj_player's speeds in px a step at 120 steps/s: flight_speed = 5 (and reset_player's speed = 5), brake_speed = 2.5, boost and brake easing by speed -= 0.05 a step, player_boost's player.speed = player.speed * 2 (the current speed, a take-off's rock speed and spin included), and the player's projectiles shoot_vulcan bullet.speed = 8, shoot_shotgun velocity = 12, shoot_flamer flame.speed = 4; plus obj_energybar: Create currentValue = maxValue = 100, mode = "idle", rate = 4; Alarm 0 every rate steps (re-armed whatever the mode, acting only if(!paused)) does "fill" +1 until maxValue then "idle", "drain" -1 (if above 0) then -1 again, its Step holding the bar in 0..100 (skipped while the ship is dead); "drain" is set by player_boost, player_brake and player_shield (each refused below maxValue * 0.33), "fill" by landing (the par_rock/par_structure collisions), a boost running dry and eased back to flight_speed, a brake running dry, W/S released while state_idle (KeyRelease 87/83) and reset_player when the bar isn't full: so 30 a second filling, 60 draining, and no refill just because a drain stopped
|
the same numbers in the ContentRegistry (flight.FlightSpeed/BrakeSpeed, SpeedChangeRatePerSecond = 0.05 x 120, weaponPhysicals.*Speed), ShipFlight.Speed kept in px a step (the speedometer reads it x 33.79) and moved at Gml.Px(speed) x 120 units/s (600 px/s flight, 960 vulcan, 1440 pellets, 480 flame), as rocks, rockets and enemy rounds are; boost doubles the current speed; the bar is ShipFlight.Energy with its EnergyMode (Idle/Fill/Drain) set at the same places, ticked every flight.EnergyTickSteps (4) steps by EnergyFillPerTick 1 / EnergyDrainPerTick 2, always held at 0 (D25 for the shield's drain outliving a leap or fling)
|
the first port fed the px/step numbers in as units/s, so the ship and its rounds flew at 5/6 speed and boost always went to 10 (U.HARE-T88); the energy bar was this rebuild's own 40/s drain and 25/s fill, refilling whenever nothing drained (U.HARE-T89) | matches (speeds, U.HARE-T88; energy, U.HARE-T89) |
| V5 | The vulcan fires at a fixed fire_rate = 9 steps
|
fires at the fixed 9 steps (WeaponTable.VulcanBaseRateSteps = VulcanMinRateSteps = 9)
|
the ramp the earlier Rabbit build used and gmlHARE kept commented out beside the fixed rate | matches, UH-T73 |
| V6 | The laser and railgun are perched (ground) primaries on Q's cycle, fired with the left mouse; in flight the left mouse fires the air weapon (next_air_weapon, E, toggles rocket and mine) and Ctrl + left mouse the mine
|
the same: LaserGun and RailgunGun are ground primaries on Q's cycle (left mouse, perched), AirWeaponLoadout fires the rocket or mine on the left mouse in flight, cycled with E, and Ctrl + left mouse drops the mine; the right mouse is flight's, not a weapon's. The first port fired laser, railgun and rocket on the right mouse
|
the weapons were ported (UH-T9) before the ground/air split was read from the source (UH-T11); brought back in line by UH-T74 | matches |
| V7 | Raw key and mouse events | a generated HareControls wrapper over an InputActionAsset (Scripts/Input/HareControls.inputactions), read by the same five scripts; a Meta action map (Leap, Shield, Flashbomb, Helper, Pause, Restart, Map, Debug, Menu) is scaffolded as data with keyboard and, where it makes sense, gamepad defaults, but nothing reads it yet. Restart (R) and Map (Tab) have no key recovered from the GML source (their systems are not built), so these are new placeholder defaults, not reverse-engineered ones, pending their own tickets. U.HARE-T50 reverse-engineered the rest of the room controllers' keys: Menu is Esc (obj_game, obj_map, obj_story, obj_intro: room_goto(room_title)), a new Fullscreen action is F1 (obj_title, obj_game), and Debug moved from its F1 placeholder to F12, obj_game's debug = !debug key; the room flow reads Menu and Fullscreen. U.HARE-T66 found the arrows are not the ship's: obj_player turns only on A and D (keyboard events 65 and 68), and its arrow presses (37-40) call create_helper, so the arrows left the Player map's Rotate and, with Page Down and Delete, became the Helper map (the Meta map's placeholder Helper on H and / was dropped; V43)
|
the known original bindings (A/D turn, W boost, S/Shift brake, Space/right mouse crouch-and-leap and Alt/middle mouse spin as the Player map's Leap and Spin since U.HARE-T53, Ctrl + left mouse secondary, Q/E cycle) are unchanged; a Gamepad control scheme was added alongside Keyboard&Mouse
|
matches (known bindings), U.HARE-T42; placeholder Meta defaults to settle in U.HARE-T53/U.HARE-T60/U.HARE-T67/U.HARE-T59/U.HARE-T19/U.HARE-T26 |
| V8 | Tuning as Create variables | [SerializeField] defaults and constants
|
interim, before data files | temporary, UH-T41 |
| V9 | Rules in GML objects | player, weapon and enemy rules in Core (UH-T39, UH-T40); the rocks and projectiles still hold theirs in Runtime | the rules are testable outside Unity and driven by commands | temporary for rocks and projectiles |
| V10 | engine random (irandom_range, choose)
|
the enemies draw from the world's seeded IRandomSource; the player's world takes an injected range and the rocks and visual effects still use UnityEngine.Random
|
testable, seedable randomness belongs in Core | enemies done (UH-T40); rocks and effects remain |
| V11 | Gibs and the wraith blur stand still while paused
|
the same (FadingDebris, DeathParticle); the first port kept them moving
|
matches gmlHARE's Step gating (UH-T16) | matches |
| V12 | spr_grenade_explode has 9 frames at image speed 0.2, so the blast lasts 45 steps
|
the same (GrenadeExplosion.Frames = 9); the first port assumed 10 frames and 50 steps
|
read from the sprite (UH-T16) | matches |
| V13 | Ten rooms in HARE.project.gmx, entered with room_goto
|
one scene per room (Scenes/Rooms/<GML room name>.unity: the camera rig and light, plus room_gamescreen's backdrop and obj_player in the three play rooms) and the Main.unity bootstrap, which holds only the RoomFlowDirector, all generated by ProjectSetup and listed in Build Settings bootstrap first, then the rooms in the project's order; room_boss1 has no scene, since nothing enters it (RECONSTRUCTION)
|
scenes composed in code (rule 5); the bootstrap keeps the flow alive across room loads the way GameMaker's globals outlive a room | kept, U.HARE-T50 |
| V14 | A fixed 1920x1080 GameMaker window; nothing to scale to another aspect | the game camera holds the original's 1920x1080 reference aspect at whatever resolution it actually renders at (today: fullscreen at the display's own resolution; a later windowed or resizable mode, UH-T43/UH-T71, gets the same math for free), with a second camera clearing solid black behind it so a display wider or narrower than 16:9 gets pillarbox or letterbox bars instead of a stretched or cropped view (CameraRig, LetterboxCamera)
|
every display isn't 16:9, which the original's fixed-size GM8.1 window never had to handle; the composition itself is unchanged | kept, U.HARE-T44 |
| V15 | Backgrounds are stored as the source PNGs, drawn exactly | imported compressed at high quality (BC7 on desktop, GmlArtImporter); sprites stay uncompressed
|
eighteen full-screen backgrounds uncompressed would be over 150 MB of texture memory, all referenced by the one HareArtManifest; high-quality block compression is visually indistinguishable on these painted and photographic backdrops, and the sprites, whose edges and small sizes do show compression, are left exact
|
kept, U.HARE-T46 |
| V16 | The six music_* MP3s, streamed by GameMaker's multimedia player; the sfx_* WAVs at whatever rate and depth each file has, exported at 44.1 kHz
|
the music streams as Vorbis at quality 0.7 (re-encoded from the MP3s at import); every clip is resampled to 44.1 kHz | Unity re-encodes every compressed clip to its own format, and Vorbis is its streaming codec on every platform; the sfx resampling is what GameMaker's own export did | kept, U.HARE-T47 |
| V17 | draw_text draws each glyph as an exact quad of GameMaker's edge-to-edge packed atlas; boxes and alignment (fa_center, fa_right) are measured by string_width, the sum of the shifts
|
the same glyph pixels at the same pen positions (proven pixel for pixel by HareTextPlayTests), from an atlas repacked with 16 px of clear space around every cell; UI Toolkit's own measured box for a run of text can differ from string_width by a few pixels
|
UI Toolkit draws a bitmap glyph's quad about 5 px wider on each side than its cell, so on GameMaker's packed atlas every character dragged slivers of its neighbours onto the screen; the box measurement is UI Toolkit's layout, not the drawn text, so a screen that must centre or right-align exactly as the original did places the text by GmlFontMetrics.StringWidth
|
kept, U.HARE-T48 |
| V18 | No online play: one player at one keyboard | Online play beside the local game (Online.unity, U.HARE-T35): the kit's drop-in front end (uGUI and TextMesh Pro, from MindAttic Components, not Hare's UI Toolkit; TextMesh Pro's Essential Resources ship its OFL LiberationSans font, the only typeface file in the project) and its online tuning section (MaxPlayers 4, SpawnSpacing 1.5 units between seats along the room's centre line, AimResendDegrees 0.5), none of it reconstructed since the original has none; local play is unchanged
|
the owner's rule 9 (online-ready on the shared kit); the front end is the kit's, shared by every MindAttic game, so it keeps the kit's own look | kept, U.HARE-T35 |
| V19 | Each room steps once per frame at its room_speed (60 or 120); a slow frame slows the game down | the room flow steps on real time at the room's room_speed, catching up at most rooms.MaxStepsPerFrame (4) steps in one frame, so the fade lasts what it did (35 steps, 0.58 s in a 60-step room) whatever the display's refresh rate
|
Unity's frame rate is not the room speed; the cap keeps one long frame (a scene load) from skipping most of a fade | kept, U.HARE-T50 |
| V20 | Landing on a rock (par_rock collision) does with(current_rock) motion_add(direction, 6) and sets player.depth = current_rock.depth; landing and the hit/fling spin are per step
|
the push is left out; the ship's depth is not changed (PlayerLook draws it at depth 0, over every rock); landing tests the ship's sprite masks (spr_rabbit_leap's ellipse in flight, spr_rabbit_idle's rectangle for the move-out) against the rock's collider by physics query (PerchProbe), and spin = 3 / was_spinning's 3 a step are 360 degrees a second (FlightTuning.SpinDegreesPerSecond, SpinRecoverDegreesPerSecond)
|
the push is a no-op in the original: the rock's Step restores speed = Speed before it ever moves; the ship has no collider of its own so enemy hits stay as they are
|
kept, U.HARE-T53 |
| V21 | LIVES is a global; player_hurt's death and the out-of-bounds rule both spend it, reset_player drops the ship in at (room_width / 2, -sprite_height) heading 270 + irandom_range(-30, 30) at speed 5 with sfx_flyover, and with no life left game_restart starts the game over from its first room. reset_player sets invulnerable = false, color = c_white and alarm_flashing = 0, so a respawned ship does not flash: its justspawned protection (flash_time, 180 steps) shows only as the orange ef_smoke jet its Step puffs behind it. Alarm 5's flash (colorCycle 0..4: pink, amber, cornflower, cornflower, white, every 3 steps from a step after the hit) runs only while a hit's invulnerability lasts
|
the same: LIVES lives in the room flow's GameSession, which the ship spends through SessionLives (both deaths count against it), game_restart is a new GameSession and the flow's first room (RoomFlowDirector.RestartGame); the flash is Core's ShipHealth.Color. The justspawned jet (an orange ef_smoke 36 px behind the ship every step, ShipLook's SpawnJetPuffed) and the ship's sprite, pose (PlayerShip.Pose) and colour are drawn by PlayerLook (U.HARE-T55)
|
U.HARE-T54's ticket asked for the respawn to flash; the source says it does not, and the rebuild follows the source | matches, U.HARE-T54, U.HARE-T55 |
| V22 | obj_player's Draw, Step and Alarms 2/3: the spr_rabbit_* pose (frame 0) at scale 1 in Alarm 5's color, the held ground_weapon_asset under it at gunX/gunY turned to mouse_angle while state_idle (the last ground weapon next_ground_weapon equipped or any shoot_* fired, so a Ctrl + left mouse shotgun blast leaves the shotgun in hand), Alarm 2's white ef_smokeup every 40 steps while flying, Alarm 3's ef_spark every 8 steps while turning, irandom_range(1, 3) choosing amber, pink or cornflower blue (the c_yellow default is never drawn), each one step behind the ship (x - hspeed) and effect_create_below
|
the same, drawn by PlayerLook from Core's ShipLook (its numbers in the look section); ef_smoke and ef_spark are ported from the runner's Eff_Effect04/Eff_Effect07 with pt_shape_spark (GmlEffects). One difference: A and D share one Rotate axis, so holding both cancels the turn and its sparks, where the two GML key events both ran
|
the Input System's composite axis (V7); with one key held, which is how the ship is flown, the trail is the original's | kept, U.HARE-T55 |
| V23 | The weapons' and explosions' effects: shoot_vulcan and shoot_shotgun create obj_muzzleflash (spr_muzzleflash_new, alpha 0.95, image_speed 0.3, depth -2, gone at Animation End; its Step's fade is commented out) at the muzzle turned to the bullet's direction, the shotgun's to its last pellet's (aim plus that pellet's spread); shoot_shotgun adds ef_smoke size 1 c_black and shoot_flamer ef_smokeup size 0 c_black, both below; obj_laser's Step puffs ef_flare size 0 cornflower blue below at the muzzle every step; obj_railgun's Step puffs ef_smoke size 0 in railColor below at the muzzle and the rail's end every step while railAlpha > 0 (its image_alpha > 0.25 gate reads the sprite-less instance's own image_alpha, always 1, so it never closes), and generate_swirl puts an obj_rail_swirl (spr_railgun_swirl, depth -1, image_angle = the aim, blended railColor, image_alpha = railAlpha each step) every 56 px along the rail where 0 <= x <= room_width and 0 <= y <= room_height; obj_rocket_explosion animates spr_bigexplosion at 0.5 (40 steps) with sfx_explode when in_view; obj_oval_explosion (spr_explosion_oval, 0.3, sfx_explode in view) is created by nothing
|
the same: MuzzleFlash, the weapons' GmlEffects calls (ef_flare joins it, the runner's Eff_Effect08: ef_spark's particle in pt_shape_flare), RailgunShot's swirls (inside the arena room's bounds) and smoke, RocketExplosion's animation and sound; OvalExplosion is ported but, as in the original, nothing spawns it. Sprites not copied under Resources/Hare/Sprites are drawn from the imported art's HareArtManifest. The rail's smoke is kept running for the whole fade rather than "fixed" to stop at railAlpha 0.25: the source may have meant that, but what it does is a working effect, so it is matched
|
the effect objects are read straight from HARE.gmx (U.HARE-T31) | matches, U.HARE-T31 |
| V24 | The pickups and the kicked-up scraps: every par_enemy kill branch that calls random_pickup(x, y) rolls irandom_range(1, 2): 1 is an obj_carrot on a further 1-in-4, 2 always an obj_coin (its own 1-in-2 roll is commented out). The carrot (spr_pickup_health) never falls (its y += 1 is commented out), hovers every 8 steps (hoverY swinging -4..4, y += hoverY), pings a size-0 red ef_ring every 120 steps and gives the ship that touches it HP += 1 below MAXHP with sfx_powerup and a size-1 red ring. The coin rolls 1-100: blue (<= 75, 5), silver (< 98, 10), gold (20); it falls 1 px a step, sparkles an amber/pink/cornflower ef_spark a step behind its motion every 5 steps, is gone past room_height + sprite_height, and adds its value to COINS with a ring in its colour, the hundredth coin being LIVES += 1, COINS = 0 and sfx_extralife. Both are pulled by move_towards_point(player, 4) while distance_to_point(player) < 48 from their bounding box, and GameMaker keeps that speed and heading once the ship is out of range (and while paused, since only the objects' own code checks it). player_leap and the par_rock landing kick up a size-0 grey ef_firework and spawn_chips' 6-12 obj_chip 32 px along the ship's image_angle (the landing's the one it flew in at, before normal_detect turns it); every vulcan round leaves an obj_cartridge and every shotgun blast a spr_ammo_shell one at gunX/gunY. Chips and casings rise and fall on their Alarm 0 (every 3 / 2 steps) and spin every step; nothing collides with them; setup_level clears the pickups but not them
|
the same: Core's PickupField (Pickups/, numbers in the content's pickups section, the original's random draws in its order from one seeded source) with RestoreHealth/PlayerHealed on the ship and the session's CollectCoin; Runtime's PickupDirector steps it after the enemies, draws PickupView/ScrapView, and the ship's own mask (PerchProbe.ShipMaskHits: spr_rabbit_leap's ellipse in flight, spr_rabbit_idle's box perched) decides what it touches. ef_ring joins GmlEffects from the runner's Eff_Effect01 with its pt_shape_ring. With several ships the magnet pulls toward the nearest; COINS are counted only under the room flow (a room run alone has no session). obj_helper's collisions are ported with it (U.HARE-T66, V43); the Scrap Mental's scattered random_pickup waits for that object
|
read straight from HARE.gmx (U.HARE-T23) | matches, U.HARE-T23 |
| V25 | setup_level destroys obj_player, par_rock, par_structure, par_structure_cover, par_enemy, par_projectile, par_enemy_emitter and par_pickup, then places irandom_range(structure_min, structure_max) par_structure (1-3 in level_02 and level_04, 2-4 in level_07) at irandom_range(player_size, room - player_size), each turned irandom_range(-30, 30) with a par_structure_cover (spr_structure1_cover, depth -1) over its spr_structure1 (depth 0, precise mask), and move_rocks destroys those (and their covers) in the top 800 px within 400 px of the centre line. A bullet that hits one is spent in an obj_tinyexplosion, a rocket goes off as an obj_rocket_explosion, the laser stops at it, and the flying ship perches on it (no in_view test, a grey ef_firework at its feet and no spawn_chips, no ride since it never moves)
|
the same: the level's StructureMin/StructureMax in the arena section's level settings, StructureField, Structure (an IPerchSurface, landed on through the rocks' PlayerShipController.LandOn), StructureCover; setup_level's Clear Objects is LevelReset.ClearObjects (an enemy world cleared is a fresh one, dealt from the next seed). ArenaRoom.Begin runs the clear and the structure pass until the level setup (U.HARE-T57) places the rest of a level; the ship is not destroyed but kept for the respawn flow (reset_player)
|
the structure half of the old UH-T32 scope, read straight from HARE.gmx (U.HARE-T56) | matches, U.HARE-T56 |
| V26 | The weather: every play room (and room_boss1) places obj_cloud_emitter, whose Create makes 12 obj_cloud anywhere in the room and sets alarm[0] = 1, and whose Alarm 0 makes irandom_range(1, 4) more every rate = 200 steps; each cloud is spr_cloud1..4 at image_alpha = 0.1 * irandom_range(1, 3), made at x = room_width, y = irandom_range(-sprite_height/2, room_height + sprite_height/2), moving hspeed = -irandom_range(1, 2), gone once x < -sprite_width and held still while paused, at depth 0. obj_rain_emitter (one obj_raindrop a step, spr_rain falling 15-20 and drifting 1-2 left a step from above the room), obj_snow_emitter (one obj_snow a step, spr_snow1/2 at 0.8 falling 0-2 and drifting -2..2, turning -1), obj_sand_emitter (two obj_sand a step from the left half-room beyond the edge, spr_sand1/2 at 0.8, dY -1..6 with 0 made 2, dX 3-6, turning -1) and obj_fog_emitter (32 obj_fog, the cloud sprites at 0.3 in the bottom quarter drifting 1-2 a step and coming round from the far side) are real objects nothing creates: obj_game's instance_create(0,0, obj_snow_emitter) and obj_fog_emitter are commented out. The weather objects are never cleared by setup_level; a level is always entered through room_goto, which makes the room's cloud emitter afresh
|
the same rules in Core's WeatherField (Weather/, numbers in the content's weather section, the original's random draws in its order), drawn by Runtime's WeatherView with pooled sprite renderers (nothing collides with weather) and stepped by ArenaRoom once a room step. Each level names its emitters as data (LevelSetting.Weather): every shipped level has Cloud only, as the rooms do, and a level may name Rain, Snow, Sand or Fog. LevelReset.ClearObjects takes the weather away and ArenaRoom.Begin starts the level's emitters after it, which is what entering the room did in the original. Snow, sand and fog carry D16-D18
|
read straight from HARE.gmx (U.HARE-T18) | matches, U.HARE-T18 |
| V27 | The levels are GML scripts that set globals. setup_level zeroes rock_min/max, structure_min/max and every enemy kind's X_min/X_max, then runs level_01..level_10 for current_level 1..10 and level_default past them (quick start; load_scenario maps scenario 1's levels 1-5 to level_01..05 and every other scenario's to level_06..10), or level_enemygenerator in generator mode. Rocks: 15-30 (1, 2, 6, 7, 9, 10, default, generator), 15-20 (3), 20 (4), 0 (5), 20-24 (8). stationary_percent is a globalvar (50 at start) that setup_level never resets and that level_04, 05, 09, 10 and level_default never set, so those play with the share the level before left (level 4 after level 3 at 15, 9 and 10 after 8 at 60). Enemies (min-max): 1 hydra 1-3, saw 1-2, mimic 1-3, dagger 1-2; 2 saw 1-2, meatball 2, phalanx 2-3, mimic 3-5; 3 mimic 3-5, worm 2, dagger 3-4; 4 hydra 8-10, saw 5-7, mimic 10; 5 hydra 3-4, saw 2-3, meatball 1, phalanx 1-2, mimic 15-20; 6 hydra 1-2, saw 2-3, wraith 2, mimic 2-3; 7 hydra 1-2, saw 3-4, mimic 3-5, dagger 3-4, trilobyte 10-12; 8 none; 9 hydra 8-10, saw 20, meatball 1; 10 hydra 10-12, saw 20, meatball 2-3; default hydra 3-8, saw 1-6, meatball 1-3; generator none (generate_enemy_list's). Objectives: o_points 500 (1-4, 9), o_timelimit 90 s with goal 500 (5-7), o_defeat "Scrap Mental" after instance_create(room_width/2, room_height/2, obj_scrapmental) (8), o_points 18000 without current_score = 0 (10), o_points 10000 without time_elapsed_seconds = 0 (default), o_survive (generator); 9 and 10 also set time_limit_seconds = 90, which o_points never reads. load_level(setting, objective, composition) runs level_setting_00/01 (room_gamescreen, bg_worldcurve, no loops), level_objective_00/01 (o_points 500, level_name "Welcome to H.O.P" / "Level 02", one level_dialog line; _01 keeps the score) and level_composition_00/01 (rocks 20-25; hydra 3-5, saw 2-3, mimic 1-3, dagger 2-3 / saw 6-8, meatball 1-2), but nothing calls it and nothing reads level_dialog
|
the same numbers as data: each script is one LevelSetting in the arena section (Levels, DefaultLevel, GeneratorLevel: the U.HARE-T52 setting, RockMin/Max, StationaryPercent with -1 for "the script leaves it" resolved by StationaryPercentAfter from StartingStationaryPercent 50, StructureMin/Max, Enemies and Objective, with TargetObject for level_08's boss); ToComposition() and ToObjective() hand them to the enemies' PlaceComposition and the session's BeginLevel; load_level's parts are SettingParts, ObjectiveParts, CompositionParts and ArenaTuning.LoadLevel, kept as data though unreachable. The sticky stationary_percent is kept: it works, and the levels play as they did. Placing the rocks, enemies and boss at level start and running the objective are U.HARE-T57's; the scenario mapping and load_level's selection U.HARE-T64's
|
read straight from HARE.gmx (U.HARE-T20) | matches, U.HARE-T20 |
| V28 | setup_level and the objective engine. obj_game's Create runs setup_level: Clear Objects (V25, with obj_level_results and obj_levelstart), instance_create(0,0, obj_levelstart), a new obj_player and reset_player() (sfx_flyover), level_complete = false; paused = false, background_x/y = 0, an obj_jukebox, the ranges zeroed, then level_01..10/level_default (gm_quickstart), level_enemygenerator + generate_enemy_list(difficulty) + obj_wormhole_emitter (gm_generator) or load_scenario (gm_campaign); then irandom_range(rock_min, rock_max) rocks, the structures, each enemy kind's vortices (mimics directly) and move_rocks. A level script in the wrong room only does room_goto(its room), whose obj_game runs setup_level again. obj_levelstart plays sfx_switch, draws level_name (fnt_score) over strObjective (fnt_point, 65 px lower) centred on the GUI layer with a size-2 outline at alpha, sets fade on its 120th step and, every 2 steps (alarm 1, rate), takes 0.01 off alpha while fading, destroying itself once alpha is not above 0 (the double lands a hair above 0 after 100 firings, so the 101st takes it below and the 102nd destroys it). obj_healthbar's alarm counts time_elapsed_seconds every room_speed steps unless paused. obj_game's Step: o_points completes at current_score >= goal_score; o_timelimit plays sfx_beep once a second while 10..1 seconds are left (!audio_is_playing(sfx_beep) and last_second, never reset, gate it) and completes at time_elapsed_seconds >= time_limit_seconds; o_defeat completes once target_id no longer exists; o_survive checks nothing (the wormhole emitter's spent list calls set_level_complete). set_level_complete: once (if(!level_complete)), level_complete = true, an obj_level_results, paused = true. obj_fade_game's fade-in, once per room (executeOnce), is current_level += 1; setup_level()
|
the same: ArenaRoom.Begin is setup_level (LevelSetup.ScriptFor/SettingFor/RoomGoto pick the script and its room; the session's BeginLevel takes the objective, level_name and the sticky stationary_percent, now GameSession.LevelName/StationaryPercent; RockField, StructureField, EnemyComposition.Place, WormholeEmitter.Create), PlayerHealth.SetUp/SetUpShip is the new obj_player (Create's full ammo, vulcan and rocket, and reset_player; LIVES untouched), LevelStartBanner/LevelStartView obj_levelstart (its alpha a double, as GameMaker's), and every room step ArenaRoom.Step ticks TickSession (the second count, now exact on 120 steps) and the objective check, steps the banner and watches the target; TimeLimitWarning plays sfx_beep (0.09 s long, so the audio_is_playing gate never holds one back) and PausedChanged sets the runtime's Gml.Paused. RoomFlowDirector.LevelAdvance advances the level and runs Begin, or, when the next level plays in another room, plays the sfx_switch and sfx_flyover the old room's setup_level would and goes there. obj_level_results and the leave are U.HARE-T22's (V31). Not yet: obj_jukebox's music, load_scenario (campaign plays the quick-start chain until U.HARE-T64), and obj_game's debug R key (obj_healthbar's strTime is on the HUD since U.HARE-T25, V32). level_08's obj_scrapmental is placed through LevelTargets since U.HARE-T68 (Core's Enemies/ScrapmentalEnemy, Runtime's Enemies/Scrapmental; the object goes 10 s after its defeat and that meets o_defeat; D28-D32). A play room entered at a level that plays elsewhere (a room opened on its own, a test) still plays the room's first level (V27's U.HARE-T52 rule) rather than room_goto
|
read straight from HARE.gmx (U.HARE-T57) | matches, U.HARE-T57 (the results screen U.HARE-T22, V31); temporary for music, scenarios and the boss |
| V29 | The stage rooms. level_04 plays in room_shaft (1920x12000, bg_stormclouds tiled both ways at background_hspeed = -1, loop_horizontal and loop_vertical, no randomize_on_loop) and level_05 in room_sidescroll (12000x1080, bg_tropicalocean tiled sideways, loop_horizontal with randomize_on_loop, no vertical loop); in either, any other level's script sends the game back with room_goto. Both rooms' view 0 follows obj_player with hspeed/vspeed -1 (no 40 px limit) and draw the minimap at 1300,860. There is no stage-specific rule: obj_player's Step wraps it past sprite_width sideways and past buffer_zone vertically, or, on an edge that does not loop, takes a life past buffer_zone and runs reset_player (room_width / 2, just above the room: x 6000 in the side-scroll, the shaft's top); obj_bullet and obj_rocket are destroyed once buffer_zone (400 px) outside room_width x room_height, never wrapped. obj_spawnpoint (both rooms) does nothing
|
the same, all on the arena (ArenaWorld, ArenaRoom; V27, V28): the rooms, views, backgrounds and loop flags as data, and the projectiles' room check as ArenaWorld.OutOfPlay on the running room (ArenaRoom.Active), so a shot crosses the whole 12000 px stage. Before this the bullets, pellets and rockets died by a lifetime or a 4000 px range, near room_gamescreen's reach; those now stand in only when no play room is running (EditMode tests, tools). The room's second obj_player is not placed (D19); obj_surface_reflection is U.HARE-T58's (V30: its water line is a floor, so in the side-scroll the bottom buffer zone is never reached in play)
|
read straight from HARE.gmx (U.HARE-T21) | matches, U.HARE-T21 |
| V30 | The backdrop props and the level backgrounds. room_sidescroll places an obj_surface_reflection (depth 2, no sprite): surface_y = room_height - 250 (830); every step y = surface_y + (surface_y - player.y), never above the line, angle = player.image_angle, and a ship below the line is put back on it with direction = direction > 270 ? 0 : 180 and image_angle = direction (the water is a floor, so the side-scroll's bottom buffer zone is never reached); Draw is draw_sprite_ext(player.sprite_index, 0, player.x, y, 1, 0.5, angle, c_white, 0.3) (the pose unflipped and half height, drawn even while obj_player itself is not); Alarm 0, every 5 steps, puts a size-2 ef_firework in c_cornflowerblue below everything on the line lengthdir_x(32, image_angle) from the ship while the ship is below surface_y - 32. Its key events are developer toggles: F2 flips xscale, F3 yscale, F4 flipped (angle - 180), and A/D turn its own unused direction/image_angle by player.turn_speed. obj_moon_surface (spr_moon_surface, depth 1) rises 40 px a step while below the room once its phase is "on", then stops and destroys every obj_drop_emitter; nothing creates it. Each level script sets background_index[0] (bg_worldcurve 1, 7, 8; bg_moonview 2; bg_uphigh 3; bg_stormclouds 4 at background_hspeed = -1; bg_tropicalocean 5; bg_nightsky 6, tiled; bg_atmosphere 9, 10; bg_orange level_default; bg_nightsky under bg_gradient3 in slot 1 for the generator) over the room's own slot settings (room_gamescreen stretches slot 0 and 1 over the room)
|
the same: SurfaceReflection on Core's ArenaWorld (StepReflection raising SurfaceSplashed and ShipSkimmedSurface; numbers in the side-scroll room's Reflection data), the ship's SkimSurface, SurfaceReflectionView drawing it; MoonSurface/MoonSurfaceView (numbers in arena.MoonSurface), created by nothing; the backgrounds and speeds as U.HARE-T52 built them (LevelSetting, ArenaWorld.Layers, ArenaRoom.BuildLayers). The F2/F3/F4 toggles are left out: they are developer knobs on raw function keys with no place in play, and the rebuild's input goes through HareControls. The reflection follows the ship once it has one (the original's Create reads player before setup_level has necessarily made it)
|
read straight from HARE.gmx (U.HARE-T58) | matches, U.HARE-T58; the debug toggles kept out |
| V31 | The level's end. set_level_complete makes an obj_level_results at (screen_width/2, screen_height/4) = (960, 270) and pauses. Its Draw GUI draws spr_results (712x712, origin 356,0) at image_alpha = 0.7, then at alpha 1 in white with a size-1 black outline: "Level Complete" (fnt_score, centred, y + margin, margin 25), "Time" and obj_healthbar.strTime (fnt_point, left at x - width/2 + margin and right at x + width/2 - margin, y + margin*5), "Enemies Killed" and KILLS the same way at y + margin*6, and "Press [ENTER] to continue" (centred, y + height/2 - margin). strTime is obj_healthbar's own minutes:seconds, "00:00" from its Create (one per room, from obj_game's Create) and counted by the same unpaused one-second alarm as time_elapsed_seconds, but never reset by a level. While paused obj_player stands still (speed = 0). Enter (vk_enter): paused = false; player.state = state_leave; player.exit_x = player.x; player.invulnerable = true (no end_flash alarm), sfx_boost, a size-1 white ef_ring below the ship, and the panel is destroyed. In state_leave obj_player's Step skips everything else (boundary checks and wraps included) and every step sets exit_angle = point_direction(x, y, exit_x, -sprite_height), turns direction 3 degrees toward it (check_rotate_clockwise, always turning, so it wobbles on its heading) with image_angle = direction, shows asset_leap, flies at flight_speed * 2, and puts a size-0 black ef_smokeup and a size-1 orange ef_smoke 36 px behind it; once y < -sprite_height, once only (exiting): current_score = 0; level_complete = false; current_level += 1; setup_level(). The original never goes back to room_map after a level: the next level follows at once (in its own room when its script says so)
|
the same: Core's LevelResults (layout and lines; numbers and text in arena.Results) and HudClock (strTime), drawn by LevelResultsView on the HUD and refreshed every frame; ArenaRoom shows it on the session's LevelCompleted, counts the clock on SecondElapsed, takes Enter (the keyboard's Enter and the numpad's) through an Input System action and runs ContinueFromResults (the session's SetPaused, the ship's LeaveLevel, the arena's SendPlayerOff, sfx_boost through HareAudio, the ring through GmlEffects); the ship's ShipFlight.Leave/AimExit/RotatesClockwise (3 degrees a step as FlightTuning.LeaveTurnDegreesPerSecond), ShipHealth.MakeInvulnerableToLeave, the leap pose and LeaveSmokePuffed drawn by PlayerLook; the arena's StepLeave replaces the boundary check while leaving (ExitAimed, then PlayerLeftLevel once) and the room advances with the score reset, as the fade-in's advance does without it; PlayerShipController freezes the ship while Gml.Paused unless it is leaving. Returning to room_map between campaign levels is not in the original; the map (U.HARE-T19) and the campaign's level flow (U.HARE-T26) decide whether it is wired in, and this screen then hands over to them
|
read straight from HARE.gmx (U.HARE-T22) | matches, U.HARE-T22; the return to room_map is U.HARE-T19/U.HARE-T26's to settle |
| V32 | The gameplay HUD: obj_game's Create makes obj_healthbar, obj_weapon_gui, obj_energybar and obj_speedometer, which draw on the GUI layer (view_wview x view_hview, 1920x1080; every sprite's origin is 0,0). obj_healthbar: spr_extralives at (0, view_hview - 102), "x " + LIVES (fnt_score) at (64, view_hview - 108), strTime (fnt_point) at (64, view_hview - 50), COINS (fnt_point) at (86, view_hview - 27) beside spr_coin_small at (64, view_hview - 23), and for each point of MAXHP a pip at (140 + i*44, view_hview - 64 - 36): spr_health_pip while HP >= i+1, else spr_health_pip_back at 0.95 under spr_health_pip_empty. obj_weapon_gui (buffer 20, icons 52x57): in state_idle ground_asset (next_ground_weapon's spr_icon_vulcan/laser/railgun/shotgun/flamer) at (view_wview - 144, view_hview - 77) and spr_icon_shotgun at (view_wview - 72, ...), in state_moving air_asset (spr_icon_rocket or spr_icon_mine) and spr_icon_mine; spr_weapon_select over the primary, or the secondary while keyboard_check(vk_control); the pools' "ammo / max" in fnt_small right-aligned at (view_wview - 92, view_hview - 20) and (view_wview - 20, ...); nothing in any other state. obj_energybar at (145, view_hview - 33): spr_energybar_back at 0.95, spr_energybar_fill at image_xscale = currentValue / maxValue blended c_red at or below 0.33, c_yellow at or below 0.66, else globals.gml's c_lightgreen (168, 157, 4) (Create's c_green until the first End Step, which skips while paused or the ship is dead), spr_energybar_cover, and string(ceil(currentValue)) + "%" (fnt_point, centred, y + 4); its "! OVERHEAT !" line draws only in a mode == "cooldown" nothing ever sets (the two lines that would are commented out). Its value is its own currentValue, moved by its Alarm 0 every 4 steps (fill +1, drain -2) as the ship's boost, brake and shield set mode. obj_speedometer: while the ship is not state_idle, CurrentSpeed = player.speed * 33.79 ( mph), or / 0.62137 ( kph) with use_metric; perched, *= 0.95 a step while above 1, else 0; drawn while above 0 as string(CurrentSpeed) (fnt_score, right-aligned at (960, view_hview - 60)) and the unit (fnt_point, left at (960, view_hview - 25))
|
the same, every number and sprite as data (arena.Hud, the pips' column and size HealthTuning's, as obj_losthealth uses them): Core's GameHud (EnergyGauge, Speedometer, the Draw GUI as a HudFrame of sprites and lines in obj_game's creation order; GmlText.Real is string(), a whole number bare, else two places) stepped by ArenaRoom every room step and drawn every frame by GameHudView on the HUD layer, under obj_levelstart and obj_level_results. Four differences: the bar shows the ship's own energy (ShipFlight.Energy, whose drain and fill are still V4's placeholders) rather than holding it, so mode and Alarm 0 are not ported and "! OVERHEAT !", unreachable, is not drawn; Ctrl is the Input System's Alternate action (V7); a right-aligned or centred line is placed by its UI Toolkit box, not string_width (V17); and with no ship (GML would stop on player.MAXHP) only the ship-free parts are drawn
|
read straight from HARE.gmx (U.HARE-T25); the energy rates are V4's | matches, U.HARE-T25 |
| V33 | obj_game's own Draw GUI, before the four HUD objects its Create makes, every line through draw_text_outline (size 1, white on black) at alpha 1: string(current_score) (fnt_score) and strObjective (fnt_point), both fa_right at view_wview - 200, at view_hview - 90 and view_hview - 35; its "Level 0n" line is commented out. With debug (globals.gml false; F12's key press runs debug = !debug, a globalvar so it holds across rooms until game_restart), fnt_point fa_left at x 20: "FPS: " + fps at y 20; while instance_exists(player), "X,Y: " x,y (60), "Direction: " (80), "Image Angle: " (100), "State: " + get_state_string() (Idle, Moving, Dead, Leaving; 120), "Spin : " + player.spin (140), and "Current Rock: " the rock's instance id, "Current Rock X,Y: " and "Current Rock Spin: " (160, 180, 200), each string("Null") without a current_rock; then "Current Track: " + track_name (globals.gml "Pinball Spring") at y 300, ship or not
|
the same, positions and captions as data (arena.Hud), drawn by GameHud first in its frame and by GameHudView; debug and track_name are the session's (GameSession.Debug, TrackName, ToggleDebug from the Input System's Meta/Debug on F12 in ArenaRoom). Four differences: FPS counts the frames Unity drew in each real second rather than GameMaker's step-locked fps (V1: steps no longer drive drawing); the ship's spin, kept in degrees a second (V1), is shown divided back to degrees a step; "Current Rock" is the rock's surface id, not a GameMaker instance id (100000 and up); and track_name stays "Pinball Spring" until the music (obj_jukebox's play_random_music) is ported
|
read straight from HARE.gmx (U.HARE-T59); the overlay is a debugging aid and its numbers follow the rebuild's own clock | kept, U.HARE-T59 |
| V34 | A perched ground primary can read above its maximum: obj_player Create starts ground_ammo_primary at 150, set_ammo_cost then lowers ground_ammo_primary_max to 120 for the vulcan without touching the count, and the HUD draws ammo / max raw, so the first perched frame shows 150 / 120 until a regen tick (alarm 9) snaps it down
|
the same (AmmoPools.SetAmmoCost never writes the count; RegeneratePrimary clamps); pinned by PlayerAmmoTests.LandingWithTheVulcanLeavesTheGroundPrimaryAboveItsLoweredMaximum
|
the original does it; reported as a bug by U.HARE-T25's HUD in play, found faithful by U.HARE-T83 | matches, U.HARE-T83 |
| V35 | The popups. obj_float_text (no sprite, depth 0): Create alpha = 1, colorCycle = 0, color = c_white, outline = c_black, flash = true, fadespeed = 0.008, floatspeed = 1; Step: while flash, if(colorCycle <= 4) colorCycle += 1; else colorCycle = 0 and the switch's colour (0 and 1 c_white, 2 c_red, 3 c_yellow, 4 c_blue; 5 matches no case and keeps blue), then while alpha > 0 alpha -= fadespeed; y -= floatspeed, else alpha = 0; instance_destroy(); Draw (in the room) draw_text_outline_color(x, y-10, 1, strText, color, outline), fa_center, fnt_point, at alpha. show_float_text, show_float_text_ext and show_float_text_color make one with Create's defaults, with flash/fadespeed/floatspeed, or with those and the colours. The only calls are the 43 beside every current_score += n (every enemy kill that scores, both par_rock breaks, the boss, a shrapnel piece): show_float_text_ext(x, y, string(n), true, 0.01, 1), so a score popup flashes, rises 1 px a step and goes on its 101st step (0.01 off a double 1 a hundred times is -7.5e-16). obj_tip (spr_tip_box 548x250, origin 0,0): Create alpha = 0.7, x = view_wview; y = view_hview - height - 30, startX = x, endX = view_wview - width - 30, margin = 20, mode = "slidein"; Step slides in (x -= 1 + (x - endX) * 0.1, sfx_flick on the first pass) to endX and idles; "slideout" (x += 2 + (startX - x) * 0.1, back to startX, then destroyed) is never set by anything; a key press (vk_anykey) or a left press on it destroys it; Draw GUI draws the box at 0.7 alpha, then the text at alpha 1, fa_left, fnt_point, size-1 outline at (x + margin, y + margin), # as a new line. obj_map's Create makes one ("Mission Command", A/D and any key) and obj_drop_intro's the controls list. obj_alert (spr_alertmarker, 6 frames, origin 16,32, depth -10): Create image_speed = 0.2; Len = 550; ping_rate = 30; alarm[0] = ping_rate; scenario_id = -1; Alarm 0, while obj_map.mode == "idle", a size-0 c_red ef_ring at obj_earthball + lengthdir(Len, image_angle), re-armed every time; Step image_angle = degree + obj_earthball.image_angle and it sits at obj_earthball + lengthdir(Len, image_angle); obj_map's Create makes four (degree 16/150/270/310, scenario 1-4)
|
the same: Core's Popups/ (FloatText/FloatTextField with Show/ShowExt/ShowColor and ShowScore, alpha a double as GameMaker's; TipBox with SlideOut and Dismiss; AlertMarker; every number, colour, the two tips' text and the four missions in the registry's popups section), Runtime's Popups/ (FloatTextView, TipView stepping itself at the room's room_speed with the Input System's any key and a left press, AlertMarkerView with its ring through GmlEffects). Every scoring death now runs the pair: ArenaRoom.Score (from EnemyDirector.Killed when the kill's AwardsScore, and from Rock.Removed when the ship's shot or a rocket breaks a rock) floats the points where it died and adds them through the session's AddScore, so the score, the HUD and o_points move in play. One difference: the room's float texts are drawn on the 1920x1080 GUI layer at their place in view 0, under the HUD objects, rather than in the room, so the minimap (view 1) does not show them; in view 0 they look and move the same. obj_tip and obj_alert wait on their rooms (obj_map U.HARE-T19/T63, obj_drop_intro U.HARE-T62), which make them from this data
|
read straight from HARE.gmx (U.HARE-T27); drawing the texts on the GUI layer reuses the HUD's outline text, and the minimap's popups are a few pixels at its 0.1 scale | matches, U.HARE-T27; the minimap's popups kept off |
| V36 | Ramming scores nothing: every obj_player collision handler that mentions rocketing (the boost) is commented out in HARE.gmx (/* ... */ around the whole body) in obj_wraith (30 points, needed image_alpha == 1), obj_meatball (200), obj_phalanx (10), obj_dagger, obj_hydra, obj_mimic and obj_sawblade; the live collision is obj_player's par_enemy event, which only hurts the ship (and not while invulnerable or just spawned). A boosting ship therefore kills nothing and earns no points or float text by touching an enemy
|
the same: no ram rule is ported, enemies ignore a boosting ship, so no ram score is reported through ArenaRoom's Score
|
the original does it; U.HARE-T27's play suggested a missing rule, found dead code in the original by U.HARE-T84 | matches, U.HARE-T84 |
| V37 | obj_game's keys. Key presses (GameMaker's event 9, once per press): M show_map = !show_map (view 1, the minimap), F12 debug = !debug, P if(!level_complete) paused = !paused, R reset_player(); setup_level();, U use_metric = !use_metric, F11 current_score += 100 (a debug key; no float text, but the points objective counts it), F1 window_set_fullscreen(!window_get_fullscreen()), Esc room_goto(room_title) (its yes/no dialog is commented out), L level_loops = !level_loops (a variable nothing ever reads), Z (its music change is commented out). Held keys (event 5, every step): keypad + (107) master_volume += 0.01 up to 1 and keypad - (109) -= 0.01 down to 0, each then sound_global_volume(master_volume). master_volume and use_metric are globals, back at 1 and imperial on every run and every game_restart
|
every key through a HareControls Meta action (U.HARE-T42), the play room's ArenaRoom answering the obj_game ones and the room flow Esc and F1 as before; the keypad keys step with the room. Differences: the master volume and the units are the player's and are kept in the profile's Hare block (a new session, and game_restart's, starts from them; the keypad's level is saved once both keys are let go, not every step), as the owner asked for this ticket and as every MindAttic game keeps its volumes; L and Z, which change nothing in the original, are not bound
|
kept (U.HARE-T60) | |
| V38 | obj_mouse (spr_reticle_blue, depth -5000). Create on_gui = false; Step x = mouse_x; y = mouse_y, or mouse_x - view_xview, mouse_y - view_yview while on_gui, with no paused check; Draw draw_self() always and Draw GUI draw_self() while on_gui. Each room's controller makes one: obj_title (sprite_index = spr_pointer; visible = false, made visible by obj_logo's Create), obj_map and obj_upgrade (spr_pointer) and obj_game (its own reticle). obj_player's Step (inside if(state != state_leave) { if(!paused) {), after mouse_angle = point_direction(x, y, mouse_x, mouse_y): not state_moving (perched, or dead) spr_reticle_blue within jump_arc of image_angle (can_jump), else spr_reticle_red; in the air spr_reticle_green. option_showcursor is False, so the system cursor never shows. Only obj_yesno_dialog (and Esc's commented-out quit dialog) sets on_gui
|
the same: Core's Pointer/GameMouse (Step, the rooms' setup, FollowShip, WithinJumpArc; sprites, depth, rooms and option_showcursor in the registry's mouse section), Runtime's MouseView (one world sprite at depth -5000, sitting on the ship's AimPoint in a play room, the same HareControls Player/Aim action the weapons aim with, and recoloured from the ship's state unless paused or leaving; in a room with no ship it reads that action itself) and SystemCursor (the room flow hides the system cursor as each room comes up and gives it back as it was when the rooms go, so the Editor and other tests keep theirs). Differences: the room flow makes the title's, map's and upgrade room's obj_mouse as their Create events would, until obj_title (U.HARE-T26), obj_map (U.HARE-T19) and obj_upgrade (U.HARE-T24) are built; the title's pointer stays hidden until obj_logo (U.HARE-T62) shows it (GameMouse.SetVisible); with on_gui (obj_yesno_dialog, U.HARE-T26) it is drawn once where the mouse is on screen, not also a second time in the room at the GUI coordinates (the same spot while view 0 sits at 0,0, as it does in every room with the dialog); and it is not drawn while the aim comes from a gamepad's stick, which the original did not have
|
read straight from HARE.gmx (U.HARE-T61) | matches, U.HARE-T61; the stand-in creators go with U.HARE-T19/T24/T26 (obj_title's went with U.HARE-T26) |
| V39 | The title's menu. obj_title (Create: obj_fade_title, an obj_mouse with spr_pointer, hidden; F1 toggles fullscreen; any key but F1, or the left button held without F1 or Esc, sets obj_stand_title.phase = "on", which rises the rabbit and makes obj_logo). obj_logo's Create shows the pointer, starts image_alpha at 0 (+0.02 a step to 1) and makes, at buttonX = room_width/2 + room_width/4 = 1440: obj_btn_campaign (150), obj_btn_level01..08 (250..600, 50 apart), obj_btn_diff100 (650), obj_btn_diff0 (700), obj_btn_quit (800); obj_btn_quickstart ("Story Mode", sfx_click, room_story with no game mode and no fade check) is commented out and never made. No button draws its sprite: each draws its caption with draw_text_outline_color_alpha (size 2, at obj_logo.image_alpha, centred, fnt_score at y-30 for Campaign and Quit Game, fnt_point at y-12 for the rest), white or c_cornflowerblue while the mouse is over its sprite's box (spr_button_area 493x69, spr_button_area_small 210x35), and its message at (room_width/2, room_height - 30) in fnt_point. Mouse enter plays sfx_hover. Pressed: Campaign, the levels and the difficulties do nothing unless obj_fade_title.mode == "off", then sfx_roit, the globals (gm_campaign, level 1 / gm_quickstart, its level / gm_generator, difficulty 100 or 0) and next_room (room_story / room_gamescreen) with the fade-in. Quit makes obj_yesno_dialog ("Quit Game", "Are you sure?", action "quitgame") unless one exists, setting mouse.on_gui: spr_tip_box at 0.7 in the view's middle (686,415), on the GUI layer; Yes (sfx_roit, game_end(); "mainmenu" would room_goto(room_title)), No (sfx_roit, the dialog gone, on_gui off), Esc (sfx_roit, the dialog gone, on_gui left on), Enter (game_end()). Every instance answers the mouse whatever is drawn over it, so the menu still works behind the dialog
|
the same (Core's Rooms/TitleScreen, every caption, position, mask, sound, mode and the dialog as data in the registry's title section; Runtime's TitleRoom, the title scene's obj_title). The menu comes with obj_logo after obj_stand_title's 40-step rise (V40, since U.HARE-T62). Differences: the captions, dialog and pointer are UI Toolkit, so the Draw-event captions and messages are darkened by obj_fade_title's opacity in their colour (the same pixels as spr_black drawn over them) while the Draw GUI dialog stays over the fade and obj_mouse is drawn over all of it, once (V38); game_end() is Application.Quit in a player and only logged in the Editor, so it never stops play mode or a test run (TitleRoom.QuitGame); the mouse events are checked once a frame rather than once a step
|
read straight from HARE.gmx's obj_title, obj_logo, obj_btn_*, obj_yesno_dialog and their sprites | matches, U.HARE-T26; the menu's arrival after the rise since U.HARE-T62 |
| V40 | The title and intro presentation. room_title and room_intro (1920x1080, 60 steps) tile bg_nightsky (background 0, vspeed = -5) under a still bg_gradient3 (background 1). Both place obj_drop_emitter (Create alarm[0] = 1; Alarm 0 makes irandom_range(4,8) obj_drop_cloud and re-arms every rate = 20) and the falling rabbit at 960,-608 at half scale (spr_drop, origin 231,0). obj_drop_cloud: x = irandom_range(-sprite_width/2, room_width - sprite_width/2), vspeed = -irandom_range(60, 80), image_alpha = 0.1 * irandom_range(1, 3), y = room_height + sprite_height * irandom_range(1, 2) (spr_cloud1's 851x313, read before) then spr_cloud1..4, gone once y < -sprite_height. obj_drop_title/obj_drop_intro: Create vspeed = 10; startX = x; phase = "start"; alarm[0] = 20; Alarm 0 a size-2 c_black ef_smokeup below at (x, y+40), re-armed; Step x = startX + irandom_range(-3,3), a size-2 c_orange ef_smokeup below at (x, y+40), and in "start", once y > room_height/4, vspeed = 0; phase = "hang" (the title's alarm[1] = 200, whose event sets phase = "exit"; the intro's makes obj_tip with the controls list); in "exit" vspeed = 10 and, once y > room_height, the title's destroys itself, sets obj_stand_title.phase = "on", destroys the emitter and plays sfx_land, while the intro's sets gm_quickstart, scenario -1, level 1 and room_goto(room_gamescreen). The intro's held A and D move startX 1 a step within 300 of the edges and any other key sends a hanging rabbit out. obj_title's key or click destroys the title's drop and emitter and turns obj_stand_title on (spr_stand, origin 246,1154, at 928,2592 at half scale): vspeed = -40 while y > room_height - 30, then vspeed = 0, instance_create(0,0,obj_logo), phase = "off", so obj_logo comes 40 steps after the call with the rabbit's feet at 1032; its Draw puts spr_moon_surface at (0, y+250), spr_eyeback at (x-6, y-368) and spr_pupil at (x-12+mouse_x/120, y-370+mouse_y/60) at half scale under itself. obj_logo (spr_logo, origin 275,255) sits at (width/2 + 200, height/2 + 200) = 475.5,455 at image_alpha (0 +0.02 a step), shows obj_mouse and sets background_vspeed[0] = 0. obj_intro answers Esc with room_goto(room_title). Nothing goes to room_intro
|
the same: Core's Rooms/DropScene (the drop, the emitter and its clouds, the backgrounds' scroll, one step in GameMaker's alarm, Step, motion order with the original's random draws), TitleScreen (the stand, the logo, the menu after the rise; every number in title.Scene, title.Stand, title.Logo) and IntroScreen (intro), drawn by DropSceneView (backgrounds on the backdrop layer, ef_smokeup through GmlEffects below every sprite), TitleRoom and IntroRoom (obj_intro; its Esc is the room flow's, the rooms table's EscapeToTitle). Differences: the instances all sit at depth 0, where GameMaker leaves the order to the runner; the rebuild draws the clouds under the rabbit and obj_logo, and obj_stand_title's moon, eye, pupil and itself in its Draw's order over them; room_intro is ported though nothing reaches it, so the flow has to be sent there; a key while the rabbit is already rising is refused (it only set phase = "on" again) and one after obj_logo is D23
|
read straight from HARE.gmx's room_title, room_intro, obj_drop_title, obj_drop_intro, obj_drop_emitter, obj_drop_cloud, obj_stand_title, obj_logo, obj_intro and their sprites (U.HARE-T62); the same-depth order is the runner's to choose and the rabbit is what the eye follows | matches, U.HARE-T62 |
| V41 | The story and cutscene system. room_story (1920x1080, 60 steps; bg_nightsky tiled) places obj_scroll_world, obj_story and obj_fade_story. obj_story's Create makes obj_typewriter_story at 30,60 and builds its text from 26 += lines (indent() is ten spaces; # a new line, ^ a pause; the original's spelling kept). obj_typewriter_story: type_speed = 1, pause_delay = room_speed, alarm[0] = type_speed; Alarm 0, until print_complete, takes position += 1, copies string_copy(text,0,position) with every ^ removed, restarts sfx_type2 (audio_stop_sound then audio_play_sound) for any character but space, #, ^, . and ,, re-arms pause_delay after a ^ and type_speed otherwise, and sets print_complete once the copy is the whole text (one more firing then finds it complete and stops); Draw GUI draw_text_outline_alpha(x, y, 1, output, alpha) in fnt_medium. The 1346 characters (30 ^) are out on step 3116. obj_scroll_world (spr_earthball, origin 533,531) starts at room_width/2, room_height + sprite_get_height, and every scroll_delay = 3 steps (Alarm 0, re-armed always) moves y -= 1; background_y[0] -= 1 while below room_height; the firing after (step 3189) sets finished and does what obj_story's key does; its Step turns image_angle -= 0.01 through normalize_angle. obj_story's key press (any key, if(!keyboard_check(vk_escape)), on every press): next_room = room_map; obj_fade_story.mode = "fadein"; firstPass = true; gamemode = gm_campaign; current_scenario = -1; current_level = 1; Esc room_goto(room_title). obj_conversation (depth -1000, Draw GUI): Create startY = view_hview, endY = view_hview - 256, x = 0, mode = "off", frame_name = "Admiral Zee", type_speed = 2, pause_delay = room_speed and its three-line text, no alarm set. Step: "slidein"'s first pass plays sfx_flick and resets the text, then y -= 1 + (y - endY) * 0.1 until not above endY (snap, "idle", firstPass again); "idle"'s first pass sets alarm[0] = type_speed; "slideout"'s first pass plays sfx_flick, then y += 4 + (startY - y) * 0.1 until back at startY (snap, "off", text reset). Alarm 0 types as obj_typewriter_story does but only while "idle", with sfx_type and only space, # and ^ silent. A key press or the global left press, once print_complete and "idle", runs next_line: "slideout", firstPass, destroy obj_textdone, sfx_flick, then sfx_woof for Admiral Zee (sfx_flick for anyone else). Draw: spr_conversation_box at x,y; spr_comm_frame_back, spr_portrait_general_zee and spr_comm_frame at x+30, y+30; the name centred at x+30+97.5, y+30+195 (fnt_point, outline 2); the text at x+260, y+24 (fnt_score, outline 2). Only obj_map makes one (its Create); obj_destination slides it in and obj_map's A and D slide it out (U.HARE-T19/T63). obj_textdone (spr_textdone 11x13, four frames, depth -1001; Create image_xscale = image_yscale = 8; x = view_wview - 90; y = view_hview - 90; image_speed = 0.1, Draw GUI draw_self()) is never created anywhere (next_line only destroys it), so in the original nothing marks a finished line. obj_typewriter (type_speed = 2, no pauses, no sound, a 0.01-a-firing fade) is made only by commented-out code. load_scenario: scenario 1 runs level_01..05 for current_level 1..5, scenarios 2, 3 and 4 level_06..10, any other scenario level_default; a listed scenario past level 5 runs no level script.
|
the same: Core's Story/StoryScreen (commands CreateStory, StepStory, PressStoryKey; events StoryTypeSounded, StoryCampaignChosen, StoryFadeRequested), Story/Typewriter (GameMaker's alarm kept: set to n it fires n steps later; Pauses tells obj_typewriter_story's and obj_conversation's kind from obj_typewriter's), Story/ConversationBox, StoryTuning.LoadScenario and LevelSetup.LoadScenario; the text in the dialogue section, the rest in story. Runtime's StoryRoom (obj_story in room_story: the sky, the turning earth on the room clock, the typewriter on a GUI panel, sfx_type2 through HareAudio.Restart, the campaign through the session and the fade through the flow; Esc is the room flow's) and ConversationView (obj_conversation on a GUI layer, stepping itself at room_speed, sending any key and the left press to next_line). obj_textdone is shown as the intended feature the original never shipped (U.HARE-T87: the owner's rule to complete clearly intended features; U.HARE-T28 had left it undrawn): Story/TextDone (TextDoneDefinition in the story section, TextDoneMarker) makes it when obj_typewriter_story or obj_conversation's line is print_complete (the box also idle), runs its image_index at 0.1 a step and destroys it in next_line; Runtime's TextDoneView draws it in the view's bottom right corner on both the story's and the comm box's GUI layers. The map makes, slides and shows its conversation (U.HARE-T19, V42). Not yet: setup_level running load_scenario for the campaign (U.HARE-T64)
|
read straight from HARE.gmx (U.HARE-T28); the textdone marker is an intended feature completed (U.HARE-T87) | matches, except the textdone marker, intended and completed, U.HARE-T87 |
| V42 | The map (room_map, 1920x1080, 60 steps; bg_nightsky tiled). Room order obj_earthball (Create x = room_width/2; y = room_height; turn_speed = 2; auto_speed = 0.01; Step while obj_map idles image_angle -= auto_speed through normalize_angle), obj_uss_warren (x 1143, y = 1080 - 531 - 211 - 66 + 100 = 372), obj_scanner, obj_destination (x 903, y = room_height - 531 = 549, last_scenario = -1, never drawn; spr_destination's precise mask a solid 25..35 x 0..129 strip about origin 32,130), obj_map (Create: obj_fade_map, obj_mouse with spr_pointer, obj_btn_upgrade at 100,40, mode = "idle", the obj_alert markers at degree with scenario_id, obj_conversation, obj_tip "Mission Command"), obj_scenario_details (92,179, hidden). A (D) key press, only while idle with no white dot: sfx_flick, mode = "moving", rotate_direction counterclockwise (clockwise), background_hspeed[0] = -1 (1), current_mission cycled, the comm box "slideout". obj_destination's Step while moving hides the panel, sets current_scenario = -1 and turns the earth -2 (+2) a step; its collision with an obj_alert (pixel-exact against spr_alertmarker's six per-frame masks, box 0..31 x 23..40) whose scenario_id != last_scenario idles the map, stops the sky, shows "Scenario " + string(scenario_id), sets current_scenario and slides the comm box in (it runs whatever the mode, so left idle the slow turn brings the next marker down in time). Any key (not A, D or Esc held) with current_scenario != -1 and no dot: obj_white_dot (spr_dropdot, depth 1, image_speed 0.1) at the ship, image_angle = direction toward obj_destination, auto_speed = 0, sfx_takeoff; it moves 1 a step fading 0.003 until distance_to_point (from its turned box) is within 1 (about 290 steps), then room_goto(room_intro). obj_btn_upgrade (spr_button_area_small, depth -5): "Upgrades" at y-10 in fnt_point, outline 2, white or cornflower under the mouse with sfx_hover on entry and its message at the bottom; left press sfx_click and obj_fade_map to room_upgrade. Esc room_goto(room_title). Owner-directed changes (U.HARE-T19, 2026-10-26): (1) the original's four markers (16, 150, 270, 310 degrees, scenarios 1-4) become the first of ten, one per original level (50, 83, 117, 190, 230, 343 degrees for scenarios 5-10), mission n launching level_0n; the panel adds the level's name; (2) the original threw the chosen mission away (obj_drop_intro always set gamemode = gm_quickstart; current_scenario = -1; current_level = 1, and scenarios 2-4 shared levels 6-10): the dot's arrival now sets the campaign at the mission's level (ChooseMission) and room_intro keeps it (IntroMissionKept); (3) the boss's mission (level_08, Scrap Mental) is locked, its marker grey and its launch refused, until every other mission is won; a mission is won by completing its own level in the campaign (MissionWon), and the won missions persist in the profile's Saves folder as campaign.json (versioned, safe writes).
|
Core's Map/ (MapScreen with CreateMap, StepMap, PressMapA, PressMapD, PressMapKey, PointMap, PressMap and the Map* events; MapWhiteDot; MapTuning, the map section) and Art/GmlPreciseMask (GameMaker's precise collision with turned boxes); the missions in popups.Alert.Missions (Level, Boss); Session/CampaignProgress, ChooseMission, MissionWon, GameSession.MissionLevel; Runtime's MapRoom (obj_map in room_map: the sky, earth, ship, markers through AlertMarkerView's draw-only path, the dot, the panel, the button, ConversationView, TipView and the pointer), CampaignStore and RoomFlowDirector.Campaign. A won campaign level still goes on to the next level, as the original does, until U.HARE-T64 returns a map mission's win to room_map; U.HARE-T65 folds campaign.json into the full campaign save. obj_scanner's sweeping, flickering beam is V44's (U.HARE-T63)
|
the owner's decisions on U.HARE-T19 (ten missions, the kept launch, the boss lock); the rest read straight from HARE.gmx | owner-directed, U.HARE-T19 |
| V43 | The helper hawk. obj_player's key presses for the four arrows (37-40, not A/D: the ship turns only on 65/68) each run create_helper: if(!instance_exists(obj_helper)) helper = instance_create(x, y, obj_helper). obj_helper (spr_helper 32x32, origin 16,16, colkind 2; depth 0) Create: sfx_hawk, turn_speed = 2, speed = Speed = last_speed = max_speed = 4, smoke_delay = 40, spark_delay = 5, direction = image_angle = player.image_angle, state = "free", turning = false, solo = false, firstPass = true. Its own key events: held left (37) direction += turn_speed; image_angle += turn_speed; turning = true and held right (39) the same minus, both only !paused and free; their releases turning = false; Up (38) press if(speed < max_speed) speed += 1; Speed = speed and Down (40) press if(speed > 1) speed -= 1; Speed = speed, both !paused and free; Page Down (34, not Enter as the ticket guessed) solo = !solo; Delete (46) instance_create(other.x, other.y, obj_rocket_explosion) (other is the helper itself in a key event), black ef_smokeup and orange ef_firework above it, instance_destroy(), neither checking paused. Step, unpaused: speed = Speed; free: solo turns direction 2 degrees toward point_direction(x, y, mouse_x, mouse_y) (by check_rotate_clockwise) unless a_near_b(direction, mouse_direction, 4), image_angle = direction; on firstPass a size-1 white ef_ring; out of view (!in_view(x, y)) last_speed = speed; state = "return", else a size-0 c_gold ef_smoke at x,y every step; return: while distance_to_object(player) > 400 a c_orange ef_smoke, direction = image_angle = point_direction(x, y, player.x, player.y), speed = Speed = max_speed, or player.speed if faster; within it state = "free"; firstPass = true; speed = Speed = last_speed. Paused: speed = 0. Alarm 0 every 40 steps a white ef_smokeup at x - hspeed, y - vspeed (unpaused); Alarm 1 every 5 steps, while turning and unpaused, an ef_spark at x - hspeed + irandom_range(-2,2), y - vspeed + irandom_range(-2,2) in c_amber, c_pink or c_cornflowerblue (irandom_range(1,3), so its default c_yellow is never kept). Alarms 2 (accelerate, which would set turn_speed = ceil(speed / 2)) and 3 (decelerate) are only ever set to 0 by the Up/Down releases, so they never run and turn_speed stays 2. Its par_projectile and par_enemy collisions are wholly commented out, so nothing hits it and it never explodes on contact: only Delete sets it off. obj_carrot's and obj_coin's collision events with obj_helper are their obj_player ones (player.HP += 1 below MAXHP; COINS, the ring, the extra life). setup_level does not clear it; it goes with its room.
|
the same: Core's Helper/HelperField (one helper per ship, the original's one-instance rule for each seat), in GameMaker's step order (alarms, the held arrows, the Step, the built-in motion; direction kept in [0, 360), distance_to_object box to box with spr_helper's box turned to image_angle and the ship's mask's), numbers in the helper section. HareControls' new Helper map holds the arrows (TurnLeft, TurnRight, Faster, Slower; the d-pad on a gamepad), Page Down (Solo) and Delete (Detonate); the arrows left the Player map's Rotate (they were never the ship's) and the Meta map's placeholder Helper (H, /) is gone. PlayerShipController sends the helper's own key commands first and then, on any arrow press, CallHelper, so a new helper has not seen the press that made it. Runtime's HelperDirector steps it every physics step after the pickups, HelperView draws it, and what its mask touches is taken through the pickups' own CollectPickup for the ship that called it; Delete makes the RocketExplosion the rockets use (it can hurt the ship, as the original's can)
|
read straight from HARE.gmx (U.HARE-T66) | matches, U.HARE-T66 |
| V44 | The map's scenery. obj_scanner (spr_scanner_beam 210x211, origin 210,0, its top-right corner; depth 0; no Draw event, so draw_self) is placed at x 1045; Create y = room_height - sprite_get_height(spr_earthball)/2 - sprite_get_height(spr_scanner_beam) + 50 (1080 - 531 - 211 + 50 = 388), image_alpha = 0.2, sweepLeft = true; sweepAmount = 0.1; sweepSpeed = 0.004; sweepY = 0; Step, every step whatever obj_map's mode: if(sweepLeft) { if(sweepY < sweepAmount) sweepY += sweepSpeed; else sweepLeft = false; } else { if(sweepY > -sweepAmount) sweepY -= sweepSpeed; else sweepLeft = true; }, image_angle += sweepY, image_alpha = 0.01 * irandom_range(16, 24). So the beam swings about its corner between 0 and 2.6 degrees, 102 steps a swing (25 up to 0.1, a turning step, 50 down to -0.1, a turning step, 25 back), and flickers 0.16..0.24 from the first step. It shares depth 0 with obj_earthball, made before it in room order; GameMaker draws equal depths in creation order, so the beam's lower 50 px lie over the earth's rim. The rest of room_map's scenery was checked object by object against U.HARE-T19 and already matches V42: obj_earthball (x room_width/2, y room_height, turn_speed 2 on A/D through obj_destination, auto_speed 0.01 while idle, rotate_direction), obj_uss_warren at its computed 372, obj_alert's draw_self turned by degree + obj_earthball.image_angle on the 550 rim with its 0.2 image_speed and pings, obj_destination (never drawn: its Draw is commented out), obj_white_dot, obj_scenario_details (spr_tip_box at 0.7 and its text on the GUI layer), sfx_flick, the comm box's slide-in on a reached mission and slide-out on A/D; obj_map's own draw_self (spr_room_loop, 96x96 about origin 48,48 at -100,63) falls wholly off the room, so nothing of it shows
|
the same: Core's Map/MapScanner (made by CreateMap, stepped by StepMap after obj_earthball's Step; GML's < and > false within its 0.00001 epsilon, GmlLess; the flicker from the screen's IRandomSource), the numbers in the map section (Scanner*); Runtime's MapRoom.Scanner draws it at the earth's sorting order a hair nearer the camera (z -0.01) so the tie falls as GameMaker's
|
read straight from HARE.gmx's obj_scanner, room_map and spr_scanner_beam; the equal-depth order is GameMaker: Studio's creation order | matches, U.HARE-T63 |
| V45 | obj_player's B key (KeyPress 66, no paused check) cycles bullet_asset (Create: spr_bullet_vulcan) through spr_bullet_blue, spr_bullet_orange, spr_bullet_flash, spr_bullet and back; shoot_vulcan draws every round with it (bullet.sprite_index = player.bullet_asset, image_angle = direction, obj_bullet depth -3); each level's new obj_player starts on spr_bullet_vulcan again
|
HareControls' Player BulletLook action on B sends Core's CycleBulletSprite; ShipLook.BulletSprite holds it (reset by SetUpShip), the list is weaponPhysicals.Vulcan.BulletSprites; VulcanWeapon draws each round with it through HareArt (before this the rounds had a serialized sprite field nothing set, so they drew nothing)
|
— | matches (U.HARE-T93) |
| V46 | player_boost and player_brake each instance_create(0, 0, obj_booster_schematic / obj_brake_schematic) when they go through. Create: x = view_wview[0]/2; y = view_hview[0] - height/2; image_alpha = 0.7 (spr_rocketbooster_schematic 300x349, origin 150,174; spr_brake_schematic 300x350, origin 150,175); Step (no paused check): if(image_alpha > 0) image_alpha -= 0.005; else instance_destroy(); Draw GUI draw_sprite_ext(sprite_index, 0, x, y, 1, 1, 0, c_white, image_alpha), Draw //draw_self(). Several can be on screen at once. room_upgrade places neither (the docs had listed them under the garage)
|
Core's BoostStarted/BrakeStarted events; GameHud.ShowSchematic/Schematics stepped with the HUD every room step before its ship check and drawn after the speedometer (same depth, made later); numbers in arena.Hud (BoosterSchematic*, BrakeSchematic*, SchematicAlpha, SchematicFadePerStep)
|
— | matches (U.HARE-T92) |
| V47 | The game modes. setup_level runs, by gamemode: gm_quickstart level_01..10 for current_level 1..10 and level_default past them; gm_generator level_enemygenerator (generate_enemy_list at difficulty, the wormhole emitter until the list is spent); gm_campaign load_scenario(current_scenario, current_level) (scenario 1's levels 1-5 level_01..05, every other scenario's level_06..10). obj_btn_level01..08 set gm_quickstart at their level, obj_btn_diff100/obj_btn_diff0 gm_generator at 100/0, obj_btn_campaign gm_campaign through room_story and room_map; each fades to room_gamescreen, where obj_game's Create runs setup_level and the level script's if(room != room_x) room_goto(room_x) moves on (level_04 to room_shaft, level_05 to room_sidescroll). obj_btn_quickstart (captioned "Story Mode"), obj_btn_level09 and obj_btn_shaft are never placed in any room (obj_logo's line for obj_btn_quickstart is commented out). room_upgrade's obj_upgrade makes obj_btn_map at (100, 40): obj_btn_upgrade's twin captioned "Observation Deck" (its message copied unchanged, "Upgrade H.A.R.E. Unit's systems"), whose left press plays sfx_click and fades to room_map; bg_metal tiled, hspeed -1
|
Core's LevelSetup.ScriptFor/SettingFor/RoomGoto for the whole session (load_scenario in the campaign), LevelSetup.EntryRoom (the menus go straight to the level script's own room), LevelSetup.RoomAfterLevel and GameSession.EndsMission; Core's Upgrade/UpgradeScreen (data in upgrades.Screen) and Runtime's UpgradeRoom; the never-placed buttons stay ported but unplaced
|
A map mission (V42, owner-directed) plays its marker's own level_0n rather than load_scenario's, and once won goes back to room_map instead of on to the next level (otherwise level_07 would run into the locked boss's level_08); the throwaway room_gamescreen hop is skipped (same game, no flash of the wrong room) | matches, deviations owner-directed (U.HARE-T64) |
| V48 | The flashbomb. obj_player's key press F (70) runs flashbomb = instance_create(0, 0, obj_flashbomb) with no ammo, cooldown, paused or dead check (confirmed against HARE.gmx: nothing counts or limits it), so every press is another bomb. obj_flashbomb (spr_white 32x32, origin 0,0; depth -1000) Create: on = true; count = 0, image_xscale/yscale = view_wview/hview[0] at view 0's corner, alpha = 0.8; image_alpha = alpha, burst_alpha = 1, radius..radius4 = 0, flash_count = 12, rate = 6; alarm[0] = rate, instance_create(0, 0, obj_rabbit_schematic), audio_play_sound(sfx_flashbomb, 1, 0). Alarm 0: lit stays lit (on = false; image_alpha = alpha), then dark (on = true; image_alpha = 0; count += 1), re-armed while count < flash_count (its own sweep and destroy are commented out). Step (no paused check): follows view 0, radius += 10; radius2 += 8; radius3 += 6; radius4 = 4, the sweep (D26), then if(burst_alpha > 0) burst_alpha -= 0.01; else instance_destroy(): about 102 steps, so the bomb is gone after 8 of its 12 dark phases. Draw: draw_self(), then the four draw_circle_color(player.x, player.y, radius*, c_white, c_white, true) outlines at burst_alpha. obj_rabbit_schematic (spr_rabbit_schematic 235x448, origin 117,224) is obj_booster_schematic's twin (V46): Create at (view_wview/2, view_hview - height/2), alpha 0.7, -0.005 a step to destroy, Draw GUI
|
Core's Arena/Flashbomb (FlashbombField: SetOffFlashbomb per seat, StepFlashbombs every room step paused or not, events FlashbombSetOff/Blinked/Swept/Gone; numbers in arena.Flashbomb); GameHud.ShowSchematic(SchematicKind.Rabbit) with the RabbitSchematic* numbers in arena.Hud; Runtime's FlashbombView (the view-sized flash and the four 24-segment circles round the ship) and FlashbombSweep (enemies to RocketExplosion and removed without death, score, KILLS or drop, as no par_enemy has a Destroy event; obj_bullet, obj_rocket, obj_mine and obj_enemy_mine to TinyExplosion), read by ArenaRoom on the Meta map's F
|
the 8-of-12 blink is kept: it is how the original looks, and the bomb's end is its fade, not a bug | matches (U.HARE-T67; sweep D26) |
| V49 | The garage. room_upgrade places obj_btn_upgrade_vulcan (464, 352), obj_btn_upgrade_shotgun (464, 480) and obj_upgrade_missle (464, 608): spr_icon_* 52x57 drawn by draw_self, their Create's message ("A high powered gatling gun which cycles up to maximum firing rate", "A shotgun that shoots a burst of pellets in a spread", "A fire-and-forget explosive projectile") drawn by draw_text_outline(room_width / 2, room_height - 30, 2, message) while hovered, no press event; obj_label (draw_text_outline_color_alpha(x, y-10, 2, text, c_white, c_black, 1), fa_left, fnt_point) "Rate of Fire" (592, 336), "Reload" (592, 464), "Spread" (784, 464), "Power" (592, 592); the pips (spr_upgrade_circle_empty/filled 52x57, box 5..46 by 8..49, sfx_hover on mouse enter, their message while hovered): one obj_upgrade_vulcan1 at (528, 352) "Increase Vulcan Cannon's fire rate by 5%", obj_upgrade_shotgun1 at x 528/576/624 and 720/768/816 y 480, obj_upgrade_missle1 at x 528/576/624 y 608 "Increase missles explosive radius", each costing one SKILLPOINT; obj_upgrade's Draw GUI "Skill Points x" + string(SKILLPOINTS) at (room_width - 200, room_height - 60), fa_center, fnt_score. Nothing reads a pip (D27)
|
Core's Upgrade/UpgradeScreen (PointUpgrade hover messages and sound, PressUpgrade buying into CampaignProgress, UpgradeBought), Content/UpgradeCatalog (upgrades.Upgrades pips with an id, row (UpgradeTrack), place and message; upgrades.Effects percent a pip; SkillPointsPerMissionWon; the room's look in upgrades.Screen), Weapons/ShipUpgrades fitted with the player command FitUpgrades (GunRack.Upgrades); Runtime's UpgradeRoom (icons, labels, pips, messages, the Skill Points line, saving at once through RoomFlowDirector.SaveCampaign), ArenaRoom fitting the campaign's upgrades to the ship as it is set up, Shotgun (spread), AirWeaponLoadout/Rocket/RocketExplosion (blast)
|
gaps filled with the plainest reading of the labels: the vulcan row gets two more pips at x 576 and 624 (the other rows have three; the vulcan's lone pip looks unfinished) and every row is worth 5% a pip (vulcan: rate x(1 + 5% a pip), so its wait between rounds is divided by it; shotgun: re-arm wait and the -8..+8 degree spread x(1 - 5% a pip)) except Power, which names no figure and is 10% a pip on obj_rocket_explosion's size and reach for the ship's own rockets; pips can be bought in any order, as in the original; the upgrades apply in every mode once bought (the save is the player's); points come from first wins of map missions, the original's only campaign progress; all numbers are data | deviations owner-directed by the port rule (U.HARE-T24; fixes D27) |
| V50 | The campaign lives in globals only: COINS, SKILLPOINTS, current_scenario and current_level are set by globals.gml and the menus, current_score is zeroed level by level, and nothing is written anywhere (obj_upgrade_*'s //Write to Ini here is a comment), so quitting or game_restart loses it all; obj_btn_campaign and obj_story's gamemode = gm_campaign always start at level 1 with no scenario
|
the campaign is saved (U.HARE-T65): Core's CampaignProgress, now version 3 ({"Version": 3, "Won": [...], "Upgrades": [...], "Coins": n, "Scenario": s, "Level": l, "BestScores": {"<level>": score}}; versions 1 and 2 still read, with no coins, the campaign at level 1 and no scores), kept as campaign.json in the Unity.Shared profile's Saves/ folder by CampaignStore (written to campaign.json.tmp, then swapped in with File.Replace; an unreadable file is moved to campaign.json.bad and the campaign starts afresh). It holds the map missions won (V42), the garage's pips (V49) and with them SKILLPOINTS (derived: 5 + a point a first mission win - the pips bought, D27), the COINS carried (below the 100 that make a life), where the campaign run from the story stands (current_scenario, current_level; a map mission's level is its own and is not recorded as the run's) and each campaign level's best score (the highest current_score it was finished with, set_level_complete). RoomFlowDirector writes it once at each checkpoint, never on every coin: a mission won, a campaign level finished (its score, the coins, the level), the run moving on a level or choosing a scenario (the coins, where it stands), a garage pip bought. Choosing the campaign (ChooseCampaign on the title or story, ChooseMission on the map) reads the file again and puts it on the session with the RestoreCampaign session command (CampaignRestored): the saved coins, and for the run from the story the scenario and level reached, so the campaign carries on where it was left rather than at level 1; quick start and the generator are untouched
|
owner-directed (U.HARE-T65): a campaign that forgets everything on restart; a deliberate addition with no counterpart in the original | kept |
| V51 | obj_jukebox is not persistent and setup_level makes a new one every level without destroying the last; GameMaker's audio is not tied to a room, so a track plays on through room changes (no audio_stop_* is live anywhere)
|
one Jukebox per play room (Jukebox.Ensure, reused across that room's levels); the track plays on the persistent HareAudio host, so it carries on through the map, story and title to its end, and the next play room's jukebox picks again once it has finished; the music source has top voice priority, and a missing clip silences the jukebox (one warning) instead of rerolling every frame
|
the extra jukeboxes all ran the same check and could only ever start one track; the rest are the best-practice choices the original never had to make (it never played music) | kept, U.HARE-T29 |
| V52 | A credits screen. The original has no credits room: its only credit is datafiles/credits.txt (the Jim Rogers minigun sound, soundbible.com), never shown in game, and it names no music, font or sprite author.
|
the title shows a Credits link bottom right once the menu is up; it opens a screen listing the minigun credit, the six music tracks (five tagged Kevin MacLeod in their ID3; music_pinballspring.mp3 untagged), the Arial and Berlin Sans FB faces (proprietary, glyph rasterisations only, no font file shipped) and the unattributed sounds and sprites, each with its licence, unverified wherever no file says (CreditsView); the same list is docs/CREDITS.md. The font question left open in section 6 stays open there: shipping the rasterised proprietary glyphs publicly needs a decision before release
|
kept, U.HARE-T69 | |
| V53 | The product's identity and window. HARE.gmx's own title is H.O.P., High Orbit Patrol (globals.gml, "Welcome to H.O.P"); H.A.R.E. is the older name still in the project folder and in some strings ("Upgrade H.A.R.E. Unit's systems", kept as the original wrote it). The original ran windowed at 1920x1080 (option_fullscreen False, option_interpolate True, vertical sync off) with GameMaker's stock runner icon (option_icon nil, runner_icon.ico from the template)
|
the product name is "H.O.P. High Orbit Patrol" (ProjectSetup.ProductName), the title the game itself shows; H.A.R.E. stays only where the original's own text says it. The Windows player starts windowed at 1920x1080, resizable (the letterbox scales the game) and can switch to fullscreen; v-sync is on at every Quality level (the original's was off, which only let it tear); the Unity splash is off; the app icon is the original's title logo (spr_logo), because the original shipped no icon of its own: GameMaker's stock one is not the game's art and is not used. Scenes list: Main first, then every room scene in project order, Online last (ProjectSetup.EnsureBuildSettings). Settings are written in code by ProjectSetup.ApplyReleaseSettings; tools/build.ps1 builds, tools/play.ps1 launches
|
the name is what the game calls itself; the rest is release polish with no gameplay effect | kept, U.HARE-T71 |
| V54 | obj_player's left-button release with the laser up is the only place audio_stop_sound(sfx_fire_laser) and audio_stop_sound(sfx_loop_laser) run; the beam itself can go out other ways (a weapon switch, the ship's death, the shield going up) with no matching stop, so the one-shot sfx_fire_laser ends on its own but the looping sfx_loop_laser hum plays on under a different weapon, a dead ship or a raised shield until the trigger is next released
|
LaserGun.OnPlayerEvent's GunBeamStopped runs StopLaser() and stops both FireSound and LoopSound whatever closes the beam (trigger release, weapon switch, death, shield), not only the release
|
GunBeamStopped already fires for every way the beam ends; leaving a dead or switched-away ship's laser still humming would be a worse listen than the original's narrower stop, and nothing plays the sounds back once the beam is gone
|
kept (U.HARE-T30, 618dda5) |
| V55 | No rebinding: every key is fixed in its object's key events (obj_player's A/D/W/S/Space/Ctrl/Alt/B/Q/E and mouse buttons, obj_helper's arrows, Page Down and Delete, obj_game's M/F12/P/R/Esc/F1/U/numpad +/-/F11), there is no options screen and no gamepad | a deliberate addition (U.HARE-T120, finishing U.HARE-US-N6): the title shows a Controls link bottom left once the menu is up; it opens ControlsView, which lists every Player, Helper and Meta action of HareControls (Player/Aim, the pointer itself, excepted) with its bindings per control scheme (Keyboard&Mouse or Gamepad tab), rebinds the clicked one with PerformInteractiveRebinding (limited to that scheme's devices; Esc cancels) and has Reset to defaults. HareBindings keeps the overrides as the Input System's SaveBindingOverridesAsJson document in controls.json in the Unity.Shared profile's Saves folder beside campaign.json (written via a temp file; an unreadable file is set aside as controls.json.bad), reads it at boot, applies it to every runtime HareControls (HareBindings.Create) and reapplies a new set to every live instance at once. The defaults stay the original's keys, so a player who never opens the screen plays exactly the original's controls
|
AGENTS.md rule 6 (the Input System, RECONSTRUCTION standards audit) and U.HARE-US-N6 ask for rebindable controls across keyboard, mouse and gamepad | kept |
Keeping these tables current
Every ticket that changes how the rebuild plays relative to the original updates §7 or §8 in the same commit: add a row for a new difference, change a row's status when it is settled, and delete nothing (a settled row says matches). Every fixed defect recorded in REVERSE_ENGINEERING.md also gets a row here. A difference found with no row is a bug: file a ticket.
9. Documents
| File | What it is |
|---|---|
README.md
|
what the game is, status, layout, how to build, run and test, controls |
RECONSTRUCTION.md
|
the original's inventory and game flow, the parity matrix, the standards audit, the build order |
REVERSE_ENGINEERING.md
|
per-object and per-script notes read from the GML source |
USER_STORIES.md
|
generated from the ticket database; never edit by hand |
legacy-poc/
|
the old Unity 5 proof of concept's scripts, as non-compiling reference |
AGENTS.md
|
the rebuild standard and where the original lives |
10. Glossary
- Step: one GML game tick;
room_gamescreenruns 120 a second. - Alarm: a GML per-instance countdown in steps that fires an event at zero.
- Perched / Idle:
state_idle, the ship standing on a rock or structure; ground weapons and the shield work only here. - Flying / Moving:
state_moving; boost, brake and the air weapons work only here. - Ground / air weapon: the ship's state when it fires, not the target.
- RGB: a rock's or meatball's grey
image_blend, its health: hits darken it, it heals over time, it breaks at 128 or below. - Emitter / vortex:
par_enemy_emitter, the spinning portal that keeps a kind topped up to its maximum. - Wormhole: generator mode's one-shot portal that releases one enemy from the difficulty list.
- The original: GameMaker 8.1
HARE.gmxatR:\...\gmlHARE;gmlRabbitis an earlier build kept as reference only.