Skip to content

Commit

Permalink
ADDED WALLS BEACHES
Browse files Browse the repository at this point in the history
  • Loading branch information
Chasmiccoder committed Feb 10, 2022
1 parent 91635ab commit dcee688
Show file tree
Hide file tree
Showing 9 changed files with 1,075 additions and 12 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.vs/
.vscode/
todo.txt
thePlan.txt
thePlan.txt
venv/
Binary file added images/map_outline.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 images/wall_frame.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
</div>

<script src="./js/utils.js"></script>
<script src="./js/walls.js"></script>
<script src="./js/DirectionInput.js"></script>
<script src="./js/Overworld.js"></script>
<script src="./js/GameObject.js"></script>
Expand Down
16 changes: 5 additions & 11 deletions js/OverworldMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ class OverworldMap {
this.walls = config.walls || {};

this.lowerImage = new Image();
// this.upperImage = new Image();
this.upperImage = new Image();

this.lowerImage.src = config.lowerSrc; // floor
// this.upperImage.src = config.upperSrc; // what is rendered above the floor (above the player) like tree tops
Expand Down Expand Up @@ -266,14 +266,14 @@ window.OverworldMaps = {
lowerSrc: "./images/FINAL_FOR_REALZ_.png", // current best map is= ./images/official_assets/ourMap32.png
// lowerSrc: "./images/ourMap16.png",
// lowerSrc: "./images/DemoLower.png",
// upperSrc: "./images/DemoUpper.png",
// upperSrc: "./images/blank_guy.png",
gameObjects: {
hero: new Person({
isPlayerControlled: true,
src: "./images/Hero.png",
useShadow: true,
x: utils.withGrid(32), // 32 44
y: utils.withGrid(44),
x: utils.withGrid(15), // 32 44
y: utils.withGrid(20),
}),

// myDrone: new Person({
Expand Down Expand Up @@ -470,13 +470,7 @@ window.OverworldMaps = {


},

walls: {
// [utils.asGridCoord(7,6)]: true,
// [utils.asGridCoord(8,6)]: true,
// [utils.asGridCoord(7,7)]: true,
// [utils.asGridCoord(8,7)]: true,
},
walls: WALLS,
cutsceneSpaces: {
[utils.asGridCoord(10,9)]: [{events: hemanthPath}],
[utils.asGridCoord(11,9)]: [{events: hemanthPath}],
Expand Down
Loading

0 comments on commit dcee688

Please sign in to comment.