小编ope*_*h18的帖子

为什么我未完成的 javascript 游戏在第三次死亡后崩溃?

// Commented because does not work in Sandbox
// window.localStorage; //Ignore this line

// Where all my variables have been assigned

var c = document.getElementById("GameScreen");
var ctx = c.getContext("2d");
var charY = 220;
const gravity = 10;
var score = 0;
var time = 0;
var speed = 5;
var cloneID = 0;
var clonePos = [600];
var clonePoints = [0];
var animationBounce = 0;
var jump = 10;
var charDead = 0;
var dataCharY = [];
var dataDisObst = …
Run Code Online (Sandbox Code Playgroud)

javascript

3
推荐指数
1
解决办法
84
查看次数

标签 统计

javascript ×1