// // Created by Wouter Groeneveld on 11/07/20. // #include #include "monkey.h" const unsigned short pal[4] __attribute__((aligned(4))) = { 0x0000, 0xFFFF, 0x3AE2 }; std::vector MonkeyScene::meshes() { return { monkey.get() }; } Camera MonkeyScene::camera() { return Camera(VectorFx::fromInt(0, 0, 10), VectorFx::fromInt(0, 0, 0)); } void MonkeyScene::load() { foregroundPalette = std::unique_ptr(new ForegroundPaletteManager()); backgroundPalette = std::unique_ptr(new BackgroundPaletteManager(pal, sizeof(pal))); monkey = std::unique_ptr(createMesh()); } void MonkeyScene::tick(u16 keys) { monkey->rotate(10, 10); }