58
votes
What are some ways to keep the player engaged in an endless game?
Provide visible goals for the player to achieve. For example:
Levels: If you click enough rockets, the game becomes more difficult. When you are lazy on a tight budget, then you can just tune some ...
- 114k
45
votes
How do you handle aspect ratio differences with Unity 2D?
What you want is to constrain the camera viewport on portrait or landscape(depending on your needs), by computing camera.orthographicSize property, so you can build ...
- 548
27
votes
What are some ways to keep the player engaged in an endless game?
I would suggest adding a mechanic that encourages emergent gameplay. Often emergent gameplay can be introduced by adding physics into your game.
For example, if a rocket explodes, it could launch ...
- 411
21
votes
Accepted
How to file down a fingernail mesh?
Myself, I'd approach this by keeping the mesh fixed and unchanging, and using a texture to shave away the edge.
You can make a signed distance field of your nail shape, and use this in your shader to ...
- 122k
18
votes
Why would I want to use multiple ad providers for my game?
One thing we do is use "mediators". Supersonic is a mediator. You install their plugin plus, let's say two others for simplicity, Vungle and AdColony. When an ad is requested, Supersonic figures out ...
Almo♦
- 6,639
16
votes
Accepted
What gamepad functionality can be assumed?
The standard which you will find on most platforms is:
Analog directional input left thumb
Digital directional input left thumb
Analog directional input right thumb
4 buttons right thumb
2 shoulder ...
- 114k
10
votes
Accepted
Why would I want to use multiple ad providers for my game?
While using only one ad network is fine for some projects, there are several problems that can arise. Using multiple ad networks can help resolve them. However, managing multiple ad networks can ...
- 216
9
votes
What are some ways to keep the player engaged in an endless game?
You need to have something that keeps changing. Interest will be replaced by boredom if it is the exact same game over and over. But it doesn't have to be.
Many classic games are the same game, but ...
- 1,264
8
votes
Is "Check your surroundings" warning on splash screen really needed for geolocation games?
Some geolocation games like Pokemon Go had quite a lot of bad press due to people getting injured while playing them. There were also cases of people trespassing on private property or entering ...
- 114k
8
votes
What are some ways to keep the player engaged in an endless game?
A user will not play a game where they do the same thing over and over. It will get boring and they will leave. As such, you need to make it feel like they're doing something new, even if the ...
- 1,197
6
votes
How do you handle aspect ratio differences with Unity 2D?
You typically don't need different sizes of assets - imported textures and sprites with automatically-generated mip maps will look nice when rendered at any size less than or equal to the original ...
- 455
6
votes
Cross-platform C++/OpenGL ES development (iOS/Android)
You may find my answer to a similar question here to be helpful.
You may also find it helpful to look into the source code of other solutions. The Godot Engine for example is a cross platform open ...
- 331
5
votes
Accepted
How to force Landscape Mode Unity3D Android Game?
In Unity, navigate to Edit -> Project Settings -> Player and choose the platform on the right. Android should be the 4th tab if you're using one of the latest versions of Unity.
Open the dropdown ...
- 176
4
votes
Accepted
Should UI be part of the game-loop?
Yes, generally, games are a single main loop.
Games in Java may have a separate main loop for each menu/screen/mode due to Java's idioms, but that of course does not solve your animation wait problem....
- 41.5k
4
votes
Should I switch to UDP for a mobile p2p game when considering 3G network?
3G is optimized for stuff like streaming video. It's terrible with regard to latency when talking about small bits of data. There's a reason multiplayer mobile games over 3G with split-second timing ...
Almo♦
- 6,639
4
votes
How to handle multiplayer in JavaScript?
Both the question and the accepted answer were published in 2011, and the times have quite changed since :)
Websockets is quite prevalent, but an even better technology is WebRTC which allows for ...
- 635
4
votes
Are the same number of tiles displayed in an isometric game regardless of phone orientation?
This is a square grid shown using an isometric projection:
Note how it's wider than it's tall.
In fact, even if the grid was a rectangle with unequal sides, it still will be wider than taller, due ...
- 14.7k
4
votes
Accepted
Are the same number of tiles displayed in an isometric game regardless of phone orientation?
In a typical isometric-style projection, tiles are roughly twice as wide as they are tall (depending on whether you're using true isometric or its close cousin often used in games, the 2:1 dimetric ...
- 122k
4
votes
Accepted
How to adjust objects' coordinates and scale for different device resolutions?
This depends on how you've authored the objects.
3D objects and 2D sprites positioned in your scene's worldspace will not move, scale or change their worldspace transformations no matter what happens ...
- 122k
4
votes
Accepted
How to handle a Google Play game's privacy policy
Before you read this, I'm not a lawyer.
As far as I understand, the "Designed for Children" refers to apps that primarily target children, like educational apps, or cartoon-games. They do not affect ...
- 4,293
4
votes
Accepted
How to detect if a mobile device is a foldable phone?
Searching for "samsung foldable phone api" brings up the Android developer documentation on foldables which links to the information on making your app fold aware:
To make your app fold ...
- 10k
3
votes
What framerate should I aim for on a mobile phone?
So first off, a disclaimer: I'm a Director at GameBench, and we make tools for measuring mobile app/game performance (frame rate and other metrics) for a lot of major companies (Rovio, Samsung, ...
- 131
3
votes
Accepted
Is this the typical approach to modern OpenGL UI & Text rendering, for mobile?
Your points seem reasonable.
For static elements that are set up once and never change, you can certainly pack them into a GL_STATIC_DRAW buffer and keep it alive ...
- 3,047
3
votes
Accepted
Testing SFML sf::Touch on ordinary PC
When compiling for a traditional Windows / Mac / Linux desktop setup, no this won't work. I dug through the SFML code and it turns out that the sf::Touch implementation won't really work unless you're ...
- 1,363
3
votes
Should particles check if they are in a region, or regions if particles are in them?
You may want to have each region contain a list of particles which are in it. Then, when you move each particle, check if it is in a new region - add it to the new region's particle list, and remove ...
- 39
3
votes
Do I need a server to connect two players in a mobile game?
Yes, you'll need a server if you want to connect players together over the internet (Facebook friends or otherwise). Without a "meeting place" (your server) your players wouldn't have the information ...
- 72.9k
3
votes
Accepted
Mobile Game: Google Play no supported dev country and capitalization alternatives (no policies violation or suspicious behavior)?
If your country is marked red crossed in merchant account then you are not allowed to do any kind of direct bank transaction. Example: In-app purchase of any kind, sell premium app, Ad remove purchase ...
- 2,013
3
votes
My array loads in the wrong order
ChapterListItem _chapterListItem = chapterListItemPrefab.GetComponent<ChapterListItem>();
You are getting your ...
- 184
3
votes
Unity, choosing a mobile shader
There is no Mobile shader which will only adjust the color of the object, you must write your own custom shader or modify Unity's build-in shaders. If you only want ...
- 157
3
votes
Accepted
2D and 3D Tablet Games Definition
We're pretty loose with our definitions of 2D & 3D in games, meaning a mix of two things:
Are the graphics (mostly) rendered as 2D sprites, or 3D polygon meshes (or voxels or raymarched fields or ...
- 122k
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
mobile × 325unity × 106
android × 65
ios × 24
c# × 23
javascript × 23
java × 20
networking × 19
game-design × 16
performance × 16
2d × 14
html5 × 14
multiplayer × 13
cross-platform × 12
3d × 11
iphone × 11
touch × 11
optimization × 10
server × 10
opengl × 8
rendering × 8
resolution × 8
user-experience × 8
aspect-ratio × 8
libgdx × 7