-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature] Viewport/Camera #69
Comments
Hi, (I'm guessing the platform is the N-Gage, judging from all the notifications with a similar name I've been getting for the SDL repository. :-) ) Unfortunately, Keen and therefore Omnispeak have hardcoded the 320×200 resolution pretty much everywhere, so supporting a different resolution wouldn't be an easy task. In addition, if the camera behaviour changes, all of the pre-recorded demos will go out-of-sync. I do hope to eventually get around to supporting other resolutions myself (largely to support other aspect ratios as in #36), but it will require quite a lot of work. My rough strategy would be:
In short, doing this "properly" will probably require a fair bit of reworking of some of the graphics code. But you might get away by just hacking a different display resolution in and adjusting the camera code (or, better still, adding a second 'offset camera' in to avoid the sync difficulties). That being said, there's already an (admittedly a bit less accurate) clone of Commander Keen for the GBA, which has a smaller screen resolution. Alas, it doesn't have an SDL backend, but it might be another interesting project to try: Let me know if you make any progress or have any more questions. And I do intend to make some changes to the display code which might make supporting other display resolutions easier in the future, so I'll let you know when that happens. Cheers, |
Thank you for taking the time to answer my question so thoroughly. That helps me a lot.
This is the most promising lead. I'll start by looking into this. :) |
I dug a little further into this, and it's probably not quite as bad as I thought. The final display resolution lives in The camera code live in
The actual rendering code lives in
|
Hey,
I'm would love to port omnispeak to a rather obscure platform. However, because of the quite unusual aspect ratio and resolution (11:13, 176x208), I would love to have a viewport/camera around the Keen character. I haven't gone deep into the source code yet, so does the engine support this? If not, how much work is required for such a feature?
The text was updated successfully, but these errors were encountered: