144 Commits
Author SHA1 Message Date
Rob Loach 8fdd4c3e14 dingux: Use our own fenv.h for QuickJS 2024-01-29 00:29:21 -05:00
Nathan Whitehead e86a48a0f6 Merge pull request #16 from RobLoach/dignux-mips32-fixes
Address dingux fixes with std::abs and casing the input key
2024-01-26 08:51:37 -07:00
Nathan Whitehead e0910cdb5c Merge pull request #15 from RobLoach/lpthread
Use -lpthread to link pthread
2024-01-26 08:51:28 -07:00
Nathan Whitehead 29642e201b Merge pull request #14 from RobLoach/libretro-common
Use libretro-common for libretro.h
2024-01-26 08:51:16 -07:00
Nathan Whitehead 2bfe97dc62 Merge pull request #13 from RobLoach/android-precompiled
android: Add USE_PRECOMPILED_BUNDLE
2024-01-26 08:51:04 -07:00
Rob Loach 73189e7883 Address dingux fixes with std::abs and casing the input key 2024-01-25 17:43:34 -05:00
Rob Loach 889344b6f9 Use -lpthread to link pthread 2024-01-25 17:35:42 -05:00
Rob Loach 7edecf0d18 libretro-common: Update include directories 2024-01-25 16:48:01 -05:00
Rob Loach b34ba213ed Switch libretro.h to use libretro-common 2024-01-25 16:34:45 -05:00
Rob Loach 388aeca15a Remove libretro.h to replace with a submodule 2024-01-25 16:31:43 -05:00
Rob Loach 07113916bc android: Add USE_PRECOMPILED_BUNDLE 2024-01-25 16:25:58 -05:00
Nathan Whitehead e18ada904a Merge pull request #12 from RobLoach/patch-2
ci: Make gitlab get the git submodules
2024-01-24 12:30:55 -07:00
Rob Loach c5932d8e99 ci: Make gitlab get the git submodules
This adds `GIT_SUBMODULE_STRATEGY` to have Gitlab's CI retrieve the submodules
2024-01-23 18:09:11 -05:00
Nathan Whitehead cd22178962 Merge pull request #11 from RobLoach/cheats
Add Cheats
2024-01-23 15:44:43 -07:00
Nathan Whitehead 8150402b63 Merge pull request #10 from RobLoach/config_version
Add CONFIG_VERSION to Android makefile
2024-01-23 15:44:32 -07:00
Rob Loach d14d5ff9c1 Add Cheats 2024-01-22 12:33:41 -05:00
Rob Loach 2fb1309781 Update QuickJS year 2024-01-22 12:00:50 -05:00
Rob Loach 50ff296c66 Merge branch 'main' of github.com:nwhitehead/pzretro into config_version 2024-01-22 11:59:03 -05:00
Rob Loach 5d4ae45ae2 Update QuickJS CONFIG_VERSION year 2024-01-22 11:58:20 -05:00
Rob Loach d9d42cc422 Fix QuickJS CONFIG_VERSION 2024-01-22 11:57:23 -05:00
Rob Loach 085f58e53c Add CONFIG_VERSION to Android makefile 2024-01-22 11:51:00 -05:00
Nathan Whitehead 10412d1d54 Merge pull request #9 from RobLoach/input_descriptors
Add Input Descriptors
2024-01-22 09:48:13 -07:00
Nathan Whitehead 7ee9e3266b Merge pull request #8 from RobLoach/quickjs-update
Update to QuickJS 2024-01-13
2024-01-22 09:47:12 -07:00
Rob Loach 3da1ba8550 Add Input Descriptors 2024-01-22 11:35:45 -05:00
Rob Loach 275467afe6 Have the submodule ignore internal changes 2024-01-22 11:12:11 -05:00
Rob Loach f534d51317 Update to QuickJS 2024-01-13 2024-01-22 11:09:35 -05:00
Nathan Whitehead 71f0346835 Add script for downloading puzzlescript games by url.
Add capability to download itch.io puzzlescript games (experimental).
Update readme.
2022-10-06 09:54:55 -06:00
Nathan Whitehead a35d6715d7 Update readme with save/load info. 2022-10-05 14:30:34 -06:00
Nathan Whitehead 883b9675e5 Switch SELECT+LEFT/RIGHT to be level section keys.
Add js code to move level up and down in a sensible way.
Update readme a bit.
2022-10-01 09:23:37 -06:00
Nathan Whitehead 49e3ed8d3f Update core info file with save flags. 2022-09-30 17:09:40 -06:00
Nathan Whitehead b9da3373a3 Add initial support for save states.
Remove demo.pz game.
Split out gameloop functionality into separate files.
Add serialize/deserialize functions into main.js.
Add serialize/deserialize functionality into gameloop class.
Allow sfxr to warn but not stop on bad seed numbers.
Handle negative hex values (fixes corrupted saves in large games).
Make serialization auto retry with truncation if size is too big.
Use original text title screens.
2022-09-30 11:01:42 -06:00
Nathan Whitehead 96bfc5f860 Remove reliance of QuickJS on fenv.h.
This puts calls to fenv functions behind an if/def which is not set.
I believe this makes QuickJS not fully standards compliant with
regards to numerical rounding, especially when converting floating
point numbers to strings. I don't think PuzzleScript relies on
any precise rounding when converting numbers to strings so this
should be safe for PuzzleScript.
2022-09-29 10:08:33 -06:00
Nathan Whitehead da2996e74a Fix small things to help cross-platform compatibility.
Downgrade to C++11 in makefile.
Fixup make_unique.
Use old style chrono duration.
Switch to mutex from atomic to avoid linking to libatomic on some platforms.

Update info file to include pzp extension.
2022-09-29 09:56:17 -06:00
Nathan Whitehead aa11bf9a89 Fix Mint 19.3 linking with dl. 2022-09-28 17:11:57 -06:00
Nathan Whitehead ba5c5d024b Merge pull request #5 from RobLoach/gitlab-makefile
Add the libretro GitLab CI file
2022-09-28 16:12:19 -06:00
Rob Loach b71dc04f2f Add the libretro GitLab CI file 2022-09-28 02:29:28 -04:00
Nathan Whitehead 908f66bfca Correct readme about default font choice. 2022-09-27 22:20:07 -06:00
Nathan Whitehead cb9a13b19f Remove all traces of npm, babel, es5.
Simplify gn build system to use source files directly
without going through gen directory. This made the
xxd generated names more fragile, had to tweak the DOCKER_BUILDKIT
script to workaround that.
2022-09-27 21:10:07 -06:00
Nathan Whitehead 0a4a36dad5 Turn back on warnings and errors outside of QuickJS. 2022-09-27 17:51:14 -06:00
Nathan Whitehead ed6081bb0f Fix QuickJS memory leak related to global object.
Remove debug log output.
2022-09-27 17:30:09 -06:00
Nathan Whitehead cf40b5ae2f Remove legacy Duktape files, update license text. 2022-09-27 17:21:23 -06:00
Nathan Whitehead 72d23f029c Switch to QuickJS. 2022-09-27 16:50:28 -06:00
Nathan Whitehead 622ca5fb1a Fix pthread build issue for Mint 19.3.
Add -pthread option to linking command as well as compiling commands.
2022-09-27 09:18:40 -06:00
Nathan Whitehead 365a60fd0d Update readme with info on simple build and PuzzleScript Plus. 2022-09-26 10:37:05 -06:00
Nathan Whitehead 2807971f23 Add pthread gcc option in make. 2022-09-25 22:11:50 -06:00
Nathan Whitehead 6c71b35be6 Remove extra debugging code. 2022-09-25 21:52:55 -06:00
Nathan Whitehead 328965f7fe Regenerate bundle file with PuzzleScriptPlus changes. 2022-09-25 21:51:24 -06:00
Nathan Whitehead 0a3a0b087f Split out partial sprite rendering, add bindings into JavaScript.
Update PuzzleScriptPlus graphics source to allow custom font to work.
Only clear all sprite context when in PuzzleScript mode.
Use PuzzleScriptPlus mode on pzp files.
Make custom font off by default.
2022-09-25 21:50:21 -06:00
Nathan Whitehead fa2338d190 Initial try with PuzzleScriptPlus.
Status: files running, incorrect logic, incorrect graphics.
Not sure what's going on at the moment.
2022-09-25 19:57:36 -06:00
Nathan Whitehead 050cdc781d Commit bundled file for simple Makefile builds.
Update makefile to include C sources.
Update common makefile to use c++17 (didn't see a way to do this in Makefile).
2022-09-25 12:51:02 -06:00