// Path: core/src/main/java/net/panuska/tlappy/awt/Color.java
// public enum Color {
//     BLACK(0xff000000),
//     RED(0xffff0000),
//     BLUE(0xff0000ff),
//     YELLOW(0xffffff00),
//     WHITE(0xffffffff),
//     DARK_GRAY(0xff404040),
//     LIGHT_GRAY(0xffc0c0c0),
//     TRANSPARENT(0x00000000),
// 
//     black(0xff000000),
//     red(0xffff0000),
//     blue(0xff0000ff),
//     yellow(0xffffff00),
//     white(0xffffffff),
//     dark_gray(0xff404040);
// 
//     private final int color;
//     Color(int color) { this.color = color; }
//     public int getValue() { return color; }
// }
// 
// Path: core/src/main/java/net/panuska/tlappy/Device.java
// public class Device {
//     private static final String TAG = Device.class.getSimpleName();
//     public static Keyboard keyboard;
//     public static VRAM vram;
//     public static Music music;
// 
//     public static int displayWidth;
//     public static int displayHeight;
// 
//     public static boolean initialized = false;
//     public static void init (SurfaceView view) {
//         if (initialized) {
//             Log.d(TAG, "Device already initialized");
//             return;
//         }
//         Log.d(TAG, "Init");
//         Images.load(view.getResources());
//         keyboard = Keyboard.getInstance();
//         vram = VRAM.getInstance();
//         vram.createWindow(view);
//         music = Music.getInstance(view.getContext());
//         WindowManager wm = (WindowManager) view.getContext().getSystemService(Context.WINDOW_SERVICE);
//         Display display = wm.getDefaultDisplay();
//         displayWidth = display.getWidth();
//         displayHeight = display.getHeight();
//         if (displayHeight > displayWidth) {
//             Log.d(TAG, "Swapping display width and height "+displayWidth+", "+displayHeight);
//             displayWidth = displayWidth + displayHeight;
//             displayHeight = displayWidth - displayHeight;
//             displayWidth = displayWidth - displayHeight;
//         }
//         initialized = true;
//     }
// 
//     public static void destroy() {
//         music.destroy();
//         initialized = false;
//     }
// }


import net.panuska.tlappy.awt.Color;
import static net.panuska.tlappy.Device.*;
                }
            }
            //sync
            vram.refresh();
            Main.wait(50);
        }
        vram.imageNoOfs(20, 22, Images.chickenDown);
        vram.refresh();
    }

    private void rut(byte[] arr, int c, Chicken chicken) {
        Chicken.DemoStepInfo par = new Chicken.DemoStepInfo();
        int cc = 2 * c;
        if (arr7C64[c + 0x3c] >= arr7C64[c]) {
            return;
        }
        par.steps = arr;
        par.pStep = arr7C64[c + 0x3c];
        par.cx = arr7BEC[cc];
        par.cy = arr7BEC[cc + 1];
        chicken.demoDoStep1(par);
        arr7BEC[cc] = (byte) par.cx;
        arr7BEC[cc + 1] = (byte) par.cy;
    }
    
    void finalCertificate() {
        vram.clear();
        vram.refresh();
        music.start();
        chickenBorder();
// Path: core/src/main/java/net/panuska/tlappy/awt/Color.java
// public enum Color {
//     BLACK(0xff000000),
//     RED(0xffff0000),
//     BLUE(0xff0000ff),
//     YELLOW(0xffffff00),
//     WHITE(0xffffffff),
//     DARK_GRAY(0xff404040),
//     LIGHT_GRAY(0xffc0c0c0),
//     TRANSPARENT(0x00000000),
// 
//     black(0xff000000),
//     red(0xffff0000),
//     blue(0xff0000ff),
//     yellow(0xffffff00),
//     white(0xffffffff),
//     dark_gray(0xff404040);
// 
//     private final int color;
//     Color(int color) { this.color = color; }
//     public int getValue() { return color; }
// }
// 
// Path: core/src/main/java/net/panuska/tlappy/Device.java
// public class Device {
//     private static final String TAG = Device.class.getSimpleName();
//     public static Keyboard keyboard;
//     public static VRAM vram;
//     public static Music music;
// 
//     public static int displayWidth;
//     public static int displayHeight;
// 
//     public static boolean initialized = false;
//     public static void init (SurfaceView view) {
//         if (initialized) {
//             Log.d(TAG, "Device already initialized");
//             return;
//         }
//         Log.d(TAG, "Init");
//         Images.load(view.getResources());
//         keyboard = Keyboard.getInstance();
//         vram = VRAM.getInstance();
//         vram.createWindow(view);
//         music = Music.getInstance(view.getContext());
//         WindowManager wm = (WindowManager) view.getContext().getSystemService(Context.WINDOW_SERVICE);
//         Display display = wm.getDefaultDisplay();
//         displayWidth = display.getWidth();
//         displayHeight = display.getHeight();
//         if (displayHeight > displayWidth) {
//             Log.d(TAG, "Swapping display width and height "+displayWidth+", "+displayHeight);
//             displayWidth = displayWidth + displayHeight;
//             displayHeight = displayWidth - displayHeight;
//             displayWidth = displayWidth - displayHeight;
//         }
//         initialized = true;
//     }
// 
//     public static void destroy() {
//         music.destroy();
//         initialized = false;
//     }
// }


// Path: core/src/main/java/net/panuska/tlappy/FinalScreen.java
import net.panuska.tlappy.awt.Color;
import static net.panuska.tlappy.Device.*;

                }
            }
            //sync
            vram.refresh();
            Main.wait(50);
        }
        vram.imageNoOfs(20, 22, Images.chickenDown);
        vram.refresh();
    }

    private void rut(byte[] arr, int c, Chicken chicken) {
        Chicken.DemoStepInfo par = new Chicken.DemoStepInfo();
        int cc = 2 * c;
        if (arr7C64[c + 0x3c] >= arr7C64[c]) {
            return;
        }
        par.steps = arr;
        par.pStep = arr7C64[c + 0x3c];
        par.cx = arr7BEC[cc];
        par.cy = arr7BEC[cc + 1];
        chicken.demoDoStep1(par);
        arr7BEC[cc] = (byte) par.cx;
        arr7BEC[cc + 1] = (byte) par.cy;
    }
    
    void finalCertificate() {
        vram.clear();
        vram.refresh();
        music.start();
        chickenBorder();
        final Color c = Color.WHITE;