10 - FPS Camera on Dude
A few information on “camera ellipsoid”
Add a FPS camera to the Dude
Add a FPS camera to the Dude
Demo time : see how we modified the code...
Follow camera Free Camera (FPS)
Your work : fix some small things...
10 - Crosshair in FPS mode
Trick : put a tiny box in front of the camera
Demo time !
11 - FPS gun
A few things to add...
The fireGun method in the Dude class
Demo Time !
See tp4_exemple3 method fireGun in Dude.js
12 - Deploy on Heroku
1 - You need a github repo for your game
2 - We assume that you have a GitHub repo with your game files
3 - Make your project a NodeJS project
3 - Minimal index.js node server for your game
let express = require('express');
let app = express();
app.use("/", express.static(__dirname));
app.get("/", function(req, res) {
res.sendFile("index.html");
});
// necessary for heroku, as heroku will position the PORT environment variable
let port = process.env.PORT || 3000;
app.listen(port, () => {
console.log("Server is running on port " + port);
});
4 - ready to go, last check list
5 - add an app to Heroku
13 - Fluid animation of skeletons/meshes
A student studied this topic and shares his tricks