{"size": 513, "ext": "js", "max_stars_repo_path": "public/jogoio.js", "max_stars_repo_name": "DaviCop/snake-game-js", "max_stars_repo_stars_event_min_datetime": "2021-07-09T17:16:54.000Z", "max_stars_repo_stars_event_max_datetime": "2021-07-09T17:16:54.000Z", "max_issues_repo_path": "public/jogoio.js", "max_issues_repo_name": "DaviCop/snake-game-js", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "public/jogoio.js", "max_forks_repo_name": "DaviCop/snake-game-js", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 19.7307692308, "max_line_length": 57, "alphanum_fraction": 0.6647173489}
const BG_COR2 = '#231f20';
const COR_COBRA = '#c2c2c2';
const COR_COMIDA = '#e66916';
const gameScreen = document.getElementById('gameScreen');

let canvas, ctx;

function init() {
    canvas = document.getElementById('canvas');
    ctx = canvas.getContext('2d');

    canvas.width = canvas.height = 600;

    ctx.fillStyle = "#231f20";

    
    ctx.fillRect = (0, 0, canvas.width, canvas.height);

    document.addEventListener('keydown', keydown);
}

function keydown(e){
    console.log(e.keyCode);
}

init();