pikapython/package/Arm2D/Arm2D_Background.c
2022-11-08 15:48:11 +08:00

24 lines
640 B
C

#include "Arm2D_common.h"
void Arm2D_BackGround___init__(PikaObj* self) {
obj_setInt(self, "color", 0x00);
}
int Arm2D_BackGround_getColor(PikaObj* self) {
return obj_getInt(self, "color");
}
void Arm2D_BackGround_update(PikaObj* self) {
void* target_tile = pika_arm2d_globals.pfb_tile_now;
int color = obj_getInt(self, "color");
uint16_t backGroundColor = color;
arm_2d_rgb16_fill_colour(target_tile, NULL, backGroundColor);
}
void Arm2D_BackGround_setColor(PikaObj* self, int color) {
obj_setInt(self, "color", color);
int color_ = obj_getInt(self, "color");
color_ = obj_getInt(self, "color");
}