fixing little things
This commit is contained in:
parent
4eeb5ad102
commit
4ecf3e9f13
@ -43,7 +43,6 @@ class MatchMaking
|
|||||||
this._socket.onclose = this.onclose.bind(this);
|
this._socket.onclose = this.onclose.bind(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
onclose(event)
|
onclose(event)
|
||||||
{
|
{
|
||||||
this.stop();
|
this.stop();
|
||||||
|
@ -9,9 +9,10 @@ export default class extends AbstractView {
|
|||||||
return `
|
return `
|
||||||
<h1>Welcome back, Dom</h1>
|
<h1>Welcome back, Dom</h1>
|
||||||
<p>
|
<p>
|
||||||
Fugiat voluptate et nisi Lorem cillum anim sit do eiusmod occaecat irure do. Reprehenderit anim fugiat sint exercitation consequat. Sit anim laborum sit amet Lorem adipisicing ullamco duis. Anim in do magna ea pariatur et.
|
Akel is a game engine designed to be easy to use. The purpose of the project is learning about game engine development, discovering new rendering processes and learning to use new tools. It is mainly coded on and for Linux but is cross-platform and has been tested on Windows and MacOS.
|
||||||
</p>
|
</p>
|
||||||
<p>
|
<p>
|
||||||
|
<a href="https://akel-engine.com" data-link>Akel Engine</a>.
|
||||||
<a href="/posts" data-link>View recent posts</a>.
|
<a href="/posts" data-link>View recent posts</a>.
|
||||||
</p>
|
</p>
|
||||||
`;
|
`;
|
||||||
|
@ -6,7 +6,6 @@ import { initBuffers } from "../3D/buffers.js"
|
|||||||
import "../3D/maths/gl-matrix-min.js"
|
import "../3D/maths/gl-matrix-min.js"
|
||||||
import { MyPlayer } from "../api/game/MyPlayer.js";
|
import { MyPlayer } from "../api/game/MyPlayer.js";
|
||||||
import { lang } from "../index.js";
|
import { lang } from "../index.js";
|
||||||
import { navigateTo } from "../index.js";
|
|
||||||
|
|
||||||
export default class extends AbstractView
|
export default class extends AbstractView
|
||||||
{
|
{
|
||||||
@ -26,14 +25,14 @@ export default class extends AbstractView
|
|||||||
|
|
||||||
keyReleaseHandler(event)
|
keyReleaseHandler(event)
|
||||||
{
|
{
|
||||||
const idx = this.keys_pressed.indexOf(event.key);
|
let idx = this.keys_pressed.indexOf(event.key);
|
||||||
if (idx != -1)
|
if(idx != -1)
|
||||||
this.keys_pressed.splice(idx, 1);
|
this.keys_pressed.splice(idx, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
keyPressHandler(event)
|
keyPressHandler(event)
|
||||||
{
|
{
|
||||||
if (!this.keys_pressed.includes(event.key))
|
if(!this.keys_pressed.includes(event.key))
|
||||||
this.keys_pressed.push(event.key);
|
this.keys_pressed.push(event.key);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -51,8 +50,8 @@ export default class extends AbstractView
|
|||||||
this.shader_prog = initShaderProgram(this.gl);
|
this.shader_prog = initShaderProgram(this.gl);
|
||||||
this.buffers = initBuffers(this.gl);
|
this.buffers = initBuffers(this.gl);
|
||||||
|
|
||||||
//this.gl.enable(this.gl.CULL_FACE);
|
this.gl.enable(this.gl.CULL_FACE);
|
||||||
//this.gl.cullFace(this.gl.BACK);
|
this.gl.cullFace(this.gl.BACK);
|
||||||
}
|
}
|
||||||
|
|
||||||
update_goal(data)
|
update_goal(data)
|
||||||
|
Loading…
Reference in New Issue
Block a user