Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //init galaxians
- for (int y = 0; y < ENEMYHEIGHT; y++)
- {
- for (int x = 0; x < ENEMYWIDTH; x++)
- {
- if (level1[y][x] == 'p')
- galaxians[y][x] = new Galaxian(images->privateer, screen->GetWidth());
- else if (level1[y][x] == 'm')
- galaxians[y][x] = new Galaxian(images->major, screen->GetWidth());
- else if (level1[y][x] == 'c')
- galaxians[y][x] = new Galaxian(images->colonel, screen->GetWidth());
- else if (level1[y][x] == 'g')
- galaxians[y][x] = new Galaxian(images->general, screen->GetWidth());
- else
- galaxians[y][x] = NULL;
- if (galaxians[y][x] != NULL)
- {
- galaxians[y][x]->position = vec2(60 + 25 * x, 30 + 25 * y);
- galaxians[y][x]->velocity = vec2(1, 0);
- }
- }
- }
- galaxians[2][9]->state = PrepareArcMovement;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement