Commit Graph

24 Commits

Author SHA1 Message Date
Josh Goldberg f52e515548 Brought in EightBittr version with consolidated creator functions (#878)
* Brought in EightBittr version with consolidated creator functions

EightBittr just changed the built-in creators (e.g. `createAreaSpawner`) to provide more component details. This matches that change by overriding the new built-in components from EightBittr so that no more built-in creators need to be recreated here.

* Used new EightBittr version with numCols, numRows

* Used new BabyIoc version too

* Recreated IGroups in Groups.ts

* shenanigans-manager@0.2.44
2019-09-18 20:03:02 -04:00
Josh Goldberg fd48a80bda Bump all to latest; fix TSLint complaints 2019-09-12 23:31:20 -04:00
Josh Goldberg a2206f904e Limited roaming distances to 3 in any direction (#815)
Adds a tracking member to roaming characters underneath a new `IRoamingCharacter` interface.

Fixes #814.
2019-03-18 18:33:35 -04:00
Josh Goldberg 7a9c56b597 tslint@5.9.1 2018-01-14 11:51:44 -08:00
Josh Goldberg c9928bb651 Added missing dependencies back to package.json 2018-01-03 17:51:48 -05:00
Josh Goldberg 15660e2607 Brought in simplified AudioPlayr (#536) 2018-01-02 18:59:12 -05:00
Josh Goldberg 235b4d7173 Replaced Gulp with shenanigans-manager@0.2 (#528)
* Used shenanigans-manager@0.2 instead of Gulp

* 'shenanigans-manager'

* 'Bump-patch-version'

* webpack.config.js

* shenanigans-manager@0.2.7

* Added exclude to tslint.json options

* no_tests
2017-12-29 08:23:12 -08:00
Josh Goldberg 969ac10fe5 Used the MobX+React version of UserWrappr (#524)
* Moved UserWrappr logic to an Interfaces component

Moved some of the stateful behavior from the UI settings (sizes, default size) and UserWrappr core (document visibility, pipe initialization) into it.

* Documented; split name within SpeedrunnerMod.ts

* Miscellaneous TSLint and TypeScript fixes

* More miscellaneous fixes

* Updated to latest dependencies (fixed chai imports in tests)

* Locked eightbittr, gamestartr, gulp-shenanigans versions

As a part of it, no longer uses the /lib/foo extension to gamestartr or eightbittr imports.

* Removed duplicate gamestartr/ithing import

* Removed unused Physics import

* Fixed keyDownA direction test

* Nits: jsdoc, .vscode/settings.json endline

* Renamed to SpeedRunningMod

* Fixed the mod's name string

* Bumped UserWrappr dependency to ^0.6.5
2017-12-05 18:56:54 -08:00
Josh Goldberg 9cf52d1484 Fixed new lint errors; disabled no-redundant-jsdoc 2017-11-08 00:12:02 -08:00
Josh Goldberg 36cf8e7bca Bumped gulp-shenanigans to 0.6.16 2017-09-18 14:12:32 -04:00
Josh Goldberg 19bcba87ad Updated for latest shenanigans-manager 2017-09-16 18:49:53 -04:00
Josh Goldberg 418f28b140 Added no-trailing-whitespace with gulp-shenanigans 0.1.13
Also test/**/* in .npmignore and docs/generated/** in .gitignore.
2017-06-08 00:41:50 -07:00
Josh Goldberg 5b63044d4a Fully enabled no-trailing-whitespace 2017-06-07 20:45:09 -07:00
Josh Goldberg 65f497e6db Fixed new TSLint violations (#478) 2017-06-01 19:52:16 -07:00
Josh Goldberg bfd8fd9766 Fixed linting for newer tslint:all rules (#454)
* Added more tslint disables (again)

* Fixed for erroring return-undefined in Actions.ts

* Bumped lowest Travis version to 5
2017-05-06 21:19:01 -07:00
Josh Goldberg 8ca4d9e3ee Added a couple more tslint disables 2017-05-06 19:34:26 -07:00
Josh Goldberg 90034c325f Brought in more extensive tslint rules using tslint:all (#451)
Mostly fixes for prefer-const, prefer-for-of, and more strict semicolon checking.
2017-05-01 11:16:53 -04:00
Josh Goldberg 6deb820072 Lazified battles, cutscenes, cycling, fishing
Also removed now-failing no-trailing-whitespace rule.
2017-01-28 15:41:13 -08:00
Josh Goldberg 4795e68d30 Complete battles refactor (#403)
* Started bringing in refactored BattleMovr

Wiped out most code that deals with battles, either by real deletion or
commenting out. Clean slate!

* Started clearing battle transitions, animations

* Partially fleshed out player battle selector

* Fixed up battle options to be mostly optional

* Started on battle visuals

* Added visual setup for Things

* Reworked battles through the player selector

Got rid of the dependency on ScenePlayr (filed #396), and moved to using
animation components.

* Added player Pokemon entrance animations

Reworked battle animations to be more componentized

* Started on the player's health display

It's a bit offset, but it's a start.

* Fixed the initial opponent battle health display

* Fleshed out pokeball displays pre-health

* Fixed up the stats menu

* Fixed sizes for secondary stats menu

* Added ActionsOrderer for battles

Still needs to have the opponent's actions added.

* Fleshed out the OpponentSelector

It (mostly correctly) takes into accord the standard RBY equations.

A couple of major todos:
* Items, in general
* Effects for moves other than Growl will need to be filled out.
* Lorelei!

* Moved EffectTarget, IEffectBase to constants

* Got repeatable action selection to work

Constants for battles are now split into Modifications and Texts.

* Brought in BattleMovr's ITeamAndAction

* Added player fleeing

It doesn't actually work beyond calling BattleMovr's stopBattle, mind
you. The onComplete callback for that still needs to be implemented.

* Split ending animations into Ending class

* Added Pokemon switching

* Switched battle texts to be generators

* Genericized switching animations

Added a new "shared" directory with settings that the teams' animators
can implement.

* Moved all sub-animations to shared

Also added the initial Damage, Missed, Statistics, Statuses, and
Switching skeletons.

* Fixed Effects to actually call onComplete

Also added Scratch, Tackle effects

* Added health bar changing for damage

* Added fainting for switching

* Commented GrowlMove.ts

* Added most of the previously implemented moves

Skipping a couple because their sprites are missing.

* Fixed missing type in Battles component

* Fixed casing for Battles texts import

* Removed [i: number] from raw maps

* Re-added number keys for raw maps

`src:tsc` fails for this on Travis but not locally...
2017-01-16 21:38:31 -08:00
Josh Goldberg 0b6d495899 Bumped gulp-shenanigans to 0.5.20: AMD everywhere! (#386)
* Bumped gulp-shenanigans to 0.5.16

Added a "Usage" section in the readme.

* Started gulp-shenanigans 0.5.20 update

* Continued through part of Cutscenes.ts

* Finished the rest of Cutscenes

* Finished rest of compiler errors

Now to fix test failures... later!

* Added dependencies code for index.html

* Added a couple of missing dependencies to index

* Fixed some this scoping issues with Things

Now that they don't receive .EightBitter or .GameStarter, triggered
member functions of Things must correctly manage context.

* Clarified instantiation in docs

* Bumped dependencies in json files
2016-12-03 13:32:39 -08:00
Josh Goldberg 90646a8b16 Moved build process to gulp-shenanigans (#295)
* Started moving components to gulp-shenanigans

This is a first round of refactoring. All non-reset functions in `FullScreenPokemon.ts` have been moved to dedicated classes, though many haven't had the references updated.

* Brought in .files, BattleMovr, MenuGraphr

* Fixed up imported files for tslint

* Fixed test dependencies to run

* Added settings files to compilation

* Added necessary prototypes in FSP.ts

* Converted settings classes to Generate* functions

This way, `src\FullScreenPokemon.ts` can decide when to call the
generators. It does so immediately after defining the
`FullScreenPokemon` class and its prototype values.

* Refactored settings into generators

This fixes most scoping issues with settings files. Note that a few
modules have local updates that will need to be pushed for this to build
successfully.

* Fixed scoping for menus

* Removed Function::bind usages

No more!

* Fleshed out html build settings

lib\index.html works now

* Fixed reference issues with MapScreenr's variables

They're no longer direct members of MapScreenr itself, but rather of its
`variables` member.

* Bump gulp-shenanigans to 0.4.0

* Fixed some case sensitivity

* Fixed some more case sensitivity

* Fixed case sensitivity for main settings

* Bump gulp-shenanigans to 0.4.1

* Added and removed logs in src/main.ts (#296)

* Added test logs to main.ts

* Removed src/main.ts logs

* Moved sounds into the correct src\ directory

These were pulled in from master but not moved accordingly.

* Fixed new tslint errors from gulp-shenanigans

From updating to a newer tslint.json with the setup task, the more
strict rules are now being violated.

* Bumped gulp-shenanigans to 0.4.2

* Bump gulp-shenanigans to 0.4.3

* Onboarded shenanigans.json

The biggest change is that LevelEditr and UserWrappr are no longer
pre-packaged with GameStartr. They're now separately defined in FSP.

* Brought in recent module updates

Also fixed some scoping issues with battles.

* Fixed the pause menu to open on pause buttons

Previously they were calling the GamesRunnr pause functions, which
aren't what was intended.

* Bumped UserWrappr to 0.5.4

* Fixed onload listeners in src\main.ts (#300)

* Added test throw for body innerHTML

* Put main.ts logic behind a load event

* Removed remaining main.ts throw

* Moved require logic out of onload in main.ts

* Fix load listener placement

* Bumped MapsCreatr to 0.5.3

Fixed scoping issues with macros

* Removed LevelEditor reference from Storage.ts

Since LevelEditor is no longer defined on FSP, saving a game can't use
its beautification function

* Changed saving dialog to delete all menus when done

* Fixed TimeHandlr scope issues for battle cutscenes
2016-09-01 08:56:21 -07:00
gpnoel 4262a6f686 Changing for(;;;) to for-of (#286) 2016-07-14 08:19:16 -07:00
Josh Goldberg 6e9412a71f Changed vars to lets (#276)
* Changed `var`s in main .ts to `let`s

* Changed `var`s in settings/*.ts to `let`s

* Added no-var-keyword to tslint
2016-06-16 00:07:40 -07:00
Josh Goldberg c1d13bc47a Reorganized into TypeScript
The newer modules aren't in TypeScript yet so the references are broken.
Once those converted, they'll be added in.
2015-06-17 05:20:21 -04:00