yiotro / Antiyoy

A source code of android game called 'antiyoy'.
422 stars 54 forks source link

Build desktop version #22

Open mihmig opened 6 years ago

mihmig commented 6 years ago

Hi! Can i build desctop version without install Android SDK?

yiotro commented 6 years ago

Hmm, I don't think that it's possible. LibGDX requires android sdk even to create a project.

OvermindDL1 commented 6 years ago

Hmm, I don't think that it's possible. LibGDX requires android sdk even to create a project.

Nope. ^.^

LibGDX supports android (natively), windows (natively), mac (natively), linux (natively), iOS (via RoboVM I think it is called), among others.

That is why if you use the LibGDX project creator it will set you up a directory structure with folders like core (for your core gamecode) as well as some for scaffolding each platform. The android directory by default holds the assets that all the other platforms reference (only because of limitations in the android sdk) but otherwise the android sdk is not required in any form at all unless building for android. As long as that default project setup was not screwed with then you can build for dang-near any platform in existance, and if it was messed with then it would be a fairly simple matter to regenerate it and copy the existing Antiyoy sources and assets into it and fix up the references. :-)

(I use libGDX without the android sdk even installed for my mini desktop projects)

McAroni commented 6 years ago

@OvermindDL1

Can i build desctop version without install Android SDK? If you just want to play the game on PC, maybe look here: https://www.reddit.com/r/yiotro_games/comments/603a83/antiyoy_on_pc/

@yiotro Would it be possible to change the window size of the .jar linked above? On reddit, you wrote that this version is just for personal debug purpose but I actually would like to play the game on PC, too. But this is no fun with such a small window...

yiotro commented 6 years ago

@McAroni Hmm, if you want, I can compile special JAR for you :) Just tell me your preferred window size.

@OvermindDL1 Thanks, I didn't know that.

McAroni commented 6 years ago

@McAroni Hmm, if you want, I can compile special JAR for you :) Just tell me your preferred window size.

That would be awesome! I think most pc users currently have 1366x768 or 1920x1080 monitors. In my case it's the first case on Laptop and second on PC. For me, these two resolutions without any window frames aka fullscreen would be perfect. If it has to be portrait mode, it should be a height of 700 or 1000 pixels with a frame.

You wrote in another thread about screen rotation:

For some technical reasons level form and size depends on screen ratio. So to make it even possible I first have to fix this thing, and it's too hard.

For this reason, you won't enable widescreen mode on desktop version, right?

OvermindDL1 commented 6 years ago

1920x1080

Such a weird size... My monitor's have been 1920x1200 for over a decade now... o.O

yiotro commented 6 years ago

Heh, my laptop actually has same resolution as yours and pc version should run in window with height equal to 700.

For this reason, you won't enable widescreen mode on desktop version, right?

Yeah, because levels would be extremely deformed.