Skip to content
Snippets Groups Projects
Commit 2075b9fb authored by Oliver Dimes's avatar Oliver Dimes
Browse files

Update duke.cpp

parent 1336575f
No related merge requests found
......@@ -39,8 +39,8 @@ void duke::draw() {
mappedPlayer = ofMap(playerValues.health, 0, 5, 0, ofGetWidth() * 0.19);
//DEBUG Stuff
ofDrawBitmapString("Health : " + ofToString(health), 1, 10);
ofDrawBitmapString("Skill : " + ofToString(skillLevel), 10, 30);
// ofDrawBitmapString("Health : " + ofToString(health), 1, 10);
// ofDrawBitmapString("Skill : " + ofToString(skillLevel), 10, 30);
//ENEMY LINES BOX
ofSetColor(0);
......@@ -52,14 +52,14 @@ void duke::draw() {
{
if (!wrongResponseCheck && !rightResponseCheck)
{
lineText.drawString("Farage : " + XMLlines.text[id].substr(0, loopCheck), ofGetWidth() * 0.1, ofGetHeight() * 0.71); // Question
lineText.drawString("Duke : " + XMLlines.text[id].substr(0, loopCheck), ofGetWidth() * 0.1, ofGetHeight() * 0.71); // Question
}
if (wrongResponseCheck && !rightResponseCheck)
{
//std::cout << "Loading incorrect Answer" << std::endl;
lineText.drawString("Farage : " + XMLlines.responseWrong[id].substr(0, loopCheck), ofGetWidth() * 0.1, ofGetHeight() * 0.71);
lineText.drawString("Duke : " + XMLlines.responseWrong[id].substr(0, loopCheck), ofGetWidth() * 0.1, ofGetHeight() * 0.71);
if (loopCheck == XMLlines.responseWrong[id].size())
{
//std::cout << "Incorrect Answer" << std::endl;
......@@ -73,7 +73,7 @@ void duke::draw() {
{
//std::cout << "Loading correct answer" << std::endl;
lineText.drawString("Farage : " + XMLlines.responseRight[id].substr(0, loopCheck), ofGetWidth() * 0.1, ofGetHeight() * 0.71);
lineText.drawString("Duke : " + XMLlines.responseRight[id].substr(0, loopCheck), ofGetWidth() * 0.1, ofGetHeight() * 0.71);
if (loopCheck == XMLlines.responseRight[id].size())
{
rightResponseCheck = false;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment