Skip to content

Commit

Permalink
Simplifies the display of ants in the "Classic" model
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexisDrogoul committed Jun 28, 2021
1 parent 3ffa904 commit a506488
Showing 1 changed file with 6 additions and 3 deletions.
Expand Up @@ -145,15 +145,18 @@ species ant skills: [moving] control: fsm {
aspect info {
if(use_icons) {
draw ant_shape size: {7, 5} rotate: my heading + 1;
} else {
draw circle(1) wireframe: !has_food color: #red;
}
draw circle(1) wireframe: !has_food color: #red;

if (destination != nil) {
draw line([location + {0, 0, 0.5}, {location.x + 5 * cos(heading), location.y + 5 * sin(heading)} + {0, 0, 0.5}]) + 0.1 color: #white border: false end_arrow: 1.2;
}
if (state != "wandering") {
draw circle(4) wireframe: true color: #white;
draw string(self as int) color: #white font: font("Helvetica", 14 , #bold) at: my location - {1, 1, -0.5};
//draw circle(4) wireframe: true color: #white;

if(display_state) {
draw string(self as int) color: #white font: font("Helvetica", 14 , #bold) at: my location - {1, 1, -0.5};
draw state color: #yellow font: font("Helvetica", 18, #bold) at: my location + {1, 1, 0.5} ;
}
}
Expand Down

0 comments on commit a506488

Please sign in to comment.