thmsndk / Screeps3D

A 3D client for the MMORTS Screeps.com
90 stars 17 forks source link

Support for PowerCreeps #17

Open thmsndk opened 5 years ago

thmsndk commented 5 years ago

i'll write a more detailed task list later, I assume we can be inspired a lot by the existing creep, perhaps enhance it in some way

https://docs.screeps.com/api/#PowerCreep https://docs.screeps.com/power.html#Power-Creeps https://support.screeps.com/hc/en-us/articles/115001254709-Discussion-Power-Creeps

https://github.com/screeps/renderer/blob/master/metadata/src/objects/powerCreep.metadata.js#L43 https://github.com/screeps/renderer/tree/master/metadata/images

Classes

thmsndk commented 5 years ago

Example of powercreep with the class operator image KittyTack mentioned the following

Different parts of the PC light up depending on level. This is a maxed one.

image https://screeps.com/a/#!/room/shard3/W3S5

Notice that the powers has a cooldown

thmsndk commented 5 years ago

Asked how people imagined power creeps

Slighty bigger. Shinier or scarier, whichever.

Give them an aura of radiance. :smile:

there is a preview of all 3 types on the "create power creep" page in the official client, i guess they should be somehow recognizable? Although when i first saw the model for the operator on the ptr i though it was just a placeholder graphics, the seethrough stuff on the model seems kinda weird to me

thmsndk commented 5 years ago

Each uses a bit different badge positioning https://github.com/screeps/renderer/blob/master/metadata/src/objects/powerCreep.metadata.js#L10-L23 View in Slack

thmsndk commented 5 years ago

While viewing the earlier mentioned powercreep the following rendered on the UI image Is that when using powers? a Visual glitch? or what on earth is it?

A: This appears to be the generateOps power

thmsndk commented 5 years ago

In regards to the powers, they can be found in the api constants https://docs.screeps.com/api/#Constants

PWR_GENERATE_OPS: 1,
PWR_OPERATE_SPAWN: 2,
PWR_OPERATE_TOWER: 3,
PWR_OPERATE_STORAGE: 4,
PWR_OPERATE_LAB: 5,
PWR_OPERATE_EXTENSION: 6,
PWR_OPERATE_OBSERVER: 7,
PWR_OPERATE_TERMINAL: 8,
PWR_DISRUPT_SPAWN: 9,
PWR_DISRUPT_TOWER: 10,
PWR_DISRUPT_SOURCE: 11,
PWR_SHIELD: 12,
PWR_REGEN_SOURCE: 13,
PWR_REGEN_MINERAL: 14,
PWR_DISRUPT_TERMINAL: 15,
PWR_OPERATE_POWER: 16,
PWR_FORTIFY: 17,
PWR_OPERATE_CONTROLLER: 18,
PWR_OPERATE_FACTORY: 19
thmsndk commented 5 years ago

Picture of the temporary model image