libgdx

Android, libgdx and box2d basics [closed]

痴心易碎 提交于 2020-01-01 08:38:30
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I wrote couple of simple board games since i started on android learning, Please let me know is there any tutorial or links, where i can start with physics library with libgdx, looking for something like basics

Android, libgdx and box2d basics [closed]

别说谁变了你拦得住时间么 提交于 2020-01-01 08:38:13
问题 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 7 years ago . I wrote couple of simple board games since i started on android learning, Please let me know is there any tutorial or links, where i can start with physics library with libgdx, looking for something like basics

Drawing a CatmullRomSpline in libgdx with an endpoint and startpoint

為{幸葍}努か 提交于 2020-01-01 07:05:36
问题 So my goal is to draw a spline similar to this one (where the line goes through each point): But the spline loops around (from the end point 2 back to the start point): I tried changing the "continuous" boolean in the catmullromspline, but that resulted in only a dot being drawn in the center of the screen. I also ended the line drawing when it hit the last point, but the result was ugly because the line was still curving at the start and end points. I looked everywhere in the source code,

Drawing a CatmullRomSpline in libgdx with an endpoint and startpoint

不问归期 提交于 2020-01-01 07:04:42
问题 So my goal is to draw a spline similar to this one (where the line goes through each point): But the spline loops around (from the end point 2 back to the start point): I tried changing the "continuous" boolean in the catmullromspline, but that resulted in only a dot being drawn in the center of the screen. I also ended the line drawing when it hit the last point, but the result was ugly because the line was still curving at the start and end points. I looked everywhere in the source code,

White vertical lines and jittery horizontal lines in tile map movement

筅森魡賤 提交于 2020-01-01 03:57:16
问题 I'm having trouble finding an answer as to why the tile sheets I am making for our tile maps create vertical white lines and jittery horizontal lines while moving around on screen, using libGDX. Here is a video showing the white vertical lines: https://www.youtube.com/watch?v=34V64WacMo4 Here is one showing the horizontal jittery lines: https://www.youtube.com/watch?v=LiozBZzxmy0 For comparison, here is a project I worked on earlier this year without GDX. You can see the tilemap moves

How should I render a 2D flashlight effect?

岁酱吖の 提交于 2020-01-01 03:40:10
问题 I'm trying to make a flashlight effect in my 2D game. My flashlight is represented as a line segment extending from the entity at a specific angle. The flashlight can point in any direction. The flashlight also varies in intensity (length of the flashlight beam). I'm have a problem trying to figure out the best (easiest?) and most flexible way to render the flashlight effect. Particularly with the tiled map. I can think of two methods. But I have no idea to implement them: ONLY draw a conical

how to draw custom shapes using a simple texture in libgdx?

霸气de小男生 提交于 2020-01-01 03:15:06
问题 I want to draw custom static shapes in my game just like the angry birds done: but the problem is that the texture is in square shape. how we can tell to the "SpriteBatch" to draw shapes with some vertices? does anybody has some ideas? 回答1: According to the docs: A SpriteBatch is used to draw 2D rectangles that reference a texture (region) So essentially, this method does not allow you to specify any other geometry than a rectangle. However, there is a draw method that allows you to specify

Unproject mouse to get 3D world coordinates Libgdx

那年仲夏 提交于 2020-01-01 00:45:30
问题 My Question: How does one get a 3D model to move with the mouse cursor keeping the y location of the model at 0. (Using Libgdx) What I have tried: I'm trying to get my 3D models to follow my cursor. At the moment I have simply made the models move with the x and y coordinates of my mouse with adding factors like a multiplier and camera location. This is not very good because it doesn't follow the cursor and if I rotate the camera then the model doesn't move in the correct direction. This is

LibGdx How to Scroll using OrthographicCamera?

六月ゝ 毕业季﹏ 提交于 2019-12-31 13:33:52
问题 I have been loocking for 10 hours (literally) and I'm done, I need to ask. Thing is I'm learning How use LibGdx to program Java games. I'm doing a Horizontal Space Ship Game. So, my worst problem here is that I do not know how do scroll (I think draw will explain better). I want to draw a hudge background (Space) and make my OrthographicCamera move right like with my SpaceShip, so it will create a Scroll effect with the Space Background. No enemys and nothing but the ship on the screen. I'm

LibGdx How to Scroll using OrthographicCamera?

廉价感情. 提交于 2019-12-31 13:33:12
问题 I have been loocking for 10 hours (literally) and I'm done, I need to ask. Thing is I'm learning How use LibGdx to program Java games. I'm doing a Horizontal Space Ship Game. So, my worst problem here is that I do not know how do scroll (I think draw will explain better). I want to draw a hudge background (Space) and make my OrthographicCamera move right like with my SpaceShip, so it will create a Scroll effect with the Space Background. No enemys and nothing but the ship on the screen. I'm