Omnibus commited on
Commit
6f217fe
1 Parent(s): 4f8c9ed

Update my-game.html

Browse files
Files changed (1) hide show
  1. my-game.html +8 -5
my-game.html CHANGED
@@ -41,12 +41,15 @@ var scoreText;
41
  var game = new Phaser.Game(config);
42
  const queryString = window.location.search;
43
  const urlParams = new URLSearchParams(queryString);
44
- const sky_img = urlParams.get("sky");
45
- const platform_img = urlParams.get("platform");
46
- const star_img = urlParams.get("star");
47
- const bomb_img = urlParams.get("bomb");
48
- const dude_img = urlParams.get("dude");
49
 
 
 
 
 
 
50
  console.log(sky_img);
51
  console.log(platform_img);
52
  console.log(star_img);
 
41
  var game = new Phaser.Game(config);
42
  const queryString = window.location.search;
43
  const urlParams = new URLSearchParams(queryString);
44
+
45
+ const main_url = "https://huggingface.co/datasets/Omnibus/game-data-1/raw/main/images/"
46
+ const my_game = urlParams.get("game")
 
 
47
 
48
+ const sky_img = (main_url+"/background/"+my_game+"background_img.png");
49
+ const platform_img = "./assets/platform.png";
50
+ const star_img = (main_url+"/star/"+my_game+"star_img.png");
51
+ const bomb_img = (main_url+"/enemy/"+my_game+"enemy_img.png");
52
+ const dude_img = "./assets/dude.png";
53
  console.log(sky_img);
54
  console.log(platform_img);
55
  console.log(star_img);