r/raylib • • Aug 23 '22

raylib for android

Hello, for a while now I've wanted to make a raylib alternative for android(as I code on my android phone). yesterday I asked the github subreddit how I should start they all said a variation of "android isn't for coding/for android"(or at least what I picked up), so now that github isn't an option what shall I do to start replicating taylib for an android device.

Ty in advance

0 Upvotes

9 comments sorted by

7

u/YT__ Aug 23 '22

I'm not sure I understand what you're asking. What does GitHub have to do with Raylib?

Are you saying you want to develop for Android? Raylib has that capability.

Or are you saying you want to write and compile code on an Android tablet/phone?

3

u/programer-82 Aug 23 '22

Sorry I meant that i want to code on a android device and when ever I saw anything related to to raylib it wad on githu

4

u/AlazOz Aug 23 '22

What do you exactly mean by

when ever I saw anything related to to raylib it wad on githu

Is it the source code you are asking about? You could definitely download it. Compile it, and use it.

As for "Code on Android": There is termux and other terminal emulator, use that to compile and code. I don't see where is the confusion. BTW which language you are using for raylib?

2

u/programer-82 Aug 23 '22

C++ is what I am (planning to use) in raylib

2

u/AlazOz Aug 24 '22

Are you having external keyboard? If yes, use Vim/neovim on termux, for coding. Use gcc provided to compile. And for the installation part, I think someone could guide you through.

1

u/SamyBencherif Aug 23 '22

github is probably a solid option actually ! for example you can write your program on the computer first and use github to host it.

use a terminal and the git command to get it to your phone, and use gcc to compile ?

you can make your own editor for the phone so it's easier to develop on the code, but there's also vim, nano, or emacs which may work well already from your phone (depending on how good your keyboard layout and terminal app is)

And of course, one thing to make raylib more suitable for mobile dev would be to add autocomplete to your editor or make a transpiler/wrapper so you can write shorter function names or something.

Hope this helps or gives so inspo.

( I've been working on something kind of similar and documenting in my discord http://bensa.games/sigcaeid.txt feel free to join :) )

1

u/programer-82 Aug 23 '22

I would love to join the discord whats the name and is it on disboard

1

u/SamyBencherif Aug 23 '22

oh neat I've never heard of disboard until now. I'll see if I can add it sometime. Anyway, It's called SIGCAEID (Special Interest Group Computer Arts and Editor Interface Design).

easiest way to join currently is with this invite link: https://discord.gg/pKe4ecCpSj

1

u/programer-82 Aug 23 '22

Also thank you so much I'm gonna try this as soon as I can