assignment3

assignment3 - Simple money calculator. Images needed

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
// This program demonstrates how to determine whether or not // the user has clicked on a sprite. #include "DarkGDK.h" # // Constants const int penny = 1; const int nickle = 2; const int dime = 3; const int quarter = 4; const int counter = 5; const int REFRESH_RATE = 60; // The refresh rate c const double pennyAmount = 1; const double nickleAmount = 5; const double dimeAmount = 10; const double quarterAmount = 25; float total; f // Function prototypes void setUp(); bool onSprite(int, int, int); bool mouseFullClick(int &, int &); b //************************************************************* // DarkGDK function * //************************************************************* void DarkGDK() { // Variables to hold the mouse pointer's // X and Y coordinates. int mouseX, mouseY; // Perform setup operations. setUp(); // Game loop while ( LoopGDK() ) { // Determine whether the user has clicked the // left mouse button. if ( mouseFullClick(mouseX, mouseY) )
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/31/2010 for the course CS CS495 taught by Professor Valkolesnikov during the Spring '10 term at Baker KS.

Page1 / 4

assignment3 - Simple money calculator. Images needed

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online