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
14 changes: 14 additions & 0 deletions game/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"tabWidth": 4,
"trailingComma": "all",
"printWidth": 80,
"semi": true,
"overrides": [
{
"files": "*.json",
"options": {
"tabWidth": 2
}
}
]
}
3 changes: 1 addition & 2 deletions game/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
- `src` - source code for your kaplay project
- `dist` - distribution folder, contains your index.html, built js bundle and static assets


## Development

```sh
Expand All @@ -24,4 +23,4 @@ will build your js files into `dist/`
$ npm run zip
```

will build your game and package into a .zip file, you can upload to your server or itch.io / newground etc.
will build your game and package into a .zip file, you can upload to your server or itch.io / newground etc.
19 changes: 10 additions & 9 deletions game/index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
<!DOCTYPE html>
<!doctype html>
<html>
<head>
<title>mygame</title>
<link rel="stylesheet" href="style.css">
</head>
<body style="overflow:hidden">
<script src="src/main.js" type="module"></script>
</body>
</html>
<head>
<title>mygame</title>
<link rel="stylesheet" href="/style.css" />
</head>

<body style="overflow: hidden">
<script src="src/main.js" type="module"></script>
</body>
</html>
Loading