void renderEnemy(){ for (int i = 0;i<enemyVector.size();i++){ enemyVector[i].drawEnemy(); } };
void enemy::drawEnemy(){ const string playerFilename = "SmallMine.tif"; const int DROPS_X_FRAME_COUNT = 1; const int DROPS_Y_FRAME_COUNT = 1; VGCImage player = VGCDisplay::openImage( playerFilename, DROPS_X_FRAME_COUNT, DROPS_Y_FRAME_COUNT ); const VGCVector frameIndex = VGCVector(0, 0); const VGCVector position = VGCVector(xPos, yPos); const VGCAdjustment adjustment = VGCAdjustment(0.0, 0.0); VGCDisplay::renderImage(player, frameIndex, position, adjustment); VGCDisplay::closeImage(player);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)