ngagesdk / ccleste Goto Github PK
View Code? Open in Web Editor NEWThis project forked from lemon32767/ccleste
A portable Celeste Classic C source port.
This project forked from lemon32767/ccleste
A portable Celeste Classic C source port.
There currently are several issues with inputs in the 3DS port.
For some reason, despite correctly loading the gamecontroller mapping, no event is fired and SDL_GameControllerUpdate
are unable to read any key. On the other hand, in example programs and tests such as testgamecontroller
(present in SDL source), inputs with the GameController API works fine. This seem to be an issue unique to the N3DS port, using controllers on PC or on PSP works without any issue.
There were already several attempts to fix this through calling manually PumpEvents
before reading inputs, or checking for the controller events in the PollEvent
loop, but the behaviour did not change.
Currently, the fix is present in sdl20compat.inc.c
, we replace the SDL_GetKeyState
function with a custom implementation polling the 3DS directly using libctru
instead of calling SDL_GetKeyboardState
.
This custom implementation does not create events, meaning that even when correctly mapped, all the code paths in the event loop will never be executed. Namely, the pause, quit (although unnecessary), save/load state, and screenshots are not able to be processed. It does not support movement using the left circle pad (only the D-pad).
So as it stands, inputs do work, but they're pretty hacky and incomplete.
As to the available options, here are what I could think of:
GameController
API (although with no guarantee that it would fix it).The N-Gage version currently still uses floating point arithmetic. However, since the N-Gage does not have an FPU, this could be the reason for the poor performance.
The N-Gage should definitely use fixed point arithmetic.
According to @sharkwouter it compiles for the PSP without making any changes. It builds, runs and the controls work. The resolution is a bit off and sound is enabled (which is the current default).
This should be fixed prior to the next release.
While the current CMake works on Linux and Windows (and presumably on N-Gage too), macOS fails to work and it leaves out platforms such as the 3DS which is not currently included into a stable release.
An idea I have is using CMake's FetchContent
. It integrates well with searching with find_package
and provides similar features to ExternalProject
.
Another idea I have is similar to the CELESTE_*
CMake options, add a CELESTE_ENABLE_AUDIO
to restore audio on supported platforms.
What do you think ? Would you like me to open a PR for these changes ?
The CELESTE_P8_FIXEDP feature can't be compiled for the N-Gage.
See #3 for details.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.