Skip to content

Commit

Permalink
[feature] 3D Maze game (#211)
Browse files Browse the repository at this point in the history
### 3D maze game using threeJs and MapGL
. A 3D Maze Game made using ThreeJs and WebGL
. Explore the 3D experience
. You can move and operate the fpp by directional arrows.
. Player should reach the destination using map.


![ss1](https://user-images.githubusercontent.com/64016811/119042625-b7ef0680-b9d5-11eb-896a-24f94212b896.jpg)


![ss2](https://user-images.githubusercontent.com/64016811/119042632-b9b8ca00-b9d5-11eb-95a1-6b42d962dff2.jpg)
  • Loading branch information
Git21221 authored Oct 3, 2023
2 parents 0aac225 + 2dcb5e6 commit 8449a06
Show file tree
Hide file tree
Showing 28 changed files with 1,735 additions and 0 deletions.
9 changes: 9 additions & 0 deletions 3D_maze_Game/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
### 3D-Maze-Game
. A 3D Maze Game made using ThreeJs and WebGL
. Explore the 3D experience
. You can move and operate the fpp by directional arrows.
. Player should reach the destination using map.

![ss1](https://user-images.githubusercontent.com/64016811/119042625-b7ef0680-b9d5-11eb-896a-24f94212b896.jpg)

![ss2](https://user-images.githubusercontent.com/64016811/119042632-b9b8ca00-b9d5-11eb-95a1-6b42d962dff2.jpg)
24 changes: 24 additions & 0 deletions 3D_maze_Game/assets/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
body {
margin: 0;
}

#canvasContainer {
position: relative;
}

/* JOYPAD */
#joypad {
position: absolute;
bottom: 0;
right: 0;
width: 145px;
}

#joypad .top {
text-align: center;
width: inherit;
}

#joypad .bottom {
width: inherit;
}
Binary file added 3D_maze_Game/assets/images/html5-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 3D_maze_Game/assets/images/pad/kbdown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 3D_maze_Game/assets/images/pad/kbempty.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 3D_maze_Game/assets/images/pad/kbleft.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 3D_maze_Game/assets/images/pad/kbright.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 3D_maze_Game/assets/images/pad/kbup.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 3D_maze_Game/assets/images/preview-laby.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added 3D_maze_Game/assets/images/webgl-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions 3D_maze_Game/assets/js/Demonixis.GameHelper.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
var Demonixis = window.Demonixis || {};
Demonixis.GameHelper = Demonixis.GameHelper || {};

Demonixis.GameHelper.LevelHelper = function(start, end) {
this.current = start || 1;
this.next = this.current + 1;
this.count = end || 5;
this.isFinished = false;

this.getNext = function() {
if (this.next > this.count) {
this.current = 1;
this.next = 2;
this.isFinished = true;
} else {
this.current = this.next;
this.next++;
}

return this.current;
}
};

Demonixis.GameHelper.CameraHelper = function(camera) {
this.translation = 5;
this.rotation = 0.035;
this.origin = {
position: {
x: 0,
y: 0,
z: 0,
mapX: 0,
mapY: 0,
mapZ: 0
},
x: 0,
y: 0,
z: 0
};

this.camera = camera;
};
Loading

0 comments on commit 8449a06

Please sign in to comment.