diff --git a/resultScreen.js b/resultScreen.js index e69de29..b05c7d7 100644 --- a/resultScreen.js +++ b/resultScreen.js @@ -0,0 +1,45 @@ +var BLOCK_SIZE = 5; +var my_order = 8; +var ranking_order = ["ルフィ", "ゾロ", "ジンベエ", "サンジ", "ロビン", "ウソップ", "フランキー", "ブルック", "ナミ", "チョッパー"] +var scoreing_order = [3000000000,1110000000, 1100000000, 1032000000, 930000000, 500000000, 394000000, 383000000, 366000000, 1000] +var MAX_ORDER = 10; + +function setup(){ + canvasSize(960, 1200); + lineW(3); + loadImg(0, "image/bg.png"); + +} + +function mainloop(){ + fill("silver"); + setAlp(50); + fRect(50, 50, 855, 100, "black"); + fText("結果発表 ", 480, 100, 80, "white"); + fText("あなたの順位は...", 230, 200, 50, "black"); + fText(my_order+"位!", 480, 300, 110, "red"); + fRect(45, 370, 865, 700, "white"); + fText("成績上位者", 300, 410, 50, "black"); + fText("スコア", 670, 410, 50, "black"); + for (var i = 0; i < MAX_ORDER; i++){ + if(i+1==1){ + fText((i+1)+"位", 100, 480+60*i, 50, "gold"); + } + else if(i+1==2){ + fText((i+1)+"位", 100, 480+60*i, 50, "silver"); + } + else if(i+1==3){ + fText((i+1)+"位", 100, 480+60*i, 50, "#8c4841"); + } + else{ + fText((i+1)+"位", 100, 480+60*i, 50, "black"); + } + fText(ranking_order[i], 300, 480+60*i, 50, "white"); + fText(scoreing_order[i], 670, 480+60*i, 50, "white"); + } + + if(tapC > 1){ + + } + +} \ No newline at end of file