Tagged Questions
1
vote
1answer
108 views
Grid-Based 2D Lighting Problems
I am aware this question has been asked before, but unfortunately I am new to the language, so the complicated explanations I've found do not help me in the least.
I need a lighting engine for my ...
0
votes
0answers
63 views
Dynamic real-time pathfinding with C# and unity [closed]
A buddy and I are working on a simple 2D top down arena combat game similar to OpenGLAD (grew up on ye olde GLADIATOR).
Thing is, we want to make some substantial deviation from our source of ...
0
votes
1answer
42 views
Obtain rectangle indicating 2D world space camera can see
I have a 2D tile based game in XNA, with a moveable camera that can scroll around and zoom.
I'm trying to obtain a rectangle which indicates the area, in world space, that my camera is looking at, so ...
1
vote
1answer
139 views
Large resolution differences
I want to develop a game on multiple devices such as PC, Android or IOS.
Want it to be in 1080p, but that means a massive scale down for the smartphones.
I know how to do that, just render everything ...
0
votes
1answer
60 views
Beginner question: Graphics packs C# [closed]
As someone new to c# I'm hoping to design a game to better understand the language. What I'm looking for is something in C# that lets me draw lines, dots, shapes etc in different colours. The ...
1
vote
1answer
101 views
How could I figure out the shortest way to turn, and whats the angle? [duplicate]
I'm creating some robots for my tank game. I want them to find each other and shoot each other down, so I'm trying to implement a way for them to turn towards each other, and turn the shortest way. ...
4
votes
2answers
127 views
What's involved in resetting the graphics device?
I'm playing with XNA 4.0, VS2010. I've created a window (not maximized) and drawn some sprites. All is good until I resize the window, after which the sprites stop displaying or only partially ...
6
votes
1answer
506 views
Implementing water effects (splashes) into XNA 4.0 game [closed]
I am creating a 2D XNA game and came across a tutorial on adding water effects (splashes) to an XNA game but after implementing it into my game I can't get it to scale down. Currently it takes up the ...
0
votes
1answer
90 views
Formula throwing a ball to destination [duplicate]
I am throwing a ball using this:
double v, vx, vy, alpha, t2 = 0;
if (Keyboard.GetState().IsKeyDown(Keys.Up))
{
alpha = MathHelper.ToRadians(60f);
v = ...
8
votes
5answers
3k views
Designing a flexible tile-based engine
I'm trying to create a flexible tile-based game engine to make all sorts of non-realtime puzzle games, just as Bejeweled, Civilization, Sokoban, and so on.
The first approach I had was to have a 2D ...
-4
votes
2answers
216 views
2D Graphics in CMD in C#
So, almost every programmer used Doom as inspiration for new Projects, right? So Doom and other classic MS-DOS game were played on something like Command Prompt. How do you display images in Command ...
1
vote
2answers
160 views
XNA spritebatch.Draw: Which part gets colored by the color parameter?
Which part gets colored and how can I control it?
I have a rounded block and my goal is to have the center filled with a certain color chosen by that parameter. Here's the picture:
...
1
vote
3answers
253 views
Splitting tileset into individual tiles
I'm trying to split a tileset (from here) into individual tiles.
For debugging purposes I wrote some code to split the tileset into individual tiles and display them on screen, but some aren't being ...
1
vote
3answers
161 views
Creating an update “Tick” on tiles for simulating growth of plants
In my 2D tile based platformer I have added plants to be able to farm such as the simplest, grass, to other things like corn. Now each of these speacial tiles must be updated to show how much it has ...
1
vote
2answers
255 views
Resolving 2D Collision with Rectangles
For about a week I've been trying to grasp the basics of collision, but I've been driven to the point of wanting to just give up on everything when it comes to collision. I just don't understand it. ...