Commit graph

113 commits

Author SHA1 Message Date
Corwin b317602c6b
Get saving working (#631)
- [ ] Changelog updated / no changelog update needed
2024-04-20 16:43:35 +01:00
Corwin 4022e8413e
load gba rom as a url to let next handle cache invalidation 2024-04-20 16:19:07 +01:00
renovate[bot] 55e60d0183
Update Javascript packages (non-major) 2024-04-16 19:31:04 +00:00
renovate[bot] 19cf20bff8
Update dependency @types/react to v18.2.78 2024-04-13 13:46:48 +00:00
Corwin 81d9db5c36
Update dependency @types/react to v18.2.77 (#635) 2024-04-11 23:17:05 +01:00
renovate[bot] 4c665a49a8
Update nextjs monorepo to v14.2.0 2024-04-11 21:54:10 +00:00
renovate[bot] 5fdd18927d
Update dependency @types/react to v18.2.77 2024-04-11 21:53:47 +00:00
renovate[bot] 009d10da43
Update react monorepo to v18.2.76 2024-04-11 19:04:05 +00:00
Corwin 418f792ef2
get saving working 2024-04-10 23:24:44 +01:00
Corwin 5365ce6188
remove hard reset 2024-04-10 20:50:55 +01:00
Corwin 27ad5d1184
Add controller support (#630)
Simple use of gamepad apis to add controller support.
2024-04-10 20:38:54 +01:00
Corwin 4e4e323002
format ts files 2024-04-10 18:31:24 +01:00
Corwin c29a9a4a2b
add controller support 2024-04-10 18:30:12 +01:00
renovate[bot] b6dc67dd24
Update dependency typescript to v5.4.5 2024-04-10 16:36:12 +00:00
renovate[bot] fe7fae1c04
Update dependency @types/node to v20.12.7 2024-04-09 21:24:31 +00:00
Corwin 646b7947e9
Enforce functions (#625) 2024-04-09 20:22:28 +01:00
Corwin 754435ad1e
show mobile controls on a small screen (#624) 2024-04-09 12:48:21 +01:00
Corwin eb30a7a825
prefer regular functions over named arrow functions 2024-04-09 12:46:13 +01:00
Corwin 12316dbe6a
show mobile controls on a small screen 2024-04-09 12:15:11 +01:00
renovate[bot] 8b396fc576
Update dependency @types/node to v20.12.6 2024-04-09 07:21:24 +00:00
Corwin abd5e44ede
Press to start on mobile (#622) 2024-04-09 02:46:10 +01:00
Corwin bbdcdfeb95
readd hover border on help links 2024-04-09 02:38:22 +01:00
Corwin 73d4346964
nicer height calculation 2024-04-09 02:32:36 +01:00
Corwin 9ad67ae494
on mobile devices require a touch to start the emulator loading 2024-04-09 02:31:17 +01:00
renovate[bot] 143afc961e
Update dependency @types/react to v18.2.75 2024-04-09 00:03:25 +00:00
Corwin a9c6723a3b
make website with nextjs 2024-04-09 00:33:32 +01:00
renovate[bot] b46a5ba43d
Update dependency @testing-library/react to v14.3.0 2024-04-08 14:53:01 +00:00
Corwin b830410e39
remove log statement 2024-04-08 03:24:06 +01:00
Corwin f1ef67ad1e
use the gzip compressed combo rom 2024-04-08 03:23:55 +01:00
Corwin f0ee5a081c
make emulator wrapper be able to decompress gzip compressed roms 2024-04-08 03:23:47 +01:00
Corwin 9b36ae62e0
Manually handle frameskipping for better audio on non multiple of 60hz screens (#613)
* We want to always use animation frames as our time to call the main
loop because otherwise the timing is inconsistent leading to very bad
audio.
* We don't want to call the main loop every frame otherwise > 60hz
screens will play too fast.
* We can't emscripten's frameskipping becuase it only allows for
integers whereas screeens come in many other framerates such as 75hz,
90hz, 144hz, etc.
* Therefore we manually manage frameskipping by ~~ab~~using pause and
resume game which internally just enable and disable the emscripten's
calling of the main loop. (see
27dede256b/src/platform/wasm/main.c (L183)).
* We could modify the code to let us call the main loop ourselves and
take full control over this, but for now this is okay.
2024-04-06 20:24:44 +01:00
Corwin 290387af16
Update dependency @types/node to v20.12.5 (#612)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@types/node](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node)
([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node))
| [`20.12.4` ->
`20.12.5`](https://renovatebot.com/diffs/npm/@types%2fnode/20.12.4/20.12.5)
|
[![age](https://developer.mend.io/api/mc/badges/age/npm/@types%2fnode/20.12.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@types%2fnode/20.12.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@types%2fnode/20.12.4/20.12.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@types%2fnode/20.12.4/20.12.5?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log [here](https://developer.mend.io/github/agbrs/agb).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjkuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFzdGVyIn0=-->
2024-04-06 19:47:40 +01:00
Corwin 7f0de5f87b
manually handle frameskipping for better audio on non multiple of 60hz screens 2024-04-06 19:42:44 +01:00
Corwin 3b2ebe6001
dynamically choose frameskip or timeout 2024-04-06 03:26:06 +01:00
renovate[bot] be25491f15
Update dependency @types/node to v20.12.5 2024-04-06 01:54:17 +00:00
Corwin 61a7e2fa64
force full reset which can get audio working on mobile 2024-04-06 02:34:39 +01:00
Corwin f053915c65
fix controls 2024-04-06 02:24:10 +01:00
Corwin 92c8877201
we should be overwriting max width 2024-04-06 02:17:01 +01:00
Corwin 3461052193
handle multiple dpad touches 2024-04-06 02:14:15 +01:00
Corwin b9a67e6b0f
handle many button presses and fix to use targetTouches 2024-04-06 02:12:39 +01:00
Corwin 3a1f1691f9
swap start and select 2024-04-05 22:23:47 +01:00
Corwin e61fdb7f97
make wider on mobile 2024-04-05 22:23:35 +01:00
Corwin c433dbefdc
Mobile support for website (#607)
Adds mobile control scheme that sort of works.
I feel like it doesn't quite work.

Also, frame rate problems on mobile.

- [ ] Changelog updated / no changelog update needed
2024-04-05 20:24:29 +01:00
Corwin a1e8ac76fe
add docs link 2024-04-05 19:53:38 +01:00
Corwin 34c66cc61e
specify dependency array 2024-04-05 19:50:12 +01:00
Corwin 48373faa17
finish adding mobile controls 2024-04-05 19:47:04 +01:00
Corwin 552f8f878d
more mobile stuff 2024-04-05 17:09:50 +01:00
Corwin e43d2d5a3e
make widths work on mobile 2024-04-05 12:09:13 +01:00
Corwin 994e1fe717
make start and select work by default 2024-04-05 00:58:38 +01:00
renovate[bot] 2877ea2177
Update dependency @testing-library/jest-dom to v6 2024-04-04 22:47:37 +00:00