National Taipei University of Technology Object-Oriented Programming Labs (2024)
Displaying translucent objects can cause lag; some computers handle it normally while others experience severe lag (currently, it seems that 40 series graphics cards all experience lag). Therefore, if displaying the red damage effect when taking damage causes the entire game to freeze, please go to config.h and change the last item, TRANSLUCENT_EFFECT
, to false
. This will cause the poison circle to become a solid green circle and obstruct the view.
- "W", "A", "S", "D" : Move.
- "Q" : Activate character skill. There is a skill cooldown progress bar at the bottom right of the screen. The skill can only be used again once the cooldown is complete.
- "E" : Switch weapon (effective only when holding two weapons).
- "F" : Interact with interactive items, e.g., enter portals, purchase items, pick up weapons or potions, open chests, etc. A prompt will appear above when near an interactive item.
- "Move mouse" : Aim at enemies.
- "Left mouse button" : Use weapon to attack.
If you want to make the game easier, you can change the weapon of Knight
from BadPistol
to GatlingGun
in Knight.cpp
(line 26).
The number keys
- Display / Hide hitbox
- Restore 100 MP
- Restore 1 HP
- Obtain 100 gold coins
- Invincibility mode
- Wallhack mode (Please do not ignore monsters and use wallhack to enter the portal to the next level after the room starts)
- All monsters on the field receive 50 damage and all bullets are cleared
- Obtain a weapon chest (can open to get a random weapon)