Add Simple GTE_Sprite type
This commit is contained in:
@@ -22,9 +22,10 @@ namespace GTETest {
|
||||
GPU::Color24::Grey()
|
||||
));
|
||||
|
||||
static auto rotation = 0.0_deg;
|
||||
static auto gbl_rotation = 0.0_deg;
|
||||
|
||||
static void setup() {
|
||||
doener_fish.area.position = GPU::PositionI16::create(100, 100);
|
||||
Shared::back_menu.reset();
|
||||
|
||||
GTE::set_geom_offset(0, 0);
|
||||
@@ -37,12 +38,10 @@ namespace GTETest {
|
||||
return true;
|
||||
}
|
||||
|
||||
const auto matrix = GTE::MATRIX{
|
||||
GTE::ROTMATRIX::rotated(-rotation, rotation, -rotation),
|
||||
GTE::TRANSFERVECTOR::translated((Assets::Main::DoenerFishInfo.size.width/2), (Assets::Main::DoenerFishInfo.size.height/2))
|
||||
};
|
||||
auto matrix = GTE::MATRIX::rotated(-gbl_rotation, gbl_rotation, -gbl_rotation);
|
||||
doener_fish.apply(matrix);
|
||||
rotation += 5.0_deg;
|
||||
doener_fish.angle += 25.0_deg;
|
||||
gbl_rotation += 2.5_deg;
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user