Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 7 additions & 0 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.exports = {
printWidth: 100,
semi: false,
singleQuote: true,
tabWidth: 2,
trailingComma: "all",
}
7 changes: 0 additions & 7 deletions .prettierrs.js

This file was deleted.

44 changes: 21 additions & 23 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,22 @@
{
"typescript.tsdk": "node_modules/typescript/lib",
"editor.tabSize": 2,
"eslint.validate": [
"javascript",
"javascriptreact",
{
"language": "typescript",
"autoFix": true
},
],
"[javascript]": {
"editor.formatOnSave": true
},
"[typescript]": {
"editor.formatOnSave": true
},
"[html]": {
"editor.formatOnSave": true
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
}
"typescript.tsdk": "node_modules/typescript/lib",
"editor.tabSize": 2,
"editor.formatOnSave": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"eslint.validate": ["javascript", "javascriptreact", "typescript"],
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "always"
}
}
17 changes: 17 additions & 0 deletions package-lock.json

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "webpack serve --mode development",
"build": "webpack --mode production"
"build": "webpack --mode production",
"format": "prettier --write \"src/**/*.ts\""
},
"repository": {
"type": "git",
Expand All @@ -33,6 +34,7 @@
"json-loader": "^0.5.7",
"phaser": "^3.60.0",
"phaser-raycaster": "^0.10.6",
"prettier": "^3.8.1",
"ts-loader": "^9.4.2",
"typescript": "^5.0.3",
"webpack": "^5.77.0",
Expand Down
60 changes: 27 additions & 33 deletions src/assets/credits.ts
Original file line number Diff line number Diff line change
@@ -1,65 +1,59 @@
type AssetType =
| "2D Art"
| "3D Art"
| "Textures"
| "Music"
| "Sound Effects"
| "Fonts";
type AssetType = '2D Art' | '3D Art' | 'Textures' | 'Music' | 'Sound Effects' | 'Fonts'

export interface Asset {
type: AssetType;
name: string;
url: string;
type: AssetType
name: string
url: string
}

export interface Credit {
author: string;
url?: string;
assets: Asset[];
author: string
url?: string
assets: Asset[]
}

export const credits: Credit[] = [
{
author: "Riley Gombart",
url: "https://opengameart.org/users/rileygombart",
author: 'Riley Gombart',
url: 'https://opengameart.org/users/rileygombart',
assets: [
{
type: "2D Art",
name: "Animated Top Down Survivor Player",
url: "https://opengameart.org/content/animated-top-down-survivor-player",
type: '2D Art',
name: 'Animated Top Down Survivor Player',
url: 'https://opengameart.org/content/animated-top-down-survivor-player',
},
],
},
{
author: "Kay Lousberg",
url: "https://www.kaylousberg.com/",
author: 'Kay Lousberg',
url: 'https://www.kaylousberg.com/',
assets: [
{
type: "2D Art",
name: "2D Guns",
url: "https://opengameart.org/content/2d-guns",
type: '2D Art',
name: '2D Guns',
url: 'https://opengameart.org/content/2d-guns',
},
],
},
{
author: "Tiziana",
author: 'Tiziana',
assets: [
{
type: "Textures",
name: "Even grey stone tile floor 256px",
url: "https://opengameart.org/content/even-grey-stone-tile-floor-256px",
type: 'Textures',
name: 'Even grey stone tile floor 256px',
url: 'https://opengameart.org/content/even-grey-stone-tile-floor-256px',
},
],
},
{
author: "iwanPlays",
url: "https://sketchfab.com/iwanPlays",
author: 'iwanPlays',
url: 'https://sketchfab.com/iwanPlays',
assets: [
{
type: "3D Art",
name: "Industrial Bulkhead Wall Lamp Lowpoly",
url: "https://sketchfab.com/3d-models/industrial-bulkhead-wall-lamp-lowpoly-4c50439bcbc247629fe2194862d7acc9",
type: '3D Art',
name: 'Industrial Bulkhead Wall Lamp Lowpoly',
url: 'https://sketchfab.com/3d-models/industrial-bulkhead-wall-lamp-lowpoly-4c50439bcbc247629fe2194862d7acc9',
},
],
},
];
]
114 changes: 0 additions & 114 deletions src/controls/Inputs.ts

This file was deleted.

Loading