Arm2D_Background.c 640 B

1234567891011121314151617181920212223
  1. #include "Arm2D_common.h"
  2. void Arm2D_BackGround___init__(PikaObj* self) {
  3. obj_setInt(self, "color", 0x00);
  4. }
  5. int Arm2D_BackGround_getColor(PikaObj* self) {
  6. return obj_getInt(self, "color");
  7. }
  8. void Arm2D_BackGround_update(PikaObj* self) {
  9. void* target_tile = pika_arm2d_globals.pfb_tile_now;
  10. int color = obj_getInt(self, "color");
  11. uint16_t backGroundColor = color;
  12. arm_2d_rgb16_fill_colour(target_tile, NULL, backGroundColor);
  13. }
  14. void Arm2D_BackGround_setColor(PikaObj* self, int color) {
  15. obj_setInt(self, "color", color);
  16. int color_ = obj_getInt(self, "color");
  17. color_ = obj_getInt(self, "color");
  18. }