Commits

Anonymous committed bd47e44

data path

Comments (0)

Files changed (47)

data/images/bullet/bullet_blue.png

Removed
Old image

data/images/bullet/bullet_dragon.png

Removed
Old image

data/images/bullet/bullet_green.png

Removed
Old image

data/images/bullet/bullet_orange.png

Removed
Old image

data/images/bullet/bullet_pink.png

Removed
Old image

data/images/bullet/bullet_purple.png

Removed
Old image

data/images/bullet/bullet_red.png

Removed
Old image

data/images/bullet/bullet_star.png

Removed
Old image

data/images/bullet/bullet_yellow.png

Removed
Old image

data/images/castle.png

Removed
Old image

data/images/dragon.png

Removed
Old image

data/images/flag/flag_blue.png

Removed
Old image

data/images/flag/flag_green.png

Removed
Old image

data/images/flag/flag_orange.png

Removed
Old image

data/images/flag/flag_pink.png

Removed
Old image

data/images/flag/flag_purple.png

Removed
Old image

data/images/flag/flag_red.png

Removed
Old image

data/images/flag/flag_yellow.png

Removed
Old image

data/images/knight.png

Removed
Old image

data/maze/bullet/bullet_blue.png

Added
New image

data/maze/bullet/bullet_dragon.png

Added
New image

data/maze/bullet/bullet_green.png

Added
New image

data/maze/bullet/bullet_orange.png

Added
New image

data/maze/bullet/bullet_pink.png

Added
New image

data/maze/bullet/bullet_purple.png

Added
New image

data/maze/bullet/bullet_red.png

Added
New image

data/maze/bullet/bullet_star.png

Added
New image

data/maze/bullet/bullet_yellow.png

Added
New image

data/maze/castle.png

Added
New image

data/maze/dragon.png

Added
New image

data/maze/flag/flag_blue.png

Added
New image

data/maze/flag/flag_green.png

Added
New image

data/maze/flag/flag_orange.png

Added
New image

data/maze/flag/flag_pink.png

Added
New image

data/maze/flag/flag_purple.png

Added
New image

data/maze/flag/flag_red.png

Added
New image

data/maze/flag/flag_yellow.png

Added
New image

data/maze/knight.png

Added
New image

data/maze/sfx/error.wav

Binary file added.

data/maze/sfx/failure.wav

Binary file added.

data/maze/sfx/step.wav

Binary file added.

data/maze/sfx/success.wav

Binary file added.

data/sfx/error.wav

Binary file removed.

data/sfx/failure.wav

Binary file removed.

data/sfx/step.wav

Binary file removed.

data/sfx/success.wav

Binary file removed.
   let success = ref None
   
   let load () =
-    step := Some (loadWAV "data/sfx/step.wav");
-    error := Some (loadWAV "data/sfx/error.wav");
-    failure := Some (loadWAV "data/sfx/failure.wav");
-    success := Some (loadWAV "data/sfx/success.wav")
+    step := Some (loadWAV "data/maze/sfx/step.wav");
+    error := Some (loadWAV "data/maze/sfx/error.wav");
+    failure := Some (loadWAV "data/maze/sfx/failure.wav");
+    success := Some (loadWAV "data/maze/sfx/success.wav")
   
   let play sfxref = match !sfxref with
     | None -> failwith "sound not initialized"
     colors.(index)
   
   let load color =
-    castle := Some (load_image "data/images/castle.png");
-    knight := Some (load_image "data/images/knight.png");
-    dragon := Some (load_image "data/images/dragon.png");
-    flag := Some (load_image ("data/images/flag/flag_" ^ color ^ ".png"));
-    star_bullet := Some (load_image "data/images/bullet/bullet_star.png");
-    dragon_bullet := Some (load_image ("data/images/bullet/bullet_dragon.png"));
+    castle := Some (load_image "data/maze/castle.png");
+    knight := Some (load_image "data/maze/knight.png");
+    dragon := Some (load_image "data/maze/dragon.png");
+    flag := Some (load_image ("data/maze/flag/flag_" ^ color ^ ".png"));
+    star_bullet := Some (load_image "data/maze/bullet/bullet_star.png");
+    dragon_bullet := Some (load_image ("data/maze/bullet/bullet_dragon.png"));
     player_bullet := Some (load_image
-        ("data/images/bullet/bullet_" ^ color ^ ".png"))
+        ("data/maze/bullet/bullet_" ^ color ^ ".png"))
   
   let blit dst dst_rect imgref = match !imgref with
     | None -> failwith "image not initialized"