I'm planning on exposing the math about how modules will affect how ships are made and react to the engine.
I just thought of a easy way to doing it, I can expose one of the qml files, it looks like javascript, then if anyone is interested it will be easy to tweak.
I've planned initially to have 5 values for each component, which may increase over time if necessary, so an engine could have:
Value 1: Speed
Value 2: Turn Speed
Value 3: Jump Speed
Value 4: Energy Consumption
And a fixed value that is Weight.
So in the QML we could have something like this:
if (smallShip) ShipConstant = 6
if (mediumShip) ShipConstant = 4
if (largeShip) ShipConstant = 2
if (hugeShip) ShipConstant = 1
SpeedInHex = ( Speed * ShipConstant ) / Weight
EnergyConsumed = Distance * EnergyConsumption
Things like that.
I just thought of a easy way to doing it, I can expose one of the qml files, it looks like javascript, then if anyone is interested it will be easy to tweak.
I've planned initially to have 5 values for each component, which may increase over time if necessary, so an engine could have:
Value 1: Speed
Value 2: Turn Speed
Value 3: Jump Speed
Value 4: Energy Consumption
And a fixed value that is Weight.
So in the QML we could have something like this:
if (smallShip) ShipConstant = 6
if (mediumShip) ShipConstant = 4
if (largeShip) ShipConstant = 2
if (hugeShip) ShipConstant = 1
SpeedInHex = ( Speed * ShipConstant ) / Weight
EnergyConsumed = Distance * EnergyConsumption
Things like that.