forked from lukaus/antfarm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplans.txt
66 lines (56 loc) · 1.38 KB
/
plans.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
AntSim
-------
A 2d hands-off ant colony simulator
----------
Ants:
id
hunger
health
sex
color
Ant types:
Queen
Worker (female)
Soldier (male)
Environment:
hard dirt (no gravity)
soft dirt (moveable and affected by gravity)
grass
grows and is eaten by other bugs (eventually maybe)
Marker/Pheremone
detected by ants, signal "food" or "danger"
Bugs
Caterpillar
lots of hp
lots of food
slow
Aphid
fast
not much hp
not much food
Spider
fast
medium hp
medium food
eats/kills ants, triggering defense pheremone burst
Classes:
Entity
any aspect of simulation physically represented on screen
x
y
SFML entity
color
GravityEntity
any entity that is affected by gravity
inherits from Entity, but has Update function that makes it fall
Environment
dirt, LooseDirt, Grass
Creature
anything with HP, hunger, and sex
Ant, Caterpillar, etc
maybe sub classes for WorkerAnt, QueenAnt, etc
Views:
Top-down view for watching the surface.
Cut away side view for watching ants underground, like through the window of an ant farm.
Side view should be movable in the x and y axis so you can only see a "slice" at a time.
See the game Sim-Ant for an example.