static void initialise() { if (self->active == TRUE) { if (cameraAtMinimum()) { centerMapOnEntity(NULL); self->startX = self->maxThinkTime = 60; self->thinkTime = 6; self->flags &= ~FLY; self->flags |= LIMIT_TO_SCREEN; self->action = &doIntro; setEntityAnimation(self, "WALK"); self->frameSpeed = 0; setContinuePoint(FALSE, self->name, NULL); } } }
static void initialise() { self->thinkTime++; if (self->thinkTime >= 360) { self->thinkTime = 0; } if (self->active == TRUE) { if (self->thinkTime == 1 || self->thinkTime == 181) { self->thinkTime = 0; } if (cameraAtMinimum()) { centerMapOnEntity(NULL); self->dirX = self->speed; self->action = &doIntro; self->thinkTime = 180; setContinuePoint(FALSE, self->name, NULL); } } self->x = self->startX + sin(DEG_TO_RAD(self->thinkTime)) * 10; }
static void initialise() { if (self->active == TRUE) { setContinuePoint(FALSE, self->name, &continuePoint); initBossHealthBar(); self->thinkTime = 60; self->maxThinkTime = 0; self->action = &entityWait; } checkToMap(self); }
static void initialise() { Target *t; self->flags |= NO_DRAW; if (self->active == TRUE) { if (cameraAtMinimum()) { createBody(); centerMapOnEntity(NULL); t = getTargetByName("SNAKE_BOSS_TARGET_RIGHT"); if (t == NULL) { showErrorAndExit("Snake boss cannot find target"); } setSnakePosition(t->x, t->y); self->targetY = self->y - 64; self->thinkTime = 60; self->face = LEFT; self->flags |= LIMIT_TO_SCREEN; self->action = &riseUp; playDefaultBossMusic(); initBossHealthBar(); setContinuePoint(FALSE, self->name, NULL); } } }
static void init() { if (self->active == TRUE) { initBossHealthBar(); setContinuePoint(FALSE, self->name, &continuePoint); self->thinkTime = 120; self->action = &teleportAway; self->maxThinkTime = 0; self->startX = 0; self->startY = -1; } checkToMap(self); }
static void initialise() { if (self->active == TRUE) { self->flags &= ~NO_DRAW; if (cameraAtMinimum()) { centerMapOnEntity(NULL); self->action = &doIntro; self->thinkTime = 60; self->touch = &touch; setContinuePoint(FALSE, self->name, NULL); } } checkToMap(self); }
static void initialise() { if (self->active == TRUE) { if (self->mental == 0) { if (strcmpignorecase(getWeather(), "HEAVY_RAIN") != 0) { self->flags &= ~NO_DRAW; setWeather(HEAVY_RAIN); playDefaultBossMusic(); } centerMapOnEntity(NULL); self->action = &doIntro; self->thinkTime = 60; self->endX = 0; self->touch = &entityTouch; setContinuePoint(FALSE, self->name, NULL); } else { self->action = &appear; } } checkToMap(self); }