Skip to content

UndefinedCpp/screeps-arena-health-visualizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Health visualizer for Screeps:Arena

Visualize creeps' health via health bar. Only a lightweight file. 爬爬血量可视化模块。

Usage

Import the file and call the function for a creep.

import { Creep } from "game/prototypes";
import { getObjectsByPrototype } from "game/utils";
import { showHealthBar } from "<path-to-this>/healthVisualizer.mjs";
export function loop() {
    getObjectsByPrototype(Creep).forEach(creep => showHealthBar(creep););
}

example

In fact, it's capable for all objects containing property x, y, hits, and hitsMax. You can apply StructureTower to it too.

Contribution

Any contribution is welcome. 计划加入更多绘制选项。

About

Visualize creeps' health via health bar. Only a lightweight file.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published