attack inputs added to main.ts
may be redundant due to inputwrapper.ts
This commit is contained in:
parent
d57e30674f
commit
43f1d941de
15
src/main.ts
15
src/main.ts
|
@ -11,6 +11,19 @@ import MainMenu from "./shattered_sword/Scenes/MainMenu";
|
||||||
let options = {
|
let options = {
|
||||||
canvasSize: {x: 1200, y: 800}, // The size of the game
|
canvasSize: {x: 1200, y: 800}, // The size of the game
|
||||||
clearColor: {r: 0, g: 0, b: 0}, // The color the game clears to
|
clearColor: {r: 0, g: 0, b: 0}, // The color the game clears to
|
||||||
|
inputs: [
|
||||||
|
{name: "left", keys: ["a"]}, //TODO - add arrow keys
|
||||||
|
{name: "right", keys: ["d"]},
|
||||||
|
{name: "up", keys: ["w"]},
|
||||||
|
{name: "down", keys: ["s"]},
|
||||||
|
{name: "jump", keys: ["x","space"]},
|
||||||
|
{name: "attack", keys: ["j","z","enter"]},
|
||||||
|
{name: "dash", keys: ["k","z"]},
|
||||||
|
{name: "skill", keys: ["l","v"]},
|
||||||
|
{name: "inventory", keys: ["i","b"]},
|
||||||
|
{name: "pause", keys: ["escape"]},
|
||||||
|
{name: "tab", keys: ["tab"]}
|
||||||
|
],
|
||||||
useWebGL: false, // Tell the game we want to use webgl
|
useWebGL: false, // Tell the game we want to use webgl
|
||||||
showDebug: true // Whether to show debug messages. You can change this to true if you want
|
showDebug: true // Whether to show debug messages. You can change this to true if you want
|
||||||
}
|
}
|
||||||
|
@ -20,6 +33,8 @@ import MainMenu from "./shattered_sword/Scenes/MainMenu";
|
||||||
|
|
||||||
// Start our game
|
// Start our game
|
||||||
game.start(MainMenu, {});
|
game.start(MainMenu, {});
|
||||||
|
//TODO - change to splash screen once available
|
||||||
|
//game.start(SplashScreen,{});
|
||||||
})();
|
})();
|
||||||
|
|
||||||
function runTests(){};
|
function runTests(){};
|
Loading…
Reference in New Issue
Block a user