Posts

Showing posts from December, 2018

Membuat Game Maze Menggunakan Aplikasi Processing

Assalamualaikum Sahabat Malam, disini saya akan memberikan acuan untuk membuat game Maze pada  aplikasi processing.  untuk tutorial tahap 2 dapat dilihat pada link  berikut untuk tutorial tahap 3 dapat dilihat pada link  berikut berikut coding yang digunakan untuk membuat game MAZE. // Simple maze game // // As any maze game, you start from somewhere (red square) and you have to find // the exit (green square) as fast as possible. // Each step is counted, so at the end, you will know how many steps you have walked // in conparaison to the minimal needed steps to escape. // Keys : // R : Restart the game. A new maze is generated and time is cleared // SPACE : Start the game // A : Left // D : Right // W : Up // S : Down color white = color (0xFF, 0xFF, 0xFF); color blue = color (0x00, 0x00, 0xFF); color red = color (0xFF, 0x00, 0x00); color green = color (0x00, 0xFF, 0x00); color black = color (0x00, 0x00, 0x00); int state_init = 0; int sta...