Skip to content
Merged
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
4 changes: 0 additions & 4 deletions .babelrc

This file was deleted.

9 changes: 4 additions & 5 deletions .github/workflows/webpack.yml → .github/workflows/vite.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
name: Webpack
name: Vite

on:
push:
branches: ["master"]
branches: ["**"]
pull_request:
branches: ["master"]

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]
node-version: [22.x]

steps:
- uses: actions/checkout@v4
Expand All @@ -25,7 +24,7 @@ jobs:
- name: Build
run: |
npm install
npx webpack
npm run build

- name: Save artifacts
uses: actions/upload-artifact@v4
Expand Down
4 changes: 4 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"plugins": ["prettier-plugin-svelte"],
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ Install the required packages for the build:
npm install
```

Build with `npx webpack`. It will create a `dist` folder. For seamless
development with auto-reload, `npx webpack serve` - if you do this, put any
Build with `npm run build`. It will create a `dist` folder. For seamless
development with auto-reload, `npm run dev` - if you do this, put any
respacks in `public/respacks` so they're found by the local server.

## Adding a new beat character
Expand All @@ -108,7 +108,7 @@ There's a few places to change, here's a list:

- The documentation in the INFO tab. Found in `HuesInfo.svelte`
- The mouseover documentation & button for the beat in EDITOR. Found in `HuesEditor/Main.svelte`
- The list of beats in `HuesCore.ts`
- The list of beats in `HuesCore.svelte.ts`
- If you've added some new display behaviour:
- A new beat type in the `Effect` enum
- A handler in the `beater` function
Expand Down
Binary file removed fonts/HuesExtra.eot
Binary file not shown.
25 changes: 0 additions & 25 deletions fonts/HuesExtra.svg

This file was deleted.

Binary file removed fonts/HuesExtra.ttf
Binary file not shown.
70 changes: 25 additions & 45 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,47 +1,27 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>0x40</title>
<!-- Non minified at https://github.com/mon/0x40-web/ -->
<link rel="stylesheet" href="css/hues-min.css">
<!-- Preload UI images -->
<link rel="preload" href="img/bones.png" as="image">
<link rel="preload" href="img/left-hand.png" as="image">
<link rel="preload" href="img/lightbase.png" as="image">
<link rel="preload" href="img/lightoff_inverted.png" as="image">
<link rel="preload" href="img/lightoff.png" as="image">
<link rel="preload" href="img/lighton_inverted.png" as="image">
<link rel="preload" href="img/lighton.png" as="image">
<link rel="preload" href="img/right-hand.png" as="image">
<link rel="preload" href="img/skull-eyes.png" as="image">
<link rel="preload" href="img/skull.png" as="image">
<link rel="preload" href="img/tombstone_invert.png" as="image">
<link rel="preload" href="img/tombstone.png" as="image">
<link rel="preload" href="img/vignette.png" as="image">
<link rel="preload" href="img/web-bottomright.png" as="image">
<link rel="preload" href="img/web-topleft.png" as="image">
<link rel="preload" href="img/web-topright.png" as="image">
<link rel="preload" href="img/wiresbottom.png" as="image">
<link rel="preload" href="img/wiresleft.png" as="image">
<link rel="preload" href="img/wiresright.png" as="image">
<script type="text/javascript" src="lib/hues-min.js"></script>
<script type="text/javascript">
window.addEventListener("load", function() {
var defaults = {
respacks : ["./respacks/Defaults_v5.0_Opaque.zip",
"./respacks/CharPackage v0.03 Opaque.zip",
"./respacks/Huesless_v0.11.zip",
"./respacks/HuesMixA.zip"
],
firstSong : "Nhato - Miss You",
};
core = new HuesCore(defaults);
});
</script>
</head>
<body>
This page requires Javascript.
</body>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>0x40</title>
<script type="text/javascript">
window.addEventListener("load", function () {
var defaults = {
respacks: [
"./respacks/Defaults_v5.0_Opaque.zip",
"./respacks/CharPackage v0.03 Opaque.zip",
"./respacks/Huesless_v0.11.zip",
"./respacks/HuesMixA.zip",
],
firstSong: "Nhato - Miss You",
};
core = new HuesCore(defaults);
});
</script>
<!-- Non minified at https://github.com/mon/0x40-web/ -->
<script type="module" src="/src/js/HuesCore.svelte.ts"></script>
</head>
<body>
This page requires Javascript.
</body>
</html>
Loading