FANDOM


Lunatic
Lunatic
Some Lunatics shooting at nothing in particular

Author

Devon

Strategy

Autotroph with passive dodging

Last modified

4/9/2002

Lunatic was the very first side, hardcoded in C++ by Devon before user-defined sides worked, and it was recreated as the first Forth side. Though very simple, it can prove difficult to eliminate because of its passive dodging, and its indiscriminate blasting sometimes confuses (or even kills) enemies.

Its aimless shooting was originally intended to be a realistic option (because it's cool!), but because the main constraint on weapon use is firing cost, not sensing, it couldn't be made competitive.

Cycle is a serious derivative: it fires at enemies rather than aimlessly, and circles only when shot at, to save energy.

FileEdit

This is the recreated version.

#side lunatic
#author Devon
#date 6 Feb 2002

#color fff

#type lunatic
Runs in circles and strafes. Harmless, but the circular motion makes it
surprisingly hard to kill. Has been known to actually win rounds!
(Movement has become much more expensive since, so it will no longer be
so effective.)

Based on the very first hardcoded brain. :)

(20020409) Updated for engine-velocity!

#color ff0

#hardware
processor 10
engine .1 ;HUGE engine
armor 200
repair-rate .1
solar-cells .4
constructor .25
energy 100 10
blaster 0.1 8 3

#code

#var dir
#var increment

random-angle dir!
0.15 0.3 random 0 1 random-int -1 1 ifev * increment!
engine-max-power engine-power!

do
	dir increment + dir!
	1 dir polar-to-rect engine-velocity!
	energy 50 > if
		1 constructor-type!
		constructor-max-rate constructor-rate!
		max-repair-rate repair-rate!
	else
		0 constructor-rate!
		0 repair-rate!
	then
	energy 90 > if
		dir fire-blaster
	then
forever

#end

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.