Skip to content

Commit

Permalink
Merge pull request #91 from jm1021/main
Browse files Browse the repository at this point in the history
Gabriel Water Level Updates
  • Loading branch information
jm1021 committed May 22, 2024
2 parents dd2080c + 1c2afbf commit c53b0b7
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions assets/js/platformer3x/GameSetup.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ const GameSetup = {
hitbox: { widthPercentage: 0.5, heightPercentage: 0.5 },
width: 300,
height: 300,
scaleSize: 150,
scaleSize: 100,
},
iceberg: {
src: "/images/platformer/obstacles/iceberg.png",
Expand All @@ -253,7 +253,7 @@ const GameSetup = {
hitbox: { widthPercentage: 0.5, heightPercentage: 0.5 },
width: 300,
height: 300,
scaleSize: 100,
scaleSize: 150,
},
flag: {
src: "/images/platformer/obstacles/flag.png",
Expand All @@ -275,6 +275,7 @@ const GameSetup = {
grass: { src: "/images/platformer/platforms/grass.png" },
narwhalfloor: { src: "/images/platformer/platforms/narwhalfloor.png" },
sand: { src: "/images/platformer/platforms/sand.png" },
sandblock: {src:"/images/platformer/platforms/sandblock.png"},
snowyfloor: { src: "/images/platformer/platforms/snowyfloor.png" },
snowywood: { src: "/images/platformer/platforms/snowywood.png" },
alien: { src: "/images/platformer/platforms/alien.png" },
Expand Down Expand Up @@ -907,10 +908,10 @@ const GameSetup = {
{ name: 'fish', id: 'background', class: BackgroundParallax, data: this.assets.backgrounds.fish },
{ name: 'reef', id: 'background', class: Background, data: this.assets.backgrounds.reef },
{ name: 'sand', id: 'floor', class: Platform, data: this.assets.platforms.sand },
{ name: 'blocks', id: 'jumpPlatform', class: BlockPlatform, data: this.assets.platforms.block, xPercentage: 0.2, yPercentage: 0.85 },
{ name: 'blocks', id: 'jumpPlatform', class: BlockPlatform, data: this.assets.platforms.block, xPercentage: 0.2368, yPercentage: 0.85 },
{ name: 'blocks', id: 'jumpPlatform', class: BlockPlatform, data: this.assets.platforms.block, xPercentage: 0.2736, yPercentage: 0.85 },
{ name: 'blocks', id: 'wall', class: BlockPlatform, data: this.assets.platforms.block, xPercentage: 0.6, yPercentage: 1 },
{ name: 'sandblock', id: 'jumpPlatform', class: BlockPlatform, data: this.assets.platforms.sandblock, xPercentage: 0.2, yPercentage: 0.85 },
{ name: 'sandblock', id: 'jumpPlatform', class: BlockPlatform, data: this.assets.platforms.sandblock, xPercentage: 0.2368, yPercentage: 0.85 },
{ name: 'sandblock', id: 'jumpPlatform', class: BlockPlatform, data: this.assets.platforms.sandblock, xPercentage: 0.2736, yPercentage: 0.85 },
{ name: 'sandblock', id: 'wall', class: BlockPlatform, data: this.assets.platforms.sandblock, xPercentage: 0.6, yPercentage: 1 },
{ name: 'itemBlock', id: 'jumpPlatform', class: JumpPlatform, data: this.assets.platforms.itemBlock, xPercentage: 0.4, yPercentage: 0.65 }, //item block is a platform
{ name: 'goomba', id: 'goomba', class: Goomba, data: this.assets.enemies.goomba, xPercentage: 0.5, yPercentage: 1, minPosition: 0.05 },
{ name: 'goomba', id: 'goomba', class: Goomba, data: this.assets.enemies.goomba, xPercentage: 0.4, yPercentage: 1, minPosition: 0.05, difficulties: ["normal", "hard", "impossible"] },
Expand All @@ -928,7 +929,7 @@ const GameSetup = {
{ name: 'coin', id: 'coin', class: Coin, data: this.assets.obstacles.coin, xPercentage: 0.2575, yPercentage: 0.75 },
{ name: 'coin', id: 'coin', class: Coin, data: this.assets.obstacles.coin, xPercentage: 0.5898, yPercentage: 0.900 },
{ name: 'mario', id: 'player', class: PlayerHills, data: this.assets.players.mario },
{ name: 'Chest', id: 'finishline', class: FinishLine, data: this.assets.obstacles.chest, xPercentage: 0.85, yPercentage: 0.65 },
{ name: 'Chest', id: 'finishline', class: FinishLine, data: this.assets.obstacles.chest, xPercentage: 0.85, yPercentage: 0.68 },
{ name: 'miniEnd', id: 'background', class: BackgroundTransitions, data: this.assets.transitions.miniEnd },
];
let waterGameObjects = allWaterGameObjects.filter(obj => !obj.difficulties || obj.difficulties.includes(difficulty));
Expand Down
Binary file added images/platformer/obstacles/Dimonds.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/platformer/platforms/sandblock.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c53b0b7

Please sign in to comment.