-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### 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
Showing
28 changed files
with
1,735 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
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.
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.
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
}; |
Oops, something went wrong.