Note that GB Addr-Reg values are for the GB (not GBA), so the specifics may be different on the GBA.
GBA Addr | GB Addr-Reg | old | Belogic | Tonc | Function (Belogic) |
---|---|---|---|---|---|
0x04000060 | FF10-NR10 | SG10 | [SOUND1CNT_L](https://gbadev.net/gbad |
Note that GB Addr-Reg values are for the GB (not GBA), so the specifics may be different on the GBA.
GBA Addr | GB Addr-Reg | old | Belogic | Tonc | Function (Belogic) |
---|---|---|---|---|---|
0x04000060 | FF10-NR10 | SG10 | [SOUND1CNT_L](https://gbadev.net/gbad |
<yourProjectRoot>/.vscode/c_cpp_properties.json
"<yourPathToButano>/butano/include",
to your location of Butano
C:/butano
, it should be "C:/butano/butano/include",
#ifndef COPYRAT90_ENUM_AS_FLAGS_HPP | |
#define COPYRAT90_ENUM_AS_FLAGS_HPP | |
#include <type_traits> | |
#define ENUM_AS_FLAGS(Enum) \ | |
static_assert(std::is_enum<Enum>::value, "Template argument for Enum is not an enum."); \ | |
\ | |
constexpr bool operator!(Enum a) { \ | |
using Int = typename std::underlying_type<Enum>::type; \ |
#include <iostream> | |
class Character | |
{ | |
public: | |
Character(int maxHP) : m_maxHP(maxHP), m_currentHP(maxHP) {}; | |
void Update() | |
{ | |
if (m_isPoisoned) |