Tag Info

New answers tagged

0

(Most) Android devices' input are from the touch screen. If that is your case, and you are trying to fetch touch events, you have two options: 1 - Poll every frame if the LEFT key is pressed. Basicly, instead of your Gdx.input.isKeyPressed(Input.Keys.LEFT) what you want to check is: Gdx.input.isButtonPressed(Input.Buttons.LEFT) From javadoc: ...


0

(I'm having a hard time understanding your explanation of what you're trying to do. So I'm answering based on what I think you're trying to do, but my apologies if I misunderstood.) I would use a Dictionary for this purpose. That data type is great for associating other data with specific objects. Also I would use List instead of ArrayList, so both the ...


3

I tend to subscribe to the theory that an entity is somewhat abstract and in the general sense doesn't really have much of any logic. If anything, an entity often exists as a wrapper around a complex set of systems that deliver specialized behavior based on outside factors. For example, two entities are constructed in the same way but one perhaps has an ...


1

The way I like to think about this problem is as abstracting the input. In order words, have the AI "press buttons" (not literally). It's pretty much the same as what you're suggesting, with the Entity being a fully functional puppet that can either be controlled by the player (using normal input) or by the AI (using your state machine). Modern game engines ...


2

Usually, the reason that consoles perform better than PCs with equivalent hardware is that the hardware available on a given console is well-defined, and it is possible for programmers to make optimizations that are not possible for PC games, which need to run on a wide range of hardware configurations. AMD's Mantle API for PC boasts the ability to make ...



Top 50 recent answers are included