Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
463ea89
GitHub Classroom Feedback
github-classroom[bot] Mar 19, 2024
75686ee
Setting up GitHub Classroom Feedback
github-classroom[bot] Mar 19, 2024
40e0568
updated readme
ryan-31 Mar 20, 2024
8ed7315
Added egdd
ryan-31 Mar 20, 2024
7904c20
troubleshooting
ryan-31 Mar 20, 2024
64a2a99
troubleshooting deployment error
ryan-31 Mar 21, 2024
733b17d
removed readme
ryan-31 Mar 21, 2024
acbc8f4
fixed README formatting
ryan-31 Mar 21, 2024
b07d436
formatting
ryan-31 Mar 21, 2024
48e5081
set up start menu
ryan-31 Mar 22, 2024
29093db
working start button
ryan-31 Mar 22, 2024
dc2d12b
readme
ryan-31 Mar 22, 2024
027b0a8
fixed level placeholder
ryan-31 Mar 22, 2024
6c7944f
Merge pull request #2 from UD-S24-CISC374/title-screen
ryan-31 Mar 22, 2024
4b0808f
simple idle wizard
ChristianPNG Mar 28, 2024
b2690a6
added platform and new world boundary
ChristianPNG Mar 28, 2024
335a7e8
added movement + boundary collision
ChristianPNG Mar 28, 2024
147e3d0
Merge pull request #3 from UD-S24-CISC374/character-design
ChristianPNG Mar 28, 2024
6e28861
added 1 npc and 1 enemy, transferred over the wasd movement
ChristianPNG Mar 28, 2024
0a01f79
Merge pull request #4 from UD-S24-CISC374/character-design
ChristianPNG Mar 28, 2024
abb692b
added fixed terminal-like text box
ChristianPNG Mar 31, 2024
058421f
Merge pull request #5 from UD-S24-CISC374/unix-shell
ChristianPNG Mar 31, 2024
ccffb4e
message appears when close to robo
ryan-31 Apr 3, 2024
a425ed5
enemy message
ryan-31 Apr 3, 2024
2b458ee
Merge pull request #6 from UD-S24-CISC374/npm-interaction
ryan-31 Apr 3, 2024
6e0e1c4
text input
ryan-31 Apr 5, 2024
316d4b4
input changes text
ryan-31 Apr 6, 2024
328ed75
text pops up
ryan-31 Apr 7, 2024
f16db11
removed testing line
ryan-31 Apr 7, 2024
23bee3c
Merge pull request #7 from UD-S24-CISC374/input
ryan-31 Apr 7, 2024
2c2dc25
fixed bug causing multiple calls to GameScene
ChristianPNG Apr 12, 2024
a26b789
merge commit
ChristianPNG Apr 12, 2024
eed5d1a
Merge pull request #8 from UD-S24-CISC374/fight-scene
ChristianPNG Apr 12, 2024
73891e7
added more npc dialogue, more console commands
ryan-31 Apr 12, 2024
ebfc49e
fighting instructions
ryan-31 Apr 12, 2024
e324ce1
added dissapearing instructions
ryan-31 Apr 12, 2024
ad431d0
Merge pull request #9 from UD-S24-CISC374/fighting
ryan-31 Apr 12, 2024
b47b58b
added fighting text
ryan-31 Apr 16, 2024
0fdbc8a
Merge pull request #10 from UD-S24-CISC374/fighting
ryan-31 Apr 16, 2024
cabb868
fixed cd ..
ryan-31 Apr 19, 2024
96a69da
door asset
ChristianPNG Apr 20, 2024
f168499
cd . --> ..
ryan-31 Apr 25, 2024
10c9590
added fighting music
ryan-31 Apr 25, 2024
e6a618a
added tileset map design
ChristianPNG Apr 26, 2024
1a50b4a
Merge pull request #11 from UD-S24-CISC374/map-expansion
ChristianPNG Apr 26, 2024
3a86d58
improved map design
ChristianPNG Apr 26, 2024
d9b1589
Merge pull request #12 from UD-S24-CISC374/map-expansion
ChristianPNG Apr 26, 2024
3ab70ca
new hallway, cliffs, and lake room added
ChristianPNG Apr 28, 2024
22f8ac1
Merge pull request #13 from UD-S24-CISC374/map-expansion
ChristianPNG Apr 28, 2024
2ff7653
fixed bug allowing the user to backspace the prompt text away
ChristianPNG Apr 28, 2024
314a5d7
Merge pull request #14 from UD-S24-CISC374/unix-shell
ChristianPNG Apr 28, 2024
62de4f5
added robodialogue helper class
ChristianPNG Apr 29, 2024
84f18a9
added console helper class
ChristianPNG Apr 29, 2024
c632e3e
fixed bug, winning the fight now has persisting victory text + classi…
ChristianPNG Apr 29, 2024
78b5c7e
Merge branch 'main' of https://github.com/UD-S24-CISC374/final-projec…
ryan-31 Apr 29, 2024
462c819
added hearts
ryan-31 Apr 29, 2024
13e89c9
code in main scene removed
ChristianPNG Apr 29, 2024
ee18264
heart position
ryan-31 Apr 29, 2024
54a05c7
Merge pull request #15 from UD-S24-CISC374/code-organization
ChristianPNG Apr 29, 2024
667c925
Merge branch 'main' of https://github.com/UD-S24-CISC374/final-projec…
ryan-31 Apr 29, 2024
476fdeb
reorganization
ryan-31 Apr 29, 2024
578b673
readded .. bug fix
ryan-31 Apr 29, 2024
67341cc
fixed leftover terminal text
ryan-31 Apr 29, 2024
0e2e327
Merge pull request #16 from UD-S24-CISC374/better-fighting
ryan-31 Apr 29, 2024
ba561df
added new npc and enemy
ChristianPNG Apr 30, 2024
cc95d81
Merge branch 'main' of https://github.com/UD-S24-CISC374/final-projec…
ChristianPNG Apr 30, 2024
f54ff2e
added new hallway + bossroom
ChristianPNG Apr 30, 2024
dab3ab4
prettier changes
ChristianPNG Apr 30, 2024
151831a
Merge pull request #17 from UD-S24-CISC374/map-expansion
ChristianPNG Apr 30, 2024
e1b0720
added button
ryan-31 Apr 30, 2024
e03995b
Merge branch 'main' of https://github.com/UD-S24-CISC374/final-projec…
ryan-31 Apr 30, 2024
0096296
added credits
ryan-31 Apr 30, 2024
610b702
Merge pull request #18 from UD-S24-CISC374/credits
ryan-31 Apr 30, 2024
647dece
boss added with idle animation
ChristianPNG Apr 30, 2024
aa525e0
smiley npc added with idle animation
ChristianPNG May 1, 2024
e8d23c2
smiley dialogue
ChristianPNG May 1, 2024
67e3198
game over scene
ryan-31 May 1, 2024
2053f91
Merge pull request #19 from UD-S24-CISC374/gameover
ryan-31 May 1, 2024
d9a7ba5
fixed any stack or hashmap bugs
ChristianPNG May 1, 2024
e713153
shades comabt added
ChristianPNG May 1, 2024
d6e9b45
completed basics of boss fight
ChristianPNG May 1, 2024
93ca1fc
handling merge conflicts
ChristianPNG May 1, 2024
348682b
Merge pull request #20 from UD-S24-CISC374/boss-battle-1
ChristianPNG May 1, 2024
5509427
added doors + fixed improper clearing of data structures
ChristianPNG May 1, 2024
aac98e5
Merge pull request #21 from UD-S24-CISC374/map-expansion
ChristianPNG May 1, 2024
eb9667f
wizard animation + stricter movement
ChristianPNG May 2, 2024
fe654cc
Merge pull request #22 from UD-S24-CISC374/character-design
ChristianPNG May 2, 2024
60ff9cd
added damage calculation to boss fight on player
ChristianPNG May 2, 2024
512e7c8
losing transitions correctly main->gameover->menu
ChristianPNG May 2, 2024
d0f8535
damage calculations for boss complete
ChristianPNG May 2, 2024
b587669
added interfaces and objects
ryan-31 May 2, 2024
858f051
able to explore misc directories in boss fight
ChristianPNG May 2, 2024
2e09035
Merge pull request #23 from UD-S24-CISC374/damage-calculations
ChristianPNG May 2, 2024
76a9545
finally working
ryan-31 May 2, 2024
7703b5e
simplified fight
ryan-31 May 2, 2024
c8edaa3
added rat health
ryan-31 May 2, 2024
08e5dda
Merge pull request #24 from UD-S24-CISC374/level2
ryan-31 May 2, 2024
624f08a
text adjustments
ryan-31 May 2, 2024
252ee53
heart positioning
ryan-31 May 2, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Empty file added .github/.keep
Empty file.
18 changes: 17 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
REPLACE THIS WITH A DESCRIPTION OF YOUR GAME (in the README.md file).
# Bash the Dungeon - README

Bash the Dungeon is a top-down adventure game where players, explore a dungeon, encountering NPCs, chests, and enemies as they learn Bash commands and grow their collection of spells.

Players navigate a dungeon as a wizard, and they can interact with NPCs to learn more spells (Bash commands), and interact with chests. At the end of each level, they will encounter a boss, who they have to defeat by using their newly learned Bash commands.

*Navigate Filesystems*: *By the end of instruction, students will be able to navigate a filesystem using bash commands.*
- *Solve Bash Tasks*: *By the end of instruction, students will solve bash command tasks*
- *Debug Bash Problems*: *By the end of instruction, students will be able to debug bash related problems *

# Sources:
Start Background - Creator: YUCALORA | Credit: YUCALORA // Shutterstock www.shutterstock.com%2Fsearch%2Fdungeon-dark%3Fimage_type%3Dvector&psig=AOvVaw1S-w0NzaIssc8GQBIsGlsY&ust=1711209398231000&source=images&cd=vfe&opi=89978449&ved=0CBIQjRxqFwoTCLCe8POdiIUDFQAAAAAdAAAAABAI

Start Button - Adobe Stock Photos https://www.google.com/url?sa=i&url=https%3A%2F%2Fstock.adobe.com%2Fsearch%3Fk%3Dstart%2Bbutton%2Bgame&psig=AOvVaw1j3fjEfqUI7eO-EV9jOzXV&ust=1711210529046000&source=images&cd=vfe&opi=89978449&ved=0CBIQjRxqFwoTCLCP_Y6iiIUDFQAAAAAdAAAAABAE

Battle Music - "Retro Platforming" by David Fesliyan
https://www.fesliyanstudios.com/royalty-free-music/downloads-c/8-bit-music/6
5,755 changes: 5,755 additions & 0 deletions assets/DungeonMap.json

Large diffs are not rendered by default.

Binary file added assets/Hunter.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 assets/Unused/cultist.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 assets/Unused/storyboard.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 assets/backBtn.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 assets/background.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 assets/battle.mp3
Binary file not shown.
Binary file added assets/controlsBtn.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 assets/credits-btn.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 assets/creditsBkd.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 assets/cultistIdle.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 assets/cultist_sheet.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 assets/door.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 assets/dungeonFloor.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 assets/dungeonTiles.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 assets/dungeon_tiles_v4.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 assets/hearts.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 removed assets/img/phaser-logo.png
Binary file not shown.
6 changes: 5 additions & 1 deletion assets/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@

<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" />

<title><%= htmlWebpackPlugin.options.gameName %></title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap" rel="stylesheet">

<title>Bash the Dungeon</title>
<style>
html,
body {
Expand Down
Binary file added assets/mainBtn.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 assets/resourceful_rat.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 assets/robo.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 assets/rugged_wizard.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 assets/scroll.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 assets/shades_sheet.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 assets/smiley_sheet.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 assets/startBackground.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 assets/startBtn.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
188 changes: 187 additions & 1 deletion docs/egdd.md
Original file line number Diff line number Diff line change
@@ -1 +1,187 @@
REPLACE THIS TEXT WITH YOUR EGDD MARKDOWN.
# Bash the Dungeon

## Elevator Pitch
*Bash the Dungeon is a top-down adventure game where players, explore a dungeon, encountering NPCs, chests, and enemies as they learn Bash commands and grow their collection of spells*

## Influences (Brief)

- *Enter the Gungeon*:
- Medium: *Game*
- Explanation: *We were inspired by Enter the Gungeon’s 2D game where players explore a map and interact with chests, enemies, and NPCs as they navigate through the dungeon.*
- *Influence #2*: Legend of Zelda
- Medium: *Game*
- Explanation: *Legend of Zelda's dungeon-like style of traversing rooms with a sword and shield, fighting enemies and clearing levels. Boss battles involved*
- *Influence #3*: Binding of Issac
- Medium: *Game*
- Explanation: *We were inspired by the 2D top-down movement and fighting style of this game, where players explore and fight enemies.*

## Core Gameplay Mechanics (Brief)

*Give a very high-level description of any core gameplay mechanics*

- *Gameplay Mechanic #1* Players can freely move around the world with keyboard arrow/wasd movement.
- *Gameplay Mechanic #2* Interactions with the world will involve bash commands, this includes doing things such as “CD” into chests or NPC’s in order to interact with them.
- *Gameplay Mechanic #3* Combat will be turned based and each monster will teach the player how to incorporate bash commands they learned in order to defeat them. Failure to write the proper commands will result in damage taken.
- *Gameplay Mechanic #4* Levels each teach a specific set of commands as the players navigate and interact with NPC’s and chests to learn more. Each level culminates in a Boss Battle in a battle that encompasses commands they’ve learned so far.
-*Gameplay Mechanic #5* Spells: Players can find and utilize spells to combat enemies. Spells will be cast based on the commands players enter.




# Learning Aspects

## Learning Domains

*Introductory Bash commands.*

## Target Audiences

*Computer science students beginning to learn about Bash commands*

## Target Contexts

*Informal educational content, casual based game *

## Learning Objectives

*Remember, Learning Objectives are NOT simply topics. They are statements of observable behavior that a learner can do after the learning experience. You cannot observe someone "understanding" or "knowing" something.*

- *Navigate Filesystems*: *By the end of instruction, students will be able to navigate a filesystem using bash commands.*
- *Solve Bash Tasks*: *By the end of instruction, students will solve bash command tasks*
- *Debug Bash Problems*: *By the end of instruction, students will be able to debug bash related problems *

## Prerequisite Knowledge

*What do they need to know prior to trying this game?*

- *A familiarity with the command line interface.*
- *A basic understanding of file system concepts.*

## Assessment Measures

*A pretest and post test will be administered before and after the game is completed*

*Question content consists of asking for the correct Bash commands based on a certain situation*

# What sets this project apart?

- *An exploration style game where players interact with the world through Bash commands*
- *Gameplay is centered around exploring and interacting the world, instead of centered around assessing players.
- *Combat system involved to add excitement and consequences to the learning process*

# Player Interaction Patterns and Modes

## Player Interaction Pattern

*One-player game. The player interacts with the game via their keyboard - players move using their arrow keys/wasd and type Bash commands by entering text.*

## Player Modes

*Your game has one or more player modes. Describe each discrete mode, considering things like menus too. Generally describe the transitions between modes too.*

- *Single-player: You repeatedly advance through rounds and levels until you reach the end.*


# Gameplay Objectives

- *Defeat each boss*:
- Description: *Each level will have a boss that the player will have to defeat to move on*
- Alignment: *Students will have to utilize Bash commands to defeat the boss and counter their attacks*
- *Talk to all NPC’s and learn all moves*:
- Description: *During the game there will be multiple NPCs to talk to that will teach you about how to clear the level through various means of bash commands. The main goal is to learn all these commands to be able to fight off the enemies.*
- Alignment: *This will be a starting point for the users by learning about the bash commands and then incorporating them throughout the level effectively making them learn how to utilize bash commands for specific scenarios. *


# Procedures/Actions

*Users can use arrow keys to move around and click on NPCs and objects to interact with them. Users will also use their keyboard to type Bash commands during combat and puzzles.*

# Rules

Player must complete each room before arriving at the boss
Player must beat the boss to get to next level
Players must stay above 0 HP to continue the game, reaching 0 ends the game
Taking damage from failing a bash command reduces health

# Objects/Entities
Wizard sprite
Boss sprites
Text input window
NPC sprites
Popup dialogue from NPCs
Health Bar
Spells that fly across the screen

## Core Gameplay Mechanics (Detailed)

- *Movement*: Players while not in combat will be able to traverse rooms using the WASD and arrow keys in a free roam style. While in combat there will not be any movement.
- *Interaction*: As they move, players will be able to interact with the world by clicking on NPCs and objects. When clicking on NPCs, dialogue will appear as the NPCs explain new commands. Players will be able to also interact with game objects such as chests, which they can treat similarly to filesystems, and be able to CD through them to access files.
- *Combat*: *In combat, players will have a text entry field where they will be able to enter Bash commands. After each correct command, a spell will shoot across the screen and damage the boss. Incorrect commands will lead to damage being taken from the boss.*
- *Core Gameplay Mechanic #4*: Levels each teach a specific set of commands as the players navigate and interact with NPC’s and chests to learn more. For example, in one level the player might need to get coles to an NPC and initiate a talking sequence that will teach about the CP command. Chests will unlock new spells to be able to use against the enemies. Each level culminates in a Boss Battle in a battle that encompasses commands they’ve learned so far. So if a level talks about the commands CP, CD, LS then the boss will incorporate all those commands in order to complete the fight.
*Core Gameplay Mechanic #5* Spells: Players can find and utilize spells to combat enemies. Spells will be cast based on the commands players enter. Player can find new spells as the game goes on via chests and something to note is that spells are just purely cosmetic as they don’t actually change how much damage you do but just adds to the dynamic of the game.



## Feedback

Failing a bash commands results in a lose of health that will be displayed to the player
Successfully executing a bash command will result in a loss of health to the enemy that will be displayed to the player.
Beating levels will result in new harder levels that will be different
There will be high score text showcasing what is the farthest in the game the player has achieved.
Every end game screen will display text and images showcasing the enemies and levels they have completed
# Story and Gameplay

## Presentation of Rules

*The rules of the game will be taught briefly by NPCs and since the rules are so simplistic anything else will be learned via quick experience with the first enemy or be blocked from doing based on the game’s boundaries.*

## Presentation of Content

*Gameplay mechanics will be taught briefly by NPC’s and then follow a small tutorial of how to execute the bash commands. The enemies will then be a way to build upon that and expand that knowledge. The bosses will be a way to solidify that knowledge and make sure the player has fully mastered it.*

## Story (Brief)

*You are a wizard exploring a dungeon and want to obtain a super spell at the end of the dungeon for the sake of power.*

## Storyboarding
![Storyboard Image](../assets/storyboard.png)


# Assets Needed

## Aesthetics

*Blocky, pixelated 8-bit visuals, with peaceful ambient noise during exploration and upbeat energetic music during boss fights. Dungeon that inspires a sense of exploration and adventure*

## Graphical

- Characters List
- *Wizard*: Player's character, an 8-bit wizard
- *NPC 1*: A character in the dungeon the player can interact with; 8-bit
- *NPC 2*: A character in the dungeon the player can interact with; 8-bit
- *Boss 1*: A monster in the dungeon that the player has to defeat.
- *NPC 3*: A character in the dungeon the player can interact with; 8-bit
- *NPC 4*: A character in the dungeon the player can interact with; 8-bit
- *Boss 2*: A character in the dungeon the player has to defeat
- Textures:
- *Characters should have an 8-bit appearance*
- Environment Art/Textures:
- *The background should be a dungeon*

## Audio

- Music List (Ambient sound)
- *Exploring the dungeon*: *Calming ambient music*
- *Boss Battle*: *Upbeat fighting music*


- Sound List (SFX)
- *Whoosh of spell firing*: *magical whooshing sound of a spell flying*
- *Hurt Player Noise*: *when the player or boss takes damage*
- *Creaking chest opening noise*: *when a player opens a chest*


# Metadata

* Template created by Austin Cory Bart <acbart@udel.edu>, Mark Sheriff, Alec Markarian, and Benjamin Stanley.
* Version 0.0.3
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,27 +39,27 @@
"phaser": "^3.70.0"
},
"devDependencies": {
"@types/jest": "^29.5.11",
"@typescript-eslint/eslint-plugin": "^6.2.0",
"@typescript-eslint/parser": "^6.2.0",
"@yandeu/prettier-config": "^0.0.3",
"copy-webpack-plugin": "^10.1.0",
"eslint": "^8.46.0",
"html-webpack-plugin": "^5.5.0",
"javascript-obfuscator": "^4.0.0",
"jest": "^29.7.0",
"prettier": "^2.5.1",
"rimraf": "^3.0.2",
"serve": "^14.1.2",
"ts-jest": "^29.1.1",
"ts-loader": "^9.2.6",
"ts-node": "^10.9.2",
"typescript": "^4.5.3",
"webpack": "^5.65.0",
"webpack-cli": "^4.9.1",
"webpack-dev-server": "^4.6.0",
"webpack-merge": "^5.8.0",
"webpack-obfuscator": "^3.5.0",
"workbox-webpack-plugin": "^6.4.2",
"eslint": "^8.46.0",
"@types/jest": "^29.5.11",
"jest": "^29.7.0",
"ts-jest": "^29.1.1",
"ts-node": "^10.9.2",
"@typescript-eslint/eslint-plugin": "^6.2.0",
"@typescript-eslint/parser": "^6.2.0"
"workbox-webpack-plugin": "^6.4.2"
}
}
12 changes: 7 additions & 5 deletions src/config.ts
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
import Phaser from "phaser";
import MainScene from "./scenes/mainScene";
import MainScene from "./scenes/startScene";
import PreloadScene from "./scenes/preloadScene";
import GameScene from "./scenes/gameScene";
import CreditsScene from "./scenes/creditsScene";
import GameOverScene from "./scenes/gameoverScene";

const DEFAULT_WIDTH = 1280;
const DEFAULT_HEIGHT = 720;

export const CONFIG = {
title: "My Untitled Phaser 3 Game",
title: "Bash",
version: "0.0.1",
type: Phaser.AUTO,
backgroundColor: "#ffffff",
backgroundColor: "#000000",
scale: {
parent: "phaser-game",
mode: Phaser.Scale.FIT,
autoCenter: Phaser.Scale.CENTER_BOTH,
width: DEFAULT_WIDTH,
height: DEFAULT_HEIGHT,
},
scene: [PreloadScene, MainScene],
scene: [PreloadScene, MainScene, GameScene, CreditsScene, GameOverScene],
physics: {
default: "arcade",
arcade: {
debug: false,
gravity: { y: 300 },
},
},
input: {
Expand Down
14 changes: 14 additions & 0 deletions src/interfaces/consoleHelperInterface.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import Phaser from "phaser";

export interface ConsoleHelperInterface {
text: string;
fighting: boolean;
lsTutorial: boolean;
cdTutorial: boolean;
cdLsTut: boolean;
cdBackTut: boolean;
curDir: string;
foundFile: boolean;
won: boolean;
consoleDialogue?: Phaser.GameObjects.Text;
}
7 changes: 7 additions & 0 deletions src/interfaces/directories.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import Phaser from "phaser";

export interface Directories {
fighting: boolean;
curDir: string | undefined;
dialogue: Phaser.GameObjects.Text | undefined;
}
16 changes: 16 additions & 0 deletions src/interfaces/level2Interface.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import Phaser from "phaser";

export interface Level2Interface {
curDir: string | undefined;
won: boolean;
dialogue: Phaser.GameObjects.Text | undefined;
text: string,
fighting: boolean,
mkDirTut: boolean,
lsMkTest: boolean,
cdTest: boolean,
lsInTest: boolean,
lsMyFile: boolean,
touchMyFile: boolean,
createdFile: boolean,
}
9 changes: 9 additions & 0 deletions src/interfaces/shadesInterface.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import Phaser from "phaser";

export interface ShadesInterface {
curDir: string | undefined;
won: boolean;
playerHealth: Phaser.GameObjects.Sprite | undefined;
shadesHealth: Phaser.GameObjects.Sprite | undefined;
dialogue: Phaser.GameObjects.Text | undefined;
}
Loading