A geometrical description of the part of that space occupied by the object, as determined by its external boundary – abstracting from location and orientation in space, size, and other properties such as colour, content, and material composition.
16
votes
3answers
1k views
Recognizing a hexagonal clickbox
I'm working on a game that is going to involve gasp hexagons.
At present, I have a hexagon image that I am using (all sides are the same length...it fits into a 50px by 50px image).
I am somewhat ...
4
votes
2answers
76 views
Making various shapes equally difficult to tap
I'm developing a game where the player quickly has to tap/click on various shapes such as squares, circles, triangles, stars and so on. I'm now struggling with the following task: I'm searching for a ...
3
votes
3answers
3k views
XNA - Drawing 2D Primitives (Boxes) and Understanding Matrices in Computer Graphics
I have two issues which I wish to solve by creating 2D primitives in XNA.
In my game, I wish to have a "debug mode" which will draw a red box around all hitboxes in the game (Red outline, ...
2
votes
2answers
410 views
Blending textures together, texture fade over / fade in
What is the best way to render a texture overlapping effect?
Like in this example:
I want either the grass to fade in to the snow texture, or the other way around. No rough edges. Somehow make ...
2
votes
2answers
82 views
Farseer Physics: How to create shape from Verticies?
As you can understand from the title, I'm pretty new to game development. I'm doing this for fun. Anyway here's my question. I have this Farseer Physics samples and I've been studying them for a few ...
2
votes
2answers
166 views
Drawing multiple triangles at once isn't working
I'm trying to draw multiple triangles at once to make up a "shape". I have a class that has an array of VertexPositionColor, an array of Indexes (rendered by this Triangulation class):
...
1
vote
3answers
3k views
Trying to create a sphere in UDK on which I can stand
Trying to build a globe in UDK, but when I do (create a sphere), my player falls straight through it. How do I make a sphere that I can walk on? Every other shape (cube, cone...etc) work just fine.
...
1
vote
1answer
661 views
AndEngine Physics: Shape rotating but not updating physics effects
I was looking at PhysicsExample from AndEngine's Examples. I made the following change that I added a vertical line shape and created a fixture for it. Then I registered a rotation modifier for that ...
1
vote
1answer
350 views
Shapes and sprites in SVGs
I understand SGV images are used in 2D games to store shape data for the physics engine of the game. I'm unsure though, should the raster sprite also be stored in the SVG or should it be separate?
...
1
vote
2answers
129 views
Texturize a shape of multiple triangles in 2D
This is an example of a shape consisting of multiple points, triangles and eventually a shape:
Red Dots = Vector3 (X, Y, Z) or Vector2 (X, Y)
If I have a Texture of a certain size, how do I ...
1
vote
1answer
183 views
How do I draw shape distortion with a Texture2D in XNA?
Say I have a rectangular Texture2D object in XNA, and I draw it on the screen.
How can I animate it so it slowly changes to a trapezoid shape, and then to a pentagon, etc.
I have no idea what this ...
1
vote
1answer
344 views
Intersecting Ray with Extruded 2D Shapes (e.g. Extruded Text)
I'm looking for a way to find intersection between a ray and an extruded 2D shape or text (defied by a Bézier curve). Any ideas?
1
vote
0answers
567 views
How to properly add texture to multi-fixture/shape b2Body
Hello to everyone this is my first poste here I hope that will be not fail start.
At start I must say I make part 1 in Ray's Tutorial "How To Make A Game Like Fruit Ninja With Box2D and Cocos2D". But ...
0
votes
1answer
167 views
Custom VertexDeclaration for Color, Texture, Normal
What is the best way to create a VertexDeclaration, that makes it able to render a Shape consisting of vertices and also be able to store a color for the shape (in case the texture can't be rendered - ...
0
votes
2answers
125 views
games logic based on closed shapes
I would like to know the math concepts behind shape based games like http://www.miniclip.com/games/fat-slice/en/
To be specific, I would like to know on
how to model shapes programmatically
finding ...