Skip to content
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

Android #1

Closed
hmlendea opened this issue Apr 14, 2017 · 7 comments
Closed

Android #1

hmlendea opened this issue Apr 14, 2017 · 7 comments
Labels

Comments

@hmlendea
Copy link

Hello.

I'm interested to know how can I compile this for Android.

I'd like to see if it works with a gamepad. Or if it works at all.

@zaps166
Copy link
Owner

zaps166 commented Apr 14, 2017

Hi!

IMHO you can now compile for Android, but:

  • current implementation uses old Desktop OpenGL 1.x, so probably you can run it on Android x86 which has Mesa drivers (or maybe on nvidia tablets?),
  • you must have mouse/keyboard/gamepad connected (no virtual joystick).

TODO:

  • - OpenGL|ES 2.0,
  • - Virtual Joystick.

@hmlendea
Copy link
Author

hmlendea commented Apr 15, 2017

Hmm... I have an x86 ASUS ZenPad tablet, I can try it there and see if it works.
Doesn't it work on ARM phones tho?

I can also try it on Remix OS (Android for desktop PCs) just for testing purposes (not gonna play it there if I can play it on my Linux).

Also, yeah... I have a bluetooth gamepad that works fine with every game that has gamepad support. So this means it should work with NFS2 as well, right?

How can I compile this into an APK tho?

@zaps166
Copy link
Owner

zaps166 commented Apr 15, 2017

How can I compile this into an APK tho?

It is probably difficult. Try to learn how to compile SDL2 projects for Android.

I have an x86 ASUS ZenPad tablet

If you have x86 CPU, use https://github.com/zaps166/NFSIISE for better performance (and faster compilation time). Use YASM on assembly file like in compile_nfs script :)


Also you must copy all needed data from CD to APK (or somewhere) and set path to it in source code + path for settings.

@zaps166
Copy link
Owner

zaps166 commented May 20, 2017

I've created "gles2" (work in progress) branch GLES2 code is in master branch - you can try it on Android devices :)

@zaps166
Copy link
Owner

zaps166 commented May 20, 2017

Also today I've run this game on old Android phone (HTC Sensation) 😄

@zaps166
Copy link
Owner

zaps166 commented May 21, 2017

This repository is now a submodule to the main NFSIISE repository, so closing this issue here!

@zaps166
Copy link
Owner

zaps166 commented May 21, 2017

Moved here: zaps166/NFSIISE#31

Repository owner locked and limited conversation to collaborators May 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants