Move ONSControls assets
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 666 B After Width: | Height: | Size: 666 B |
Before Width: | Height: | Size: 684 B After Width: | Height: | Size: 684 B |
Before Width: | Height: | Size: 343 B After Width: | Height: | Size: 343 B |
Before Width: | Height: | Size: 402 B After Width: | Height: | Size: 402 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
@ -35,10 +35,10 @@ ONSControls.createCanvas = function() {
|
|||
ONSControls.createButtons = function() {
|
||||
const container = new PIXI.Container();
|
||||
const buttons = [
|
||||
new PIXI.Sprite.fromImage("js/porting/assets/omori_a_button.png"),
|
||||
new PIXI.Sprite.fromImage("js/porting/assets/omori_x_button.png"),
|
||||
new PIXI.Sprite.fromImage("js/porting/assets/omori_b_button.png"),
|
||||
new PIXI.Sprite.fromImage("js/porting/assets/omori_y_button.png")
|
||||
new PIXI.Sprite.fromImage("img/system/controls/omori_a_button.png"),
|
||||
new PIXI.Sprite.fromImage("img/system/controls/omori_x_button.png"),
|
||||
new PIXI.Sprite.fromImage("img/system/controls/omori_b_button.png"),
|
||||
new PIXI.Sprite.fromImage("img/system/controls/omori_y_button.png")
|
||||
]
|
||||
for (btn of buttons) {
|
||||
btn.anchor.set(0.5);
|
||||
|
@ -52,7 +52,7 @@ ONSControls.createButtons = function() {
|
|||
// * DPad Buttons
|
||||
//=============================================================================
|
||||
ONSControls.createDPad = function() {
|
||||
const container = new PIXI.Sprite.fromImage("js/porting/assets/omori_dpad.png");
|
||||
const container = new PIXI.Sprite.fromImage("img/system/controls/omori_dpad.png");
|
||||
container.anchor.set(0.5);
|
||||
container.interactive = true;
|
||||
container.pressed = false;
|
||||
|
@ -97,8 +97,8 @@ ONSControls.createDPad = function() {
|
|||
// * LB/RB Buttons
|
||||
//=============================================================================
|
||||
ONSControls.createBumpers = function() {
|
||||
const LBsprite = new PIXI.Sprite.fromImage("js/porting/assets/omori_lb_button.png");
|
||||
const RBsprite = new PIXI.Sprite.fromImage("js/porting/assets/omori_rb_button.png");
|
||||
const LBsprite = new PIXI.Sprite.fromImage("img/system/controls/omori_lb_button.png");
|
||||
const RBsprite = new PIXI.Sprite.fromImage("img/system/controls/omori_rb_button.png");
|
||||
LBsprite.anchor.set(0.5);
|
||||
LBsprite.interactive = true;
|
||||
RBsprite.anchor.set(0.5);
|
||||
|
@ -112,7 +112,7 @@ ONSControls.createBumpers = function() {
|
|||
// * Show Button
|
||||
//=============================================================================
|
||||
ONSControls.createAdditionalButtons = function() {
|
||||
const showButton = new PIXI.Sprite.fromImage("js/porting/assets/omori_show_button.png");
|
||||
const showButton = new PIXI.Sprite.fromImage("img/system/controls/omori_show_button.png");
|
||||
showButton.anchor.set(0.5);
|
||||
showButton.interactive = true;
|
||||
this._controlsCanvas.stage.addChild(showButton);
|
||||
|
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
Before Width: | Height: | Size: 2.6 KiB After Width: | Height: | Size: 2.6 KiB |
Before Width: | Height: | Size: 666 B After Width: | Height: | Size: 666 B |
Before Width: | Height: | Size: 684 B After Width: | Height: | Size: 684 B |
Before Width: | Height: | Size: 343 B After Width: | Height: | Size: 343 B |
Before Width: | Height: | Size: 402 B After Width: | Height: | Size: 402 B |
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
@ -35,10 +35,10 @@ ONSControls.createCanvas = function() {
|
|||
ONSControls.createButtons = function() {
|
||||
const container = new PIXI.Container();
|
||||
const buttons = [
|
||||
new PIXI.Sprite.fromImage("js/porting/assets/omori_a_button.png"),
|
||||
new PIXI.Sprite.fromImage("js/porting/assets/omori_x_button.png"),
|
||||
new PIXI.Sprite.fromImage("js/porting/assets/omori_b_button.png"),
|
||||
new PIXI.Sprite.fromImage("js/porting/assets/omori_y_button.png")
|
||||
new PIXI.Sprite.fromImage("img/system/controls/omori_a_button.png"),
|
||||
new PIXI.Sprite.fromImage("img/system/controls/omori_x_button.png"),
|
||||
new PIXI.Sprite.fromImage("img/system/controls/omori_b_button.png"),
|
||||
new PIXI.Sprite.fromImage("img/system/controls/omori_y_button.png")
|
||||
]
|
||||
for (btn of buttons) {
|
||||
btn.anchor.set(0.5);
|
||||
|
@ -52,7 +52,7 @@ ONSControls.createButtons = function() {
|
|||
// * DPad Buttons
|
||||
//=============================================================================
|
||||
ONSControls.createDPad = function() {
|
||||
const container = new PIXI.Sprite.fromImage("js/porting/assets/omori_dpad.png");
|
||||
const container = new PIXI.Sprite.fromImage("img/system/controls/omori_dpad.png");
|
||||
container.anchor.set(0.5);
|
||||
container.interactive = true;
|
||||
container.pressed = false;
|
||||
|
@ -97,8 +97,8 @@ ONSControls.createDPad = function() {
|
|||
// * LB/RB Buttons
|
||||
//=============================================================================
|
||||
ONSControls.createBumpers = function() {
|
||||
const LBsprite = new PIXI.Sprite.fromImage("js/porting/assets/omori_lb_button.png");
|
||||
const RBsprite = new PIXI.Sprite.fromImage("js/porting/assets/omori_rb_button.png");
|
||||
const LBsprite = new PIXI.Sprite.fromImage("img/system/controls/omori_lb_button.png");
|
||||
const RBsprite = new PIXI.Sprite.fromImage("img/system/controls/omori_rb_button.png");
|
||||
LBsprite.anchor.set(0.5);
|
||||
LBsprite.interactive = true;
|
||||
RBsprite.anchor.set(0.5);
|
||||
|
@ -112,7 +112,7 @@ ONSControls.createBumpers = function() {
|
|||
// * Show Button
|
||||
//=============================================================================
|
||||
ONSControls.createAdditionalButtons = function() {
|
||||
const showButton = new PIXI.Sprite.fromImage("js/porting/assets/omori_show_button.png");
|
||||
const showButton = new PIXI.Sprite.fromImage("img/system/controls/omori_show_button.png");
|
||||
showButton.anchor.set(0.5);
|
||||
showButton.interactive = true;
|
||||
this._controlsCanvas.stage.addChild(showButton);
|
||||
|
|