70 likes | 256 Views
Hex -> Denary. State the denary representation of the hex number 5D Do not look it up on the internet. Learning Objectives. To understand where marks are allocated on specific exam questions To be able to interpret given sections of C++ code. C++.
E N D
Hex -> Denary • State the denary representation of the hex number 5D • Do not look it up on the internet.
Learning Objectives • To understand where marks are allocated on specific exam questions • To be able to interpret given sections of C++ code
C++ If(GetKeyboard()->IsPressed(Keyboard::Up)) { SetPositionY(GetPositionY() + 5); }
C++ if(GetKeyboard()->IsPressed(Keyboard::Left)) { SetPositionX(GetPositionX() – 5); }
C++ int speed speed = 10; if(GetKeyboard()->IsPressed(Keyboard::Left)) { SetPositionX(GetPositionX() - speed); }
C++ if(GetKeyboard()->IsPressed(Keyboard::P)) { Play(); } if(GetKeyboard()->IsPressed(Keyboard::S)) { Stop(); }
C++ if(GetKeyboard()->IsPressed(Keyboard::P)) { Play(); SetLoop(true); }