This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main.ru.aengine.noise; | |
import java.util.Random; | |
public class NoiseGenerator { | |
private double seed; | |
private long default_size; | |
private int[] p; | |
private int[] permutation; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <time.h> | |
#include <raylib.h> | |
#define TILE_SIZE 64 | |
#define ROWS 15 | |
#define COLS 10 | |
static short foodPos[2], snakePos[2], snakeDirection = 0, lost = 0, gameRunCooldown = 0, snakePartTime[ROWS][COLS], creationPower = 2; | |
void main() { |