/*********************** * Johnny Jetpack * by Paul Adam and Jamie Bradley * * drawcoins.c * * this file contains all the functions needed to place a coin * in the game environment. *************************/ #include #include #include #include "johnny.h" void DrawCoin(int x, int y, int z) { glPushMatrix(); glTranslatef(x,y,z); glRotatef(superrotate,0,1,0); glMaterialfv (GL_FRONT_AND_BACK, GL_DIFFUSE, yellow); glMaterialfv (GL_FRONT_AND_BACK, GL_AMBIENT, yellow); coin_default(); glPopMatrix(); superrotate = (superrotate + 5) % 360; } void DrawCoins(int coin[][6], int numcoins) { int i; for(i=0; i