forked from Hay1tsme/segatools
ekt: improve sample card player a bit
This commit is contained in:
8
dist/ekt/card_player.html
vendored
8
dist/ekt/card_player.html
vendored
@ -145,11 +145,11 @@
|
||||
return;
|
||||
}
|
||||
|
||||
var panelHeight = 832;
|
||||
var panelWidth = 1160;
|
||||
var panelHeight = 1272;
|
||||
var panelWidth = 1260;
|
||||
|
||||
cards[i].x = panelHeight - y;
|
||||
cards[i].y = panelWidth - x;
|
||||
cards[i].x = panelHeight - ((y / window.screen.height) * panelHeight);
|
||||
cards[i].y = panelWidth - ((x / window.screen.width) * panelWidth);
|
||||
cards[i].rotation = 0;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user