Tag Info

Hot answers tagged

5

It defaults to locked on "landscape" mode in a libGDX project. You need to go into your "AndroidManifest.xml" and change android:screenOrientation="landscape" too android:screenOrientation="sensorLandscape" There are more options - http://developer.android.com/guide/topics/manifest/activity-element.html#screen Just replace "sensorLandScape" with the one you ...


4

You can put what you want under developer name. Just make sure its not a trademark being used or registered trademark. Or just use your real name. It doesn't matter too much. If you make up a name and brand yourself as it, its a trademark. A website would help prove you used it first.


3

Gdx.file.internal is read-only. You can use local file or preferences (creates an internal .xml file where you can store small amount of data). It is perfect for game saving. Take a look at : https://github.com/libgdx/libgdx/wiki/Preferences You can also use an external file (stored on sdcard), but you can optionally encrypt it, as it can be edited by the ...


1

First, when are you calling the jump() method? Make sure it really gets called, maybe by using a log message. Second, instead of body.setLinearVelocity(new Vector2(body.getLinearVelocity().x, 12)); you should do body.setApplyForce(new Vector2(0, 120)); Setting a velocity directly is frowned upon and should be done only in a few exceptional cases such ...


1

You will have to use a plugin to do that. I've used this one and it was straightforward to set up and use (works for both iOS and Android): https://github.com/faizann/UnityGPGPlugin Some things to keep in mind (because the debugging log messages shown won't help you understand what really happens, all of them reporting that the application w/ the given key ...


1

Sure. Take your camera matrix and unproject it (or invert it). This can be done in libgdx like so: Vector3 worldCoordinates = new Vector3(screenX, screenY, 0); camera.unproject(worldCoordinates); The documenation can be found here.


1

I think best way to find inspiration would be to look through android store (if you only want to prectise code and not sell it). Some I can think of: Hundreds Lazors 7x7 Pong Any Pool/Snooker etc Chess Tic Tac Toe Bowman edit: UnBlock Me Tetris? Breakout


1

Trust me look into Scene2D. It handles everything input related for you. You can even do timed based actions on it, which are very nice. Its also built into libGDX. Truuuuust me its super easy once you get the hang of it. Honestly, I now write everything in Scene2D. If your having issues getting started with it, Heres a little sample code for you Stage ...


1

I finally figured out how to use a matrix to do transformation on lines in Android. It's a little roundabout but hope it helps someone. The following code is to rotate a line around it's center. //coordinates of line (x1,y1) to (x2,y2) float x1,y1,x2,y2; //get the center of the line float centerX = Math.abs((x1+x2)/2); float centerY = Math.abs(y1+y2)/2; ...


1

This is a fascinating and insightful presentation on gaming development where he discusses the pros and cons of working in groups of developers for years at a time as opposed to working on games independently a few days at a time and pretty much everything in between. How the process works and how few or many required is discussed as well.



Only top voted, non community-wiki answers of a minimum length are eligible