Questions tagged [topdown]

Top-down games, also sometimes referred to as bird's-eye view, Overworld, Godview, overhead view or helicopter view, when used refers to a camera angle that shows the player and the area around them from above.

126 questions
1
vote
1 answer

Python / Pygame - How to create a camera for looking at a world map (top-down, no player character)

I'm trying to implement a camera feature, which works in that the images move - however: 1) Subsequent images - such as a new menu - get created at the place where they would have been created if I hadn't moved the camera. So if I move the camera by…
user2286565
  • 31
  • 1
  • 5
1
vote
1 answer

When I hit play, my Sprite character rotates. Why?

I am making a top down game on Unity, so I am using the x and z axis as my plane. I have my character rotated x 90, y 0, z 0 so that it is flat on the plane. As soon as I hit play the character is rotated vertical?! I think it has something to do…
Alex I
  • 41
  • 3
1
vote
1 answer

alternating substring using (recursive) dynamic programming

My task is to solve alternating sub string problem with a recursive dynamic programming approach: Consider a sequence A = a1, a2, a3, ... an of integers. A subsequence B of a is a sequence B = b1, b2, .... ,bn which is created from A by removing…
Jeahinator
  • 77
  • 7
1
vote
2 answers

Topdown approch for abcpdf doc object

the default (x,y) axis for doc object in ABCpdf starts at bottom-left corner. is there any way to make it top-left corner.?
Ankith
  • 145
  • 2
  • 12
1
vote
2 answers

Character is rotated 90 degrees off from intended direction

I'm building a topdown game with my main player rotating towards the mouse pointer but for some reason the player looks at the pointer from his right(his x axis) and i need need him to look from his Y. I tried multiple ways and still the same as in…
WillYum
  • 61
  • 1
  • 8
1
vote
0 answers

How to set boundaries for turtles to not go through?

I am programming a top down shooting game sort of like Hotline Miami and I have every thing sorted but the only problem is. That I can't find a way for the "bad people" to not go though the walls of the map, I need some help setting up boundaries.
Mart_head
  • 11
  • 1
1
vote
0 answers

Which one to select "Top Down" or "Bottom Up" approach in DP?

Bottom up technique looks little bit easier when it comes to solve a question(my view), but whether it can be used everywhere where we are using Top Down approach or is there any specific instance when we can or we should use bottom up technique ?
Anurag
  • 11
  • 2
1
vote
1 answer

Top down shooter bullet not accurate at all

I checked through Youtube, Google and previous answers but can't get my game to shoot towards the mouse. The player rotates to follow the mouse and when he shoots it's either inaccurate or sometimes shooting in the other direction. I really don't…
ColdCode
  • 11
  • 2
1
vote
1 answer

Unity 2D Top-Down mouse facing weapon rotation problem

I am making a Top-Down 2D shooting game and i did spot a trouble. The point is, player gun has weird rotation whenever the player rotate. I made my Player face mouse position. Player gun is not in the center of sprite. The Gun is a prefab in…
Kiket95
  • 73
  • 10
1
vote
1 answer

Runtime complexity of recursion inside loop with memoization

I would like to know how to determine the time complexity for the following code, using top-down dynamic programming approach with memoization (note that i, k, d can be any integer value): solve(i, k, d) { if (k >= d) { A[i][k] = 0; …
stackyyflow
  • 767
  • 3
  • 11
  • 30
1
vote
1 answer

box2d , libgdx - Player Body have relative velocity of spaceship but still be able to move around

I'm creating a Top-down 2D game and I'm using Box2D to simulate physics, my question is this: How do I keep the player at a relative velocity to my spaceship, and still be able to move around my player with the ship also moving? I've put an…
Michael
  • 29
  • 7
1
vote
1 answer

Is Bottom Up Dynamic programming recursive?

In this approach smaller subproblems are computed and results are cached, then we compute the bigger subproblems for which we use the already computed optimized values of the smaller subproblems from a table which cached the earlier computed values.…
Deba
  • 429
  • 3
  • 8
  • 18
1
vote
1 answer

Top-Down Parsing with recursive grammar

I have an assignment in school which tells us to create a Top-Down Parser in Java which follows this grammar: assign = id , '=' , expr , ';' ; expr = term , [ ( ’+’ | ’-’ ) , expr ] ; term = factor , [ ( ’*’ | ’/’) , term] ; factor =…
Murmeel
  • 23
  • 4
1
vote
0 answers

Rectangle Rotation Java

I'm somewhat new to java graphics and am trying to learn how to use rotation. from what I have read 'affineTransform' is the key to pretty much all of it. Here I can't seem to figure out how I would create this rectangle and apply rotation to it.…
Logan Hunt
  • 39
  • 7
1
vote
1 answer

Object rotation and movement in current facing direction; Java

So I am trying to build a top down space shooter in java. I am fairly new but I have a good grasp on it having perfected making pong. My main problem is that I can't seem to get rotation down. I want to be able to press right or left on the arrow…
Logan Hunt
  • 39
  • 7
1 2
3
8 9