Skip to content

Commit 1855b37

Browse files
author
Josh Goldberg
authored
* [email protected] * Newer Node image; fix typings * Remove more puppeteer * Corrected Yarn cache key
1 parent 8cdb90d commit 1855b37

File tree

173 files changed

+4249
-4338
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

173 files changed

+4249
-4338
lines changed

.circleci/config.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,18 @@
11
version: 2.1
22

3-
orbs:
4-
puppeteer: threetreeslight/[email protected]
5-
63
references:
74
default_env: &default_env
85
docker:
9-
- image: circleci/node:14.4.0
6+
- image: cimg/node:16.7-browsers
107

11-
yarn_cache_key_1: &yarn_cache_key_1 yarn---
12-
yarn_cache_key_2: &yarn_cache_key_2 yarn--
13-
yarn_cache_key_3: &yarn_cache_key_3 yarn-
8+
yarn_cache_key_1: &yarn_cache_key_1 yarn-v1-{{ checksum "yarn.lock" }}
9+
yarn_cache_key_2: &yarn_cache_key_2 yarn-v1-
1410

1511
restore_yarn_cache: &restore_yarn_cache
1612
restore_cache:
1713
keys:
1814
- *yarn_cache_key_1
1915
- *yarn_cache_key_2
20-
- *yarn_cache_key_3
2116

2217
save_yarn_cache: &save_yarn_cache
2318
save_cache:
@@ -38,7 +33,6 @@ jobs:
3833
<<: *default_env
3934
steps:
4035
- checkout
41-
- puppeteer/install
4236
- *restore_yarn_cache
4337
- run: yarn compile
4438
- run: yarn test

.eslintrc.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
},
1313
"plugins": ["@typescript-eslint"],
1414
"rules": {
15+
// TODO: It would be nice to enable these...
1516
"@typescript-eslint/explicit-module-boundary-types": "off",
1617
"@typescript-eslint/no-empty-function": "off",
1718
"@typescript-eslint/no-explicit-any": "off",
@@ -21,10 +22,9 @@
2122
"@typescript-eslint/no-unsafe-call": "off",
2223
"@typescript-eslint/no-unsafe-member-access": "off",
2324
"@typescript-eslint/no-unsafe-return": "off",
24-
"@typescript-eslint/require-await": "off",
25-
"@typescript-eslint/restrict-template-expressions": "off",
25+
"@typescript-eslint/no-unused-vars": "off",
2626
"@typescript-eslint/restrict-plus-operands": "off",
27-
"@typescript-eslint/unbound-method": "off",
28-
"@typescript-eslint/no-unused-vars": "off"
27+
"@typescript-eslint/restrict-template-expressions": "off",
28+
"@typescript-eslint/unbound-method": "off"
2929
}
3030
}

docs/map-spawning.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# Map Spawning
22

33
Individual sections of the overworld are stored as separate maps under `src/creators/mapLibrary`.
4-
Areas register their neighbors by placing an `AreaSpawner` Thing on the border between the two areas:
4+
Areas register their neighbors by placing an `AreaSpawner` Actor on the border between the two areas:
55

66
```typescript
77
creation: [
8-
{ thing: "AreaSpawner", width: 608, height: 544, map: "Route 1", area: "Land", direction: 0 },
8+
{ actor: "AreaSpawner", width: 608, height: 544, map: "Route 1", area: "Land", direction: 0 },
99
// ...
1010
],
1111
```

docs/pokemon-creation.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The main file that handles Pokemon creation is [`Equations.ts`](../src/sections/
44
`Equations.ts` includes functions for choosing random wild Pokemon and for creating the actual Pokemon object.
55
It also facilitates the creating of a wild Pokemon by preparing parameters then calling creation of the Pokemon object.
66

7-
A newly created Pokemon's member types can be found in [`Battles.ts`](../src/sections/Battles.ts) under the `IPokemon` interface.
7+
A newly created Pokemon's member types can be found in [`Battles.ts`](../src/sections/Battles.ts) under the `Pokemon` interface.
88

99
### Equations
1010

@@ -20,11 +20,11 @@ Pass into the `newPokemon` function from `Equations.ts` an object of type `INewP
2020
```javascript
2121
const pokemonTitle: string[] = "CHARMANDER".split("");
2222
const pokemonLevel: number = 10;
23-
const pokemon: IPokemon = FSP.equations.newPokemon({
23+
const pokemon: Pokemon = FSP.equations.newPokemon({
2424
level: pokemonLevel,
2525
title: pokemonTitle,
2626
});
27-
const pokemon: IPokemon = FSP.equations.newPokemon({
27+
const pokemon: Pokemon = FSP.equations.newPokemon({
2828
item: "Potion".split(""),
2929
level: pokemonLevel,
3030
moves: [
@@ -43,13 +43,13 @@ const pokemon: IPokemon = FSP.equations.newPokemon({
4343
The steps for creating a Pokemon in a wild Pokemon encounter are:
4444

4545
1. The `chooseWildPokemonForBattle` function is run.
46-
The grass `IMap` and `IArea` determine which wild Pokemon can be encountered by looking at the current location which is an object labeled `areas` that includes an object `wildPokemon` that holds what Pokemon can be found along with appearance rates.
46+
The grass `Map` and `Area` determine which wild Pokemon can be encountered by looking at the current location which is an object labeled `areas` that includes an object `wildPokemon` that holds what Pokemon can be found along with appearance rates.
4747
2. After selecting a valid wild Pokemon that can be encountered `chooseRandomWildPokemon` is called and chooses a Pokemon from the list of valid Pokemon based on the chance of encountering that wild Pokemon.
4848
3. Next, `createPokemon` is called which sets up an object of type `INewPokemon` containing information on the level and title of the chosen Pokemon.
4949
4. `newPokemon` is called creating and returning the wild encountered Pokemon.
5050

5151
```javascript
52-
const options: IWildPokemonSchema[] = [
52+
const options: WildPokemonSchema[] = [
5353
{
5454
title: "CHARMANDER".split(""),
5555
level: 10,
@@ -70,6 +70,6 @@ const options: IWildPokemonSchema[] = [
7070
];
7171

7272
// Chosen has a 75% chance of being a Squirtle and 25% chance of being a Charmander.
73-
const chosen: IWildPokemonSchema = fsp.equations.chooseRandomWildPokemon(options);
73+
const chosen: WildPokemonSchema = fsp.equations.chooseRandomWildPokemon(options);
7474
const chosenPokemon = fsp.equations.createPokemon(chosen);
7575
```

docs/walking.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Walking paths
44

5-
Characters can be told to walk along a predefined path as per `IWalkingInstructions`.
5+
Characters can be told to walk along a predefined path as per `WalkingInstructions`.
66
Each "step" on that path must be either an instruction with the number of `blocks` in which `direction` or a lambda to generate them.
77
You can manually trigger a character to talk along a path using `FSP.walking.startWalkingOnPath`:
88

@@ -35,14 +35,14 @@ FSP.following.startFollowing(player, borderingCharacter);
3535
## Wild Pokemon
3636

3737
When walking in grass, within a cave, or while in surf mode, the player will randomly encounter wild Pokemon.
38-
This is checked in the `Walking` component's `continueWalking`, which, if a given Thing is a player, checks for cave, grass, or water battle starts.
38+
This is checked in the `Walking` component's `continueWalking`, which, if a given Actor is a player, checks for cave, grass, or water battle starts.
3939

4040
Which Pokemon may be encountered by an area are stored within the area's `wildPokemon` member, which may specify `grass`, `fishing`, `surfing`, and/or `walking`.
41-
See `IAreaWildPokemonOptionGroups`.
41+
See `AreaWildPokemonOptionGroups`.
4242

4343
### Grass
4444

45-
When a character collides with a `Grass` thing, several changes happen to the character:
45+
When a character collides with a `Grass` actor, several changes happen to the character:
4646

4747
- The grass is stored as a member of the character.
4848
- The character's height is reduced.
@@ -52,7 +52,7 @@ Once the character is no longer bording the grass, those changes are undone.
5252

5353
### Fishing
5454

55-
Starting the fishing routine is only allowed if the player is bording and facing a `WaterEdge*` Thing.
55+
Starting the fishing routine is only allowed if the player is bording and facing a `WaterEdge*` Actor.
5656
You can trigger a fishing session by providing a Player and a rod item to `fishing.startFishing`:
5757

5858
```typescript

package.json

Lines changed: 31 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -8,36 +8,35 @@
88
"url": "https://github.com/FullScreenShenanigans/FullScreenPokemon/issues"
99
},
1010
"dependencies": {
11-
"areaspawnr": "^0.8.0",
12-
"audioplayr": "^0.8.0",
13-
"babyioc": "^0.8.0",
14-
"battlemovr": "^0.8.0",
15-
"changelinr": "^0.8.0",
16-
"classcyclr": "^0.8.0",
17-
"devicelayr": "^0.8.0",
18-
"eightbittr": "^0.8.0",
19-
"flagswappr": "^0.8.0",
20-
"fpsanalyzr": "^0.8.0",
21-
"frametickr": "^0.8.0",
22-
"groupholdr": "^0.8.0",
23-
"inputwritr": "^0.8.0",
24-
"itemsholdr": "^0.8.0",
25-
"mapscreatr": "^0.8.0",
26-
"mapscreenr": "^0.8.0",
27-
"menugraphr": "^0.8.0",
28-
"modattachr": "^0.8.0",
29-
"numbermakr": "^0.8.0",
30-
"objectmakr": "^0.8.0",
31-
"pixeldrawr": "^0.8.0",
32-
"pixelrendr": "^0.8.0",
33-
"quadskeepr": "^0.8.0",
34-
"sceneplayr": "^0.8.0",
35-
"stateholdr": "^0.8.0",
36-
"stringfilr": "^0.8.0",
37-
"thinghittr": "^0.8.0",
38-
"timehandlr": "^0.8.0",
39-
"touchpassr": "^0.8.0",
40-
"userwrappr": "^0.8.0"
11+
"actorhittr": "^0.8.1",
12+
"areaspawnr": "^0.8.1",
13+
"audioplayr": "^0.8.1",
14+
"babyioc": "^0.8.1",
15+
"battlemovr": "^0.8.1",
16+
"classcyclr": "^0.8.1",
17+
"devicelayr": "^0.8.1",
18+
"eightbittr": "^0.8.1",
19+
"flagswappr": "^0.8.1",
20+
"fpsanalyzr": "^0.8.1",
21+
"frametickr": "^0.8.1",
22+
"groupholdr": "^0.8.1",
23+
"inputwritr": "^0.8.1",
24+
"itemsholdr": "^0.8.1",
25+
"mapscreatr": "^0.8.1",
26+
"mapscreenr": "^0.8.1",
27+
"menugraphr": "^0.8.1",
28+
"modattachr": "^0.8.1",
29+
"numbermakr": "^0.8.1",
30+
"objectmakr": "^0.8.1",
31+
"pixeldrawr": "^0.8.1",
32+
"pixelrendr": "^0.8.1",
33+
"quadskeepr": "^0.8.1",
34+
"sceneplayr": "^0.8.1",
35+
"stateholdr": "^0.8.1",
36+
"stringfilr": "^0.8.1",
37+
"timehandlr": "^0.8.1",
38+
"touchpassr": "^0.8.1",
39+
"userwrappr": "^0.8.1"
4140
},
4241
"description": "HTML5 remake of the original Pokemon, expanded for modern browsers.",
4342
"devDependencies": {
@@ -71,7 +70,7 @@
7170
"react": "^16.8.6",
7271
"react-dom": "^16.8.6",
7372
"requirejs": "^2.3.6",
74-
"shenanigans-manager": "^0.8.0",
73+
"shenanigans-manager": "^0.8.1",
7574
"sinon": "^9.0.2",
7675
"sinon-chai": "^3.5.0",
7776
"typescript": "^3.9.5",
@@ -155,5 +154,5 @@
155154
"web": true
156155
},
157156
"types": "./src/index.d.ts",
158-
"version": "0.8.0"
157+
"version": "0.8.1"
159158
}

0 commit comments

Comments
 (0)