Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilipBuresh authored May 19, 2024
1 parent 51e09e0 commit b9b5da6
Show file tree
Hide file tree
Showing 20 changed files with 1,450 additions and 864 deletions.
2 changes: 1 addition & 1 deletion res/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ p{
font-size:20px;
cursor: pointer;
}
#playButton:hover, #playButtonMulti:hover, #tutorialButton:hover, #creditsButton:hover{
#playButton:hover, #playButtonMulti:hover, #tutorialButton:hover, #creditsButton:hover, #dungeonButton:hover{
color: black;
background-color: white;
}
Expand Down
Binary file added res/img/big_circle.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 res/img/block_iron.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 res/img/brick_block.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 res/img/copper_block.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 res/img/iron_block.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 res/img/iron_sticks.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 res/img/moving_platform.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 res/img/rope.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 res/img/saw.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 res/img/small_circle.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 res/img/spike.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 res/img/spike_flip.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 res/img/wall_steampunk.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 modified res/img/woods.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
801 changes: 461 additions & 340 deletions res/js/draw.js

Large diffs are not rendered by default.

609 changes: 314 additions & 295 deletions res/js/maps.js

Large diffs are not rendered by default.

385 changes: 385 additions & 0 deletions res/js/maps_steampunk.js

Large diffs are not rendered by default.

204 changes: 204 additions & 0 deletions res/js/players.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,204 @@
//Player 1
const player1 = {
// Coordinates
x : 0,
y : 500,
height : 40,
width : 30,
// Frames
currentFrameStand : 0,
currentFramePunch : 0,
currentFrameRun : 0,
currentFrameCrouch : 0,
// Help punch variables
punched : false,
punchCooldown : false,
alreadyPunched : false,
// Velocity
velocity : 0,
velocityJump : 0,
velocityRight : 0,
velocityLeft : 0,
velocityGoingDown : 0,
velocityGoingUp : 0,
// Help move variables
isMovingRight : false,
isMovingLeft : false,
// Animation
turnedRight : true,
turnedLeft : false,
animationIdRight : null,
animationIdLeft : null,
ahCollision : null,
underCollision : null,
jumpingId : null,
goingUpId : null,
goingDownId : null,
// NOW THEN DELTA
nowLeft : null,
thenLeft : Date.now(),
deltaLeft : null,
//
nowRight : null,
thenRight : Date.now(),
deltaRight : null,
//
nowDown : null,
thenDown : Date.now(),
deltaDown : null,
//
nowUp : null,
thenUp : Date.now(),
deltaUp : null,
//
nowGoingUp : null,
thenGoingUp : Date.now(),
deltaGoingUp : null,
//
nowGoingDown : null,
thenGoingDown : Date.now(),
deltaGoingDown : null,
// Help Jump variables
stillJumping : false,
// Help Crouch variables
crouched : false,
downPressed : false,
canStandUp : true,
wasUnder : true,
// Gravity
onRock : false,
onWood : false,
orbUsed : false,
canOrbJump : false,
gravityId : null,
// Ladder
ladderCol : false,
canGravityActivate : false,
alreadyGoingDown : false,
wPressed : false,
// Jump
headHit : null,
bounced : false,
jumpInterval : null,
jumpIntervalSet : false,
isJumping : null,
canUseJumpPad : false,
// Doors
doorCol : false,
closingDoorCol : false,
// Boss
canAttack : false,
//Slide
canSlideOnWall : false,
slideJumped : false,
//Moving platform
onMovingPlatform : false,
}

//Player 2
const player2 = {
// Coordinates
x : 0,
y : 500,
height : 40,
width : 30,
// Frames
currentFrameStand : 0,
currentFramePunch : 0,
currentFrameRun : 0,
currentFrameCrouch : 0,
// Help punch variables
punched : false,
punchCooldown : false,
alreadyPunched : false,
// Velocity
velocity : 0,
velocityJump : 0,
velocityRight : 0,
velocityLeft : 0,
velocityGoingDown : 0,
velocityGoingUp : 0,
// Help move variables
isMovingRight : false,
isMovingLeft : false,
// Animation
turnedRight : true,
turnedLeft : false,
animationIdRight : null,
animationIdLeft : null,
ahCollision : null,
underCollision : null,
jumpingId : null,
goingUpId : null,
goingDownId : null,
// NOW THEN DELTA
nowLeft : null,
thenLeft : Date.now(),
deltaLeft : null,
//
nowRight : null,
thenRight : Date.now(),
deltaRight : null,
//
nowDown : null,
thenDown : Date.now(),
deltaDown : null,
//
nowUp : null,
thenUp : Date.now(),
deltaUp : null,
//
nowGoingUp : null,
thenGoingUp : Date.now(),
deltaGoingUp : null,
//
nowGoingDown : null,
thenGoingDown : Date.now(),
deltaGoingDown : null,
// Help Jump variables
stillJumping : false,
// Help Crouch variables
crouched : false,
downPressed : false,
canStandUp : true,
wasUnder : true,
// Gravity
onRock : false,
onWood : false,
orbUsed : false,
canOrbJump : false,
gravityId : null,
// Ladder
ladderCol : false,
canGravityActivate : false,
alreadyGoingDown : false,
wPressed : false,
// Jump
headHit : null,
bounced : false,
jumpInterval : null,
jumpIntervalSet : false,
isJumping : null,
canUseJumpPad : false,
// Doors
doorCol : false,
closingDoorCol : false,
// Boss
canAttack : false,
//Slide
canSlideOnWall : false,
slideJumped : false,
//Moving platform
onMovingPlatform : false,
}

let playingMultiplayer = false;

//This will spawn you
let spawnCords = () => {
player1.x = 35;
player1.y = 500;
player2.x = 70;
player2.y = 500;
}
spawnCords();
Loading

0 comments on commit b9b5da6

Please sign in to comment.