diff --git a/lab5/README.md b/lab5/README.md index f2a1287cb7530d3af77d1f539d7c090d1fedd3cc..1234b5a0e0c5f8435ab6f152091bb01dcdd94f15 100644 --- a/lab5/README.md +++ b/lab5/README.md @@ -1,6 +1,8 @@ Cedric Dos Reis -IHM +Décembre 2019 + +IHM - Labo 5 # lab5 - IHM diff --git a/lab5/src/README.md b/lab5/src/README.md index 793092c677affd592f155999b837ce531da7b4df..8229654971243cf62c4bc4c6e971e1eb692f408c 100644 --- a/lab5/src/README.md +++ b/lab5/src/README.md @@ -1,3 +1,9 @@ +Cedric Dos Reis + +Décembre 2019 + +IHM - Labo 5 + # Pac Man - restfull API module ## Installation @@ -68,7 +74,7 @@ http://localhost:5000/ or - + 127.0.0.1:5000 diff --git a/lab5/src/app.py b/lab5/src/app.py index 2831297e1ea549d54c5ca5a24125124b723e226d..4a9c1f1327aee3452ac9ac108c0f4f3cf9cc23d6 100644 --- a/lab5/src/app.py +++ b/lab5/src/app.py @@ -1,3 +1,8 @@ +""" +Cedric Dos Reis +Décembre 2019 +IHM - Labo 5 +""" from flask import Flask, render_template import os import mapManager diff --git a/lab5/src/mapManager.py b/lab5/src/mapManager.py index 5d30afbecaa775820bea71a7c308083f054c0973..2cc5d883884b6600dd4881d61a4d1d878bcaf200 100644 --- a/lab5/src/mapManager.py +++ b/lab5/src/mapManager.py @@ -1,3 +1,8 @@ +""" +Cedric Dos Reis +Décembre 2019 +IHM - Labo 5 +""" from PIL import Image import os diff --git a/lab5/src/maps/README.md b/lab5/src/maps/README.md index 757fc196ffdf7bb051093fbf4747ef16a42f9bb6..f7b929d0a96324d5cbdb69b80a622871d7955a08 100644 --- a/lab5/src/maps/README.md +++ b/lab5/src/maps/README.md @@ -1,4 +1,11 @@ +Cedric Dos Reis + +Décembre 2019 + +IHM - Labo 5 + # Maps + A map is represented by a 21x21 pixel image in `.png`. Each pixel may represent a different element depending on its color in RGB diff --git a/lab5/src/static/js/Enemy.js b/lab5/src/static/js/Enemy.js index 62817f5733dd2ca2ad8984e9da7a3186859b4960..44ef69be8bd255e05cbe2b0ed7d47fd79ed2a18d 100644 --- a/lab5/src/static/js/Enemy.js +++ b/lab5/src/static/js/Enemy.js @@ -1,3 +1,8 @@ +/* +Cedric Dos Reis +Décembre 2019 +IHM - Labo 5 + */ class Enemy { constructor(obj) { this.object = obj; diff --git a/lab5/src/static/js/GameManager.js b/lab5/src/static/js/GameManager.js index b8e174f957faa2b253f75420941d74730a55ab0e..7066a549e8bfde2474bea5dba202c39909f6181e 100644 --- a/lab5/src/static/js/GameManager.js +++ b/lab5/src/static/js/GameManager.js @@ -1,4 +1,8 @@ - +/* +Cedric Dos Reis +Décembre 2019 +IHM - Labo 5 + */ const DIRECTION = { UP: 'UP', DOWN: 'DOWN', diff --git a/lab5/src/static/js/MapGenerator.js b/lab5/src/static/js/MapGenerator.js index 2fea92eb7cc6bf0f664774d97f229675a05af8ff..b839107619e55663bc3f90099c607dcf5c1d3a3e 100644 --- a/lab5/src/static/js/MapGenerator.js +++ b/lab5/src/static/js/MapGenerator.js @@ -1,3 +1,8 @@ +/* +Cedric Dos Reis +Décembre 2019 +IHM - Labo 5 + */ function convert2Dto1D(x, y, sz){ return (y * sz) + x; } @@ -114,7 +119,7 @@ class MapGenerator { food.name = "sfood" + foods.length; food.position.x = convertCoordToPos(x,SIZE); food.position.y = convertCoordToPos(y,SIZE); - + scene.add(food); foods.push(food); diff --git a/lab5/src/static/js/Player.js b/lab5/src/static/js/Player.js index 0f2c1b891958c40e4fd90523028f1cd7787901ec..47635eea79f74d0fdc74df8f9863b66f914d61ab 100644 --- a/lab5/src/static/js/Player.js +++ b/lab5/src/static/js/Player.js @@ -1,3 +1,8 @@ +/* +Cedric Dos Reis +Décembre 2019 +IHM - Labo 5 + */ class Player { constructor(obj) { this.object = obj;