Instalar Steam
iniciar sesión
|
idioma
简体中文 (Chino simplificado)
繁體中文 (Chino tradicional)
日本語 (Japonés)
한국어 (Coreano)
ไทย (Tailandés)
български (Búlgaro)
Čeština (Checo)
Dansk (Danés)
Deutsch (Alemán)
English (Inglés)
Español - España
Ελληνικά (Griego)
Français (Francés)
Italiano
Bahasa Indonesia (indonesio)
Magyar (Húngaro)
Nederlands (Holandés)
Norsk (Noruego)
Polski (Polaco)
Português (Portugués de Portugal)
Português - Brasil (Portugués - Brasil)
Română (Rumano)
Русский (Ruso)
Suomi (Finés)
Svenska (Sueco)
Türkçe (Turco)
Tiếng Việt (Vietnamita)
Українська (Ucraniano)
Informar de un error de traducción
{
// initialization
const int screenWidth = 800;
const int screenHeight = 450;
InitWindow(screenWidth, screenHeight, "NPC following tutorial");
std::vector<Vector2> path = { {100, 100}, {700, 100}, {700, 350}, {100, 350}, {400, 225} };
NPC npc({ 100, 100 }, 2);
SetTargetFPS(60);
while (!WindowShouldClose())
{
npc.followPath(path);
BeginDrawing();
ClearBackground(RAYWHITE);
for (const auto& point : path)
{
DrawCircleV(point, 10, DARKBLUE);
}
npc.draw(); //Draw the NPC
EndDrawing();
}
CloseWindow();
return 0;
}