Commit a2446fdf authored by 邱旭's avatar 邱旭

09.FlppyBird-节点树

parent c962604a
...@@ -125,9 +125,8 @@ ...@@ -125,9 +125,8 @@
const path = "../images/bird/"; const path = "../images/bird/";
const promises = [ const promises = [
"bird_01.png", "bird_02.png", "bird_03.png", "bird_01.png", "bird_02.png", "bird_03.png", "pie.png",
"land.png", "pie_down.png", "pie_up.png", "land.png", "background.png", "start_button.png"
"background.png", "start_button.png"
].map((v) => { ].map((v) => {
return loadImgAsync(`${path}${v}`); return loadImgAsync(`${path}${v}`);
}); });
......
...@@ -274,9 +274,8 @@ class FlppyBird extends GameStage { ...@@ -274,9 +274,8 @@ class FlppyBird extends GameStage {
const path = "../images/bird/"; const path = "../images/bird/";
const promises = [ const promises = [
"bird_01.png", "bird_02.png", "bird_03.png", "bird_01.png", "bird_02.png", "bird_03.png", "pie.png",
"land.png", "pie_down.png", "pie_up.png", "land.png", "background.png", "start_button.png"
"background.png", "start_button.png"
].map((v) => { ].map((v) => {
return loadImgAsync(`${path}${v}`); return loadImgAsync(`${path}${v}`);
}); });
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment