Class Renderer

java.lang.Object
miniGame.game_2048.Renderer

public class Renderer
extends java.lang.Object
칸의 픽셀의 밑변과 높이를 지정하고 게임 크기에 맞는 판의 색값들을 지정한값입니다.
  • Field Summary

    Fields
    Modifier and Type Field Description
    static int height  
    static int[] pixels  
    static int width  
  • Constructor Summary

    Constructors
    Constructor Description
    Renderer()  
  • Method Summary

    Modifier and Type Method Description
    static void renderBackground()  
    static void renderSprite​(Sprite sprite, int xp, int yp)
    칸이 움직이면서 움직이던 칸에서 다시 아무것도 없는 칸이 될 경우 원래의 색으로 돌리는 메서드입니다.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • width

      public static int width
    • height

      public static int height
    • pixels

      public static int[] pixels
  • Constructor Details

    • Renderer

      public Renderer()
  • Method Details

    • renderBackground

      public static void renderBackground()
    • renderSprite

      public static void renderSprite​(Sprite sprite, int xp, int yp)
      칸이 움직이면서 움직이던 칸에서 다시 아무것도 없는 칸이 될 경우 원래의 색으로 돌리는 메서드입니다.
      Parameters:
      sprite -
      xp -
      yp -