Skip to content

Commit 16ccc95

Browse files
refactor: rename project
1 parent 036e2e1 commit 16ccc95

File tree

6 files changed

+18
-70
lines changed

6 files changed

+18
-70
lines changed

README.md

+8-60
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
<p align="center">
2-
<img src="https://github.com/remarkablegames/phaser-template/blob/master/public/logo192.png" alt="Phaser Template">
2+
<img src="https://github.com/remarkablegames/card-memory/blob/master/public/logo192.png" alt="Card Memory">
33
</p>
44

5-
# Phaser Template
5+
# Card Memory
66

7-
![release](https://img.shields.io/github/v/release/remarkablegames/phaser-template)
8-
[![build](https://github.com/remarkablegames/phaser-template/actions/workflows/build.yml/badge.svg)](https://github.com/remarkablegames/phaser-template/actions/workflows/build.yml)
7+
![release](https://img.shields.io/github/v/release/remarkablegames/card-memory)
8+
[![build](https://github.com/remarkablegames/card-memory/actions/workflows/build.yml/badge.svg)](https://github.com/remarkablegames/card-memory/actions/workflows/build.yml)
99

10-
<kbd>phaser-template</kbd> is a template for making [Phaser](https://phaser.io/) games.
11-
12-
Inspired by the tutorial "[Making your first Phaser 3 game](https://phaser.io/tutorials/making-your-first-phaser-3-game)".
10+
<kbd>Card Memory</kbd> is a [memory](<https://wikipedia.org/wiki/Concentration_(card_game)>) game.
1311

1412
Play the game on:
1513

16-
- [remarkablegames](https://remarkablegames.org/phaser-template/)
17-
- [CodeSandbox](https://codesandbox.io/s/phaser-template-4fy4y)
14+
- [remarkablegames](https://remarkablegames.org/card-memory/)
1815

1916
## Prerequisites
2017

@@ -25,8 +22,8 @@ Play the game on:
2522
Clone the repository:
2623

2724
```sh
28-
git clone https://github.com/remarkablegames/phaser-template.git
29-
cd phaser-template
25+
git clone https://github.com/remarkablegames/card-memory.git
26+
cd card-memory
3027
```
3128

3229
Install the dependencies:
@@ -35,55 +32,6 @@ Install the dependencies:
3532
npm install
3633
```
3734

38-
Rename the project:
39-
40-
```sh
41-
git grep -l phaser-template | xargs sed -i '' -e 's/phaser-template/my-game/g'
42-
git grep -l 'Phaser Template' | xargs sed -i '' -e 's/Phaser Template/My Game/g'
43-
```
44-
45-
Update the files:
46-
47-
- [ ] `README.md`
48-
- [ ] `package.json`
49-
- [ ] `index.html`
50-
- [ ] `public/manifest.json`
51-
- [ ] `src/index.ts`
52-
53-
Initialize a new repository:
54-
55-
```sh
56-
rm -rf .git
57-
git init
58-
```
59-
60-
Make your first commit:
61-
62-
```sh
63-
git add .
64-
git commit -m 'feat: initialize project from phaser-template'
65-
```
66-
67-
> [!NOTE]
68-
> Commit messages follow [Conventional Commits](https://conventionalcommits.org/), which helps with release.
69-
70-
Once you're ready, [push the local repository to GitHub](https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/) (or another remote repository):
71-
72-
```sh
73-
git remote add origin <remote-repository-url>
74-
git push origin -u origin master
75-
```
76-
77-
## Environment Variables
78-
79-
Set the environment variables:
80-
81-
```sh
82-
less .env
83-
```
84-
85-
Update the **Secrets** in the repository **Settings**.
86-
8735
## Available Scripts
8836

8937
In the project directory, you can run:

index.html

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<link rel="icon" href="favicon.ico" />
66
<meta name="viewport" content="width=device-width, initial-scale=1" />
77
<meta name="theme-color" content="#000000" />
8-
<meta name="description" content="Web game created using phaser-template" />
8+
<meta name="description" content="Web game created using card-memory" />
99
<link rel="apple-touch-icon" href="logo192.png" />
1010

1111
<!--
@@ -22,7 +22,7 @@
2222
-->
2323
<script
2424
src="https://unpkg.com/github-corners/dist/embed.min.js"
25-
data-href="https://github.com/remarkablegames/phaser-template"
25+
data-href="https://github.com/remarkablegames/card-memory"
2626
data-target="_blank"
2727
async
2828
defer
@@ -38,7 +38,7 @@
3838
</style>
3939
<% } %>
4040

41-
<title>Phaser Template | remarkablegames</title>
41+
<title>Card Memory | remarkablegames</title>
4242
</head>
4343
<body>
4444
<noscript>You need to enable JavaScript to play this game.</noscript>

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "phaser-template",
2+
"name": "card-memory",
33
"version": "1.0.0-alpha",
44
"description": "A template for building Phaser games.",
55
"author": "Mark <[email protected]>",
@@ -14,7 +14,7 @@
1414
"preview": "vite preview",
1515
"start": "vite --open"
1616
},
17-
"homepage": "https://remarkablegames.org/phaser-template/",
17+
"homepage": "https://remarkablegames.org/card-memory/",
1818
"dependencies": {
1919
"phaser": "3.87.0",
2020
"phaser-jsx": "0.11.0"

public/manifest.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"short_name": "Phaser Template",
3-
"name": "Phaser Template",
2+
"short_name": "Card Memory",
3+
"name": "Card Memory",
44
"icons": [
55
{
66
"src": "favicon.ico",

src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import * as scenes from './scenes';
88
new Phaser.Game({
99
width: 800, // 1024
1010
height: 600, // 768
11-
title: 'Phaser Template',
11+
title: 'Card Memory',
1212
url: import.meta.env.VITE_APP_HOMEPAGE,
1313
version: import.meta.env.VITE_APP_VERSION,
1414
scene: [

0 commit comments

Comments
 (0)