Questions tagged [2d-games]

2D games are drawn in a two-dimensional space using two-dimensional objects. To represent its position, each game object will have an x and a y coordinate.

2D games are drawn in a two-dimensional space using two-dimensional objects. To represent its position, each game object will have an x and a y coordinate, but not a z coordinate unlike in 3D games.

This can range from top-down games, like dwarf fortress, to side-scrolling ones, like platformers. It would refer to any games where the character / objects can move freely in two dimensions (e.g. left-right & up-down).

Related tags:

Remember there is also a special StackExchange site: Game Development

1116 questions
-5
votes
1 answer

Asking for advice in further Java game development

I have watched many Java toturials, learned some basics Java. About 1month ago, I'm interested in Java game development, learned some basic stuff (control sprite, draw figures, basic collision and etc.). But something in me telling that I doing…
Martynas Žukovas
  • 149
  • 1
  • 5
  • 13
-7
votes
1 answer

EV function for 2048 video game

What is the best admissible heuristic function for 2048 video game? Please give example of initial state and next state and how to compute the value of the evaluation function?
-7
votes
2 answers

Reading data from text line by line in java

I'm making a game in Java, but can't figure out how to get information from a text file so that I can load the game. I have the saved files set up so that on every line there is the name of a method in my Main program. What I need to do is to look…
hubbardh
  • 41
  • 6
-8
votes
2 answers

Removing an object from a list and the game?

The problem I am having is that I have created a list with an object inside but when the player collides with the Object in question I can't remove it from the list. //This is where the issue is foreach (Objective seagull in seagulls) { if…
Adam
  • 1
  • 1
-10
votes
1 answer

Why can't I pass a int to a float in the same statement?

I am trying to get one off my int statements to take a float statement because in my game, the sprite uses a float to get the coords of where it is at. However the tilemap uses int to get the location of the tile. Why cant you use an int and float…
1 2 3
74
75