Skip to main content
GameDev.net gamedev.net

PRO Tired of ads? Read GameDev.net ad-free and help keep the community independent with GameDev Pro — $3/month.

Corepox explained: the Constant

Corepox explained: the Constant

Tom Larkworthy
Corepox · · 1 min read
1,132 0

Today we look at the most used component in Corepox spaceships, the constant.

A constant is basically a numeric output. It is one of the simplest components in Corepox. However, its meaning and magnitude changes according to the number configured & the part that is connected to. Below there are two cases that show how the constant’s meaning and power, changes in different situations.

a27d24_28d87cb04a324c6ba97d2d04918ca138m Engine <-> Constant

Constant connected to an engine

An engine has an input which symbolizes its thrust. When connected to a constant, the speed of the engine is proportional to the value of the constant. If the constant is zero or less, the engine is off.

a27d24_5b3d23cf91cd4bbc9dd8aa9659d29613mEngine <-> Lazer Turret

Constant connected to a lazer turret

The lazer turret has an input that defines the direction the turret shoots. This input is called the angle input. When a constant is connected to the turret, then the turret will fire in the direction the constant specifies.

Depending on each spaceship design, this component can change power and magnitude. Now, it’s up to us to discover how to use it wisely to make our battles victorious.


Read the full article at corepox.net

Discussion

Loading comments...