├── .babelrc ├── .editorconfig ├── .gitignore ├── LICENSE ├── README.md ├── package.json ├── src ├── AmmoLib.js ├── Component.js ├── DebugDrawer.js ├── DebugShapes.js ├── Entity.js ├── EntityManager.js ├── FiniteStateMachine.js ├── Input.js ├── assets │ ├── ammo │ │ ├── AmmoBox.fbx │ │ ├── AmmoBox_AO.tga.png │ │ ├── AmmoBox_D.tga.png │ │ ├── AmmoBox_M.tga.png │ │ ├── AmmoBox_N.tga.png │ │ └── AmmoBox_R.tga.png │ ├── animations │ │ ├── mutant breathing idle.fbx │ │ ├── mutant dying.fbx │ │ ├── mutant punch.fbx │ │ ├── mutant run.fbx │ │ ├── mutant walking.fbx │ │ └── mutant.fbx │ ├── decals │ │ ├── decal_a.jpg │ │ ├── decal_c.jpg │ │ └── decal_n.jpg │ ├── guns │ │ └── ak47 │ │ │ ├── T_INS_Body_a.tga.png │ │ │ ├── T_INS_Skin_a.tga.png │ │ │ ├── ak47.glb │ │ │ ├── weapon_ak47_D.tga.png │ │ │ └── weapon_ak47_N_S.tga.png │ ├── level.glb │ ├── muzzle_flash.glb │ ├── navmesh.obj │ ├── sky.jpg │ └── sounds │ │ └── ak47_shot.wav ├── entities │ ├── AmmoBox │ │ └── AmmoBox.js │ ├── Level │ │ ├── BulletDecals.js │ │ ├── LevelSetup.js │ │ └── Navmesh.js │ ├── NPC │ │ ├── AttackTrigger.js │ │ ├── CharacterCollision.js │ │ ├── CharacterController.js │ │ ├── CharacterFSM.js │ │ └── DirectionDebug.js │ ├── Player │ │ ├── PlayerControls.js │ │ ├── PlayerHealth.js │ │ ├── PlayerPhysics.js │ │ ├── Weapon.js │ │ └── WeaponFSM.js │ ├── Sky │ │ ├── Sky.js │ │ └── Sky2.js │ └── UI │ │ └── UIManager.js ├── entry.js ├── index.html └── ui │ └── crosshair.png ├── webpack.config.js └── yarn.lock /.babelrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/.babelrc -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | /build 3 | *.log* 4 | .DS_Store 5 | *.code-workspace -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/README.md -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/package.json -------------------------------------------------------------------------------- /src/AmmoLib.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/AmmoLib.js -------------------------------------------------------------------------------- /src/Component.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/Component.js -------------------------------------------------------------------------------- /src/DebugDrawer.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/DebugDrawer.js -------------------------------------------------------------------------------- /src/DebugShapes.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/DebugShapes.js -------------------------------------------------------------------------------- /src/Entity.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/Entity.js -------------------------------------------------------------------------------- /src/EntityManager.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/EntityManager.js -------------------------------------------------------------------------------- /src/FiniteStateMachine.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/FiniteStateMachine.js -------------------------------------------------------------------------------- /src/Input.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/Input.js -------------------------------------------------------------------------------- /src/assets/ammo/AmmoBox.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/assets/ammo/AmmoBox.fbx -------------------------------------------------------------------------------- /src/assets/ammo/AmmoBox_AO.tga.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/assets/ammo/AmmoBox_AO.tga.png -------------------------------------------------------------------------------- /src/assets/ammo/AmmoBox_D.tga.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/assets/ammo/AmmoBox_D.tga.png -------------------------------------------------------------------------------- /src/assets/ammo/AmmoBox_M.tga.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/assets/ammo/AmmoBox_M.tga.png -------------------------------------------------------------------------------- /src/assets/ammo/AmmoBox_N.tga.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/assets/ammo/AmmoBox_N.tga.png -------------------------------------------------------------------------------- /src/assets/ammo/AmmoBox_R.tga.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/assets/ammo/AmmoBox_R.tga.png -------------------------------------------------------------------------------- /src/assets/animations/mutant breathing idle.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/assets/animations/mutant breathing idle.fbx -------------------------------------------------------------------------------- /src/assets/animations/mutant dying.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/assets/animations/mutant dying.fbx -------------------------------------------------------------------------------- /src/assets/animations/mutant punch.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/assets/animations/mutant punch.fbx -------------------------------------------------------------------------------- /src/assets/animations/mutant run.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/assets/animations/mutant run.fbx -------------------------------------------------------------------------------- /src/assets/animations/mutant walking.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/assets/animations/mutant walking.fbx -------------------------------------------------------------------------------- /src/assets/animations/mutant.fbx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/assets/animations/mutant.fbx -------------------------------------------------------------------------------- /src/assets/decals/decal_a.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/assets/decals/decal_a.jpg -------------------------------------------------------------------------------- /src/assets/decals/decal_c.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/assets/decals/decal_c.jpg -------------------------------------------------------------------------------- /src/assets/decals/decal_n.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/assets/decals/decal_n.jpg -------------------------------------------------------------------------------- /src/assets/guns/ak47/T_INS_Body_a.tga.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/assets/guns/ak47/T_INS_Body_a.tga.png -------------------------------------------------------------------------------- /src/assets/guns/ak47/T_INS_Skin_a.tga.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/assets/guns/ak47/T_INS_Skin_a.tga.png -------------------------------------------------------------------------------- /src/assets/guns/ak47/ak47.glb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/assets/guns/ak47/ak47.glb -------------------------------------------------------------------------------- /src/assets/guns/ak47/weapon_ak47_D.tga.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/assets/guns/ak47/weapon_ak47_D.tga.png -------------------------------------------------------------------------------- /src/assets/guns/ak47/weapon_ak47_N_S.tga.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/assets/guns/ak47/weapon_ak47_N_S.tga.png -------------------------------------------------------------------------------- /src/assets/level.glb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/assets/level.glb -------------------------------------------------------------------------------- /src/assets/muzzle_flash.glb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/assets/muzzle_flash.glb -------------------------------------------------------------------------------- /src/assets/navmesh.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/assets/navmesh.obj -------------------------------------------------------------------------------- /src/assets/sky.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/assets/sky.jpg -------------------------------------------------------------------------------- /src/assets/sounds/ak47_shot.wav: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/assets/sounds/ak47_shot.wav -------------------------------------------------------------------------------- /src/entities/AmmoBox/AmmoBox.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/entities/AmmoBox/AmmoBox.js -------------------------------------------------------------------------------- /src/entities/Level/BulletDecals.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/entities/Level/BulletDecals.js -------------------------------------------------------------------------------- /src/entities/Level/LevelSetup.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/entities/Level/LevelSetup.js -------------------------------------------------------------------------------- /src/entities/Level/Navmesh.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/entities/Level/Navmesh.js -------------------------------------------------------------------------------- /src/entities/NPC/AttackTrigger.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/entities/NPC/AttackTrigger.js -------------------------------------------------------------------------------- /src/entities/NPC/CharacterCollision.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/entities/NPC/CharacterCollision.js -------------------------------------------------------------------------------- /src/entities/NPC/CharacterController.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/entities/NPC/CharacterController.js -------------------------------------------------------------------------------- /src/entities/NPC/CharacterFSM.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/entities/NPC/CharacterFSM.js -------------------------------------------------------------------------------- /src/entities/NPC/DirectionDebug.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/entities/NPC/DirectionDebug.js -------------------------------------------------------------------------------- /src/entities/Player/PlayerControls.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/entities/Player/PlayerControls.js -------------------------------------------------------------------------------- /src/entities/Player/PlayerHealth.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/entities/Player/PlayerHealth.js -------------------------------------------------------------------------------- /src/entities/Player/PlayerPhysics.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/entities/Player/PlayerPhysics.js -------------------------------------------------------------------------------- /src/entities/Player/Weapon.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/entities/Player/Weapon.js -------------------------------------------------------------------------------- /src/entities/Player/WeaponFSM.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/entities/Player/WeaponFSM.js -------------------------------------------------------------------------------- /src/entities/Sky/Sky.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/entities/Sky/Sky.js -------------------------------------------------------------------------------- /src/entities/Sky/Sky2.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/entities/Sky/Sky2.js -------------------------------------------------------------------------------- /src/entities/UI/UIManager.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/entities/UI/UIManager.js -------------------------------------------------------------------------------- /src/entry.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/entry.js -------------------------------------------------------------------------------- /src/index.html: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/index.html -------------------------------------------------------------------------------- /src/ui/crosshair.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/src/ui/crosshair.png -------------------------------------------------------------------------------- /webpack.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/webpack.config.js -------------------------------------------------------------------------------- /yarn.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/mohsenheydari/three-fps/HEAD/yarn.lock --------------------------------------------------------------------------------