Hot answers tagged

27

It is possible to approximate a solution to this problem for most parametric trajectories. The idea is the following: if you zoom deep enough on a curve, you cannot tell the curve itself from its tangent at that point. By making this assumption, there is no need to precompute anything more than two vectors (three for cubic Bezier curves, etc.). So for a ...


20

L-Systems, from what I can tell*, are a set of grammar-like substitution rules that you can apply recursively to get interesting, "organic" results. Plants are where L-Systems are often used, as they show a lot of recursive growth (i.e. branch splits off into more branches). For a simple example, I'll show a "lollipop" tree generated using an L-System: ...


17

You're on the right track. The gist of the client-server networking model is that a server is that it's a central point of knowledge that clients connect to. A game server typically contains an in-memory world representation, a list of connected players, a game loop (with e.g. player control handler, a physics engine & AI). You'll also need a ...


16

I would draw a single textured quad on the ground (i.e. lying on the XZ plane), as big as the visible area should be, and then play around with the vertices texture coordinates (with the texture addressing mode set to wrap) in order to automatically take care of both texture repetition and texture scrolling. For repetition instead of setting your vertical ...


15

There are quite a few resources to refer to. First thing to note is that 93% of the top 100 grossing games use in-app purchasing so that by itself means something. Here is a research by flurry showing the dominance of in-app purchase dominance as a monetization model for mobile games. This is from about a year ago and the trend became stronger since: Part ...


14

The best short answer I can give you is: T = guesstimate how long it is going to take. M = Check what is the average monthly pay for a programmer in your country. P = Amount of people on your team. Your offer to them should be: T * P * M * 3 This advice of course is not offered as professional counseling and not intended to replace it. They will likely ...


13

Yes. There are many ways to wrap an HTML5 game for distribution on iOS. Solutions include CocoonJS, Game Closure, PhoneGap, and Ejecta. Examples of HTML5 games on iOS include Onslaught! on iPad and Biolab Disaster on iPhone.


12

Find an engine that runs on all three platforms (i.e., is cross-/multi-platform) and meets your requirements. The latter will vary with time and only you know all the requirements you need, so finding the correct engine is left up to you.


12

The first step, is of course, finishing your game. The publisher rejection rate is high enough for even established professional game developers, with complete projects. Sloperama Lesson 11, Section V You want to essentially do everything in your power to be as noticed as possible. Publishing is very risky, even when your game is complete, and you want to ...


11

Here's how I would do this. First, make sure you have the object's UVs or world coords (which you can pass through from your vertex shader) available to you. If it's just a background, you could also just use fragment coords (gl_FragCoord). For instance, let's say we're using UV coords. A fragment shader with only: gl_FragColor = vec4(vec3(uv.x),1.0); will ...


11

As far as i know when you build for IOS on windows it will generate an Xcode project that you then need to build on mac. As you can't make IOS bundles on windows the only thing you can do is to make the process better by not having the requirement of installing Unity on both windows and OSX. You could set up automated tools which take the output from unity ...


10

You seem to be making a Sokoban-style game. You have at least 3 options: Working from a solved end state. My gut feeling says this is not the optimal solution, because a) there are usually many end states and b) the puzzle does not only have to be solvable, but also interesting. So you should probably rather pursue one or both of the other 2 options: ...


10

Android and iOS are not directly supported by the command line utility. However, you can use the command line utility to run a script that will build for iOS. In the simplest form, it would be something like: using UnityEngine; using UnityEditor; using System.Collections; using System.Collections.Generic; using System.IO; public static class AutoBuilder { ...


10

I'm not used to Cocos2D engine, but I can suggest this solution for you to apply to your game. Naive implementation The simplest way to implement a train wagon can be making an object which follows a given path, whose angle rotates according to the path direction. Given a path (as an open line or closed polygon) consisting of a finite number of points, the ...


9

To find the 'most visible side' of the cube, take dot products of the cube's X, Y, and Z axes with the 'look vector' - that is, the direction the camera is looking; the axis with the largest absolute dot product will be the axis most aligned with that vector, and the sign indicates which of the two faces along that axis ('positive' or 'negative') is facing ...


8

It is against the Apple and Mac OS terms of agreement to install Mac OS on anything aside from an Apple authorized machine. You are in breach of your user agreement by doing even that. So app-store stuff aside - you are in legal hot water. However! Pushing that aside, I'd like to note at least one game has been published with a similar method as the one you ...


8

In my opinion there are a few types of mobile games. Single player / action / arcade puzzle - these doesn't really require a server side anyway and you can go a long way with openfeint or gamecenter to implement the social functions. Multiplayer / MMO / MMORPG - These require a strong backend with very quick response times and the BAAS solutions are really ...


8

Ok, after reading a lot i've found the solution: Seems that the extern call don't work inside the editor or simulator, so the correct way of doing this is develop for device (after putting the header and the implementation files under Assets/Plugins/iOS). I hope that this will help some one :)


7

OpenGL and OpenGL ES, despite the similar names, are two different specifications. They may have similarly named functions, but there will be semantic differences between what these functions do. And of course, there will be differences in what features they support. PBOs are not supported on ES (except for ES 3.0, which recently came out but isn't widely ...


7

Look into the (horribly named) AssImp asset importer library (http://assimp.sourceforge.net/). It allows loading a variety of 3D file formats into memory, which you can then use to generate your preferred in-memory format for rendering models. You might consider using AssImp as a preprocessor pipeline stage. That is, have a separate tool to covert the ...


7

The safe answer is to never use content you did not originally create. Any knowledge of using copyright protected content is obvious infringement. You can always try contacting the owner of the content and explain to them how you want to use something. They may give you permission to use it for free(for a student project or something) or may license it to ...


7

[Discalimer: I'm not a lawyer. I've just researched the topic a bit.] In some countries, there is (what I would call) a grey area in copyright known as fair use. I believe its considered a grey area because: The distinction between what is fair use and what is infringement in a particular case will not always be clear or easily defined. There is no ...


7

There are pros and cons to both, but the decision is ultimately yours. You'll have to decide based on the style of your game and the type of game. Static position: Always in the same place, predictable. This means the user will always know where the indicator will be and allows them to avoid covering it up on their own. Kind of boring and requires some kind ...


7

It was made with openFrameworks and a custom library for spritesheet rendering, as told by Zach Gage (one of the developers) in the Ridiculous Fishing Reddit IAmA: I think the biggest tool I have is a very tiny library I wrote about 2 years ago with some help from my friend Ramsey Nasser. It's opensource here: https://github.com/stfj/...


6

The "worth" of something can only be determined by you. For some people it isn't worth porting to android for the amount of time spent vs. sales. That being said there's no reason to just use C++ for everything. Sure, the interfaces for certain things is C or Objective-C, but you can call both of those easily from C++.


6

I've been the graphics performance guy for a few big-name 3D iOS titles, so I completely feel your pain on this one. My experience has been that transparent pixels are the most expensive thing you can render on modern iOS devices. Your conjecture is right; the greater number of pixels on the iPhone4 really kills its performance in general, and transparent ...


6

You need to reparamaterize the curve. The easiest way to do this is to calculate the arc lengths of several segments of the curve and use these to figure out where you should sample from. For example, maybe at t=0.5 (halfway through), you should pass s=0.7 to the curve to get the "halfway" position. You need to store a list of arc lengths of various curve ...


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