PRODUCTION + TECH TREE: player-side ClassicProductionQueues (Base/Units), sidebar with ClassicProductionLogic palette + type buttons, buildable swat/$250 hauler/$700 warcar/$900 (workshop prereq = first tech edge), Workshop building $1200 with placement preview, depot produces both queues with exits, build icons generated from sprites, $2000 starting cash

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
type-two 2026-08-31 19:45:35 +10:00
parent 71416b3843
commit 887039c289
13 changed files with 106 additions and 2 deletions

View File

@ -13,3 +13,32 @@ Container@PLAYER_WIDGETS:
LogicTicker@SIDEBAR_TICKER:
MenuButton@OPTIONS_BUTTON:
Key: escape
Container@PRODUCTION_SIDEBAR:
Logic: ClassicProductionLogic
X: WINDOW_WIDTH - 220
Y: 60
Width: 210
Height: WINDOW_HEIGHT - 80
Children:
Container@PRODUCTION_TYPES:
Width: 210
Height: 30
Children:
ProductionTypeButton@BUILDINGS_BUTTON:
Width: 100
Height: 28
Text: Base
ProductionGroup: Buildings
ProductionTypeButton@UNITS_BUTTON:
X: 105
Width: 100
Height: 28
Text: Units
ProductionGroup: Units
ProductionPalette@PRODUCTION_PALETTE:
Y: 36
Width: 210
Height: WINDOW_HEIGHT - 120
Columns: 3
LogicTicker@PRODUCTION_TICKER:

View File

@ -19,3 +19,4 @@ actor-biotitan-name = Bio-Titan
actor-warcar-name = War Car
actor-hauler-name = Record Hauler
actor-depot-name = Record Depot
actor-workshop-name = Workshop

View File

@ -164,6 +164,12 @@ biotitan:
Categories: Units
warcar:
Buildable:
Queue: Units
BuildPaletteOrder: 30
Prerequisites: workshop
Valued:
Cost: 900
Tooltip:
Name: actor-warcar-name
AlwaysVisible:
@ -198,6 +204,11 @@ warcar:
Categories: Units
hauler:
Buildable:
Queue: Units
BuildPaletteOrder: 20
Valued:
Cost: 700
Tooltip:
Name: actor-hauler-name
AlwaysVisible:
@ -300,6 +311,44 @@ depot:
Refinery:
UseStorage: false
DockHost:
Production:
Produces: Buildings, Units
Exit@1:
SpawnOffset: 0,0,0
ExitCell: 1,3
Exit@2:
ExitCell: 3,3
WithSpriteBody:
RenderSprites:
MapEditorData:
Categories: Buildings
workshop:
Tooltip:
Name: actor-workshop-name
AlwaysVisible:
RevealsShroud:
Range: 5c0
Buildable:
Queue: Buildings
BuildPaletteOrder: 10
Valued:
Cost: 1200
ProvidesPrerequisite@name:
Selectable:
Bounds: 2048, 2048
SelectionDecorations:
Targetable:
TargetTypes: Ground
Health:
HP: 40000
HitShape:
BodyOrientation:
QuantizedFacings: 1
Building:
Dimensions: 2,2
Footprint: xx xx
FootprintPlaceBuildingPreview:
WithSpriteBody:
RenderSprites:
MapEditorData:

View File

@ -17,6 +17,11 @@ example.colorpicker:
-MapEditorData:
swat:
Buildable:
Queue: Units
BuildPaletteOrder: 10
Valued:
Cost: 250
Tooltip:
Name: actor-swat-name
AlwaysVisible:

View File

@ -3,6 +3,8 @@
Name: greyscale
PaletteFromGrayscale@effect:
Name: effect
PaletteFromGrayscale@chrome:
Name: chrome
PlayerColorPalette@player:
BasePalette: greyscale
PlayerColorShift:

View File

@ -7,8 +7,15 @@ player:
FrozenActorLayer:
DeveloperMode:
PlayerResources:
MissionObjectives:
ConquestVictoryConditions:
DefaultCash: 2000
TechTree:
PlaceBuilding:
ClassicProductionQueue@Buildings:
Type: Buildings
Group: Buildings
ClassicProductionQueue@Units:
Type: Units
Group: Units
editorplayer:
Inherits: ^baseplayer

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

View File

@ -99,6 +99,8 @@ biotitan:
Length: 3
Tick: 140
warcar:
icon:
Filename: sequences/assets/i_warcar.png
stand:
Filename: sequences/assets/warcar_stand.png
Facings: 16
@ -109,6 +111,8 @@ warcar:
Facings: 16
Length: 5
hauler:
icon:
Filename: sequences/assets/i_hauler.png
stand:
Filename: sequences/assets/hauler_stand.png
Facings: 16
@ -140,3 +144,8 @@ records:
depot:
idle:
Filename: sequences/assets/d_depot.png
workshop:
icon:
Filename: sequences/assets/i_workshop.png
idle:
Filename: sequences/assets/d_workshop.png

View File

@ -3,6 +3,8 @@ example:
Filename: sequences/assets/example.png
swat:
icon:
Filename: sequences/assets/i_swat.png
stand:
Filename: sequences/assets/swat_idle.png
Facings: 8