C# is a multiparadigm, managed, garbage-collected, object-oriented programming language created by Microsoft in conjunction with the .NET platform.
0
votes
0answers
12 views
Why is my model flickering when translating
I have several models here. When they stand still during gameTime, there's no flickering.
But as soon as I move them across the x-axis, they flicker on some places.
protected override void ...
0
votes
0answers
16 views
How to move a bullet from the player to the cursor? XNA
I have a bullet that currently works in my game, but with some odd issues.
I'm making a top down shooter and I want the bullet to move from a point on the players location (from the guns muzzle ...
0
votes
0answers
16 views
Unity3D How too write to the back buffer AFTER the final pass of prepass rendering
I've been using this script and shader from the wiki, and they work wonders; my only problem is using them in deferred rendering.
Now, the way this shader works is by writing to the depth buffer to ...
2
votes
2answers
41 views
Playing different particle effects in Unity on the same ParticleSystem
The question really sums it up: What is the best way to use one particle system for playing different particle effects?
The scenario: GameObject is picked up and it starts playing a simple indicator ...
0
votes
0answers
40 views
How can I draw an Xbox Avatar?
I want to replace the main character of my 2D game by an Xbox avatar. How can I do that?
How can I add an avatar to my project?
How can I draw an avatar?
For example, I draw my main character like ...
-1
votes
1answer
98 views
Android 2D game engine [closed]
I'm looking to make my first 2D sidescroller for android, and would prefer an open source engine good for 2d games. I might eventually have 3d backgrounds too, so if it can handle those that would ...
0
votes
2answers
47 views
Program closes without Exception
I'm using XNA 3.1 ( .NET 3.5 ) and my program closes without any warning, errors, or code instructing it to do so. I looked in the output, and there aren't any obscure messages outside of telling me ...
0
votes
1answer
43 views
Managing Background Sprites
I tried asking in Chat and no one answered, so the question goes here.
Anyone have advice for loading background Sprite maps? I'm trying to do it as efficiently as possible for a grid of 25 ...
-1
votes
0answers
24 views
XNA crash when publish
I've made a 2D game, it runs fine when debugging but when I publish and install the game prompts an error and fails to run.
I have three text files in my game which store various game data - ...
1
vote
0answers
106 views
DRY 0-bandwidth-overhead-serialization in C#: virtual, delegates or reflection?
I'm (de)serializing some datastructures for a network-multiplayer game, and for each datastructure that's to be (de)serialized, I want to define the order of (de)serialization only once for ...
1
vote
1answer
61 views
Can not enable IME to capture Chinese characters in SharpDX
Just found that direct integration of IME is blocked in Windows 8, moving on to TSF now.
By now, there is lack of Microsoft's Document about TSF, this will be hard.
I am using SharpDX and the ...
-2
votes
1answer
73 views
MonoGame iOS and Game Performance [closed]
My friends and I are developing a game for Ipad/Iphone using the monogame Framework.
We are at the final stage of the development and we are having some issues concerning the deploy of the game.
This ...
1
vote
3answers
122 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 ...
0
votes
0answers
86 views
Unity3D depth mask shader not working properly. C#
I've moved this question over to here, after a bit of research I realized the problem wasn't what I initially thought, and wanted to start a new topic to more specifically address my issue. Mods can ...
5
votes
1answer
99 views
Smoothing Heightmap Data
I've made a Heightmap Generator that creates island heightmaps like in this picture:
I am dividing the grayscale ( 0 - 255 ) into 4 diferent parts ( water, sand, gras and forrest )
and after ...
-2
votes
0answers
38 views
How do I learn to develop a Direct2D application in SlimDX using C# [closed]
I'm an intermediate web developer who is experienced with C# and I am looking into becoming a game developer and designer. I have decided that I want to develop a simple 2D RPG.
I'm having a hard ...
15
votes
4answers
389 views
A Simple Method To Create Island Map Mask
I'm searching for a nice and easy way to generate a mask for an island map with C#.
Basically I'm using with a random heightmap generated with perlin noise, where the terrain is NOT surrounded by ...
1
vote
0answers
35 views
Translating an object with a joypad
I'm trying to move a 3D plane with my mouse joysticks. At the moment my code, inside the Update method, is as follows:
xMin1 += Input.GetAxisRaw("LeftRight");
yMin1 += Input.GetAxisRaw("UpDown");
...
0
votes
0answers
61 views
Irrlicht collision with a invisible mesh [closed]
I'm writing a Final Fantasy-like game engine, with 2D backgrounds and 3D models with Irrlicht.
To calculate collisions with the objects in the background I use a invisible mesh like this:
I have ...
2
votes
1answer
161 views
How do I implement movement in a WPF Adventure game?
I'm working on making a short WPF adventure game. The only major hurdle I have right now is how to animate objects on the screen correctly. I've experimented with DoubleAnimation and ...
0
votes
1answer
39 views
Strange Per-Pixel Collision in XNA
I'm having a very strange problem where the bounding box for one of my objects in my game isn't exactly over the texture, this results in the collision being reported somewhere else. Its not really ...
-2
votes
0answers
50 views
Loading specific parts of arrays in XNA
I'm working on a 2D "engine" of sorts in XNA and am now adding larger levels, but to do this I need to be able to only load some of an array into RAM for a chunking system.
At the moment I've got a ...
2
votes
0answers
55 views
Getting a uint color array from a portion of a Texture2D
I'm currently using the Farseer tools to create a body from a Texture2D. However, my texture is a spritesheet and I need to get the uint array containing the colors from a portion of the full ...
3
votes
1answer
59 views
Reading text files XNA 4.0 on Xbox 360
I'm working on porting a game from PC to Xbox 360.
When I want to create a level I read a .txt file that I store in my content
I read the whole file as a string using this method
...
-2
votes
0answers
53 views
Stationary turret that tracks the player when in sight [closed]
Hello i am doing a project for school i am new to c# and need some help with a turret i am creating a simple 2d game and i want my turret sprite to rotate and track my player when he is in view and ...
-1
votes
0answers
44 views
Sprites failing to Update [closed]
I have a simple 2D top down survival game where the player simply has to 'run away'/ not collide with the enemies on screen for 30 seconds each round.
After every increment in level the number of ...
3
votes
0answers
101 views
Legality, implementation, and viability of using the BSP map format in a procedurally generated XNA game?
First off, this is not a "which technology should I use" type of question, but rather a question about the viability (And legality, and how to implement) BSP maps into an XNA game.
The legality part ...
0
votes
1answer
98 views
Recommended collision response needed [closed]
In my game, I have
Player class
Enemy class
Wall class
GameComponents class ( Which is the base class for Player, Enemy and Wall)
The rules are
Enemy chase Player, if collided with Walls, ...
-1
votes
1answer
121 views
Should I use a SQLite for this game? [closed]
I'm planning a board+trading card game. It's exactly the same game as Hero Academy, but with trading cards, and customisable decks. I'm in the Software Design phase, and I'm thinking about using ...
2
votes
1answer
66 views
Support for different resolutions in a tabletop environment
Right now I am experimenting with XAML and C# to write a small Windows Store App which supports displaying a playmat with cards. However not everyone uses the same resolution and with a somehow fixed ...
3
votes
1answer
63 views
Stitching meshes together
I have a voxel engine that generates a mesh per chunk and now I want my meshes to be 1 mesh, but if I create them as a single mesh I kind of lose the benefit of chunking the data in the first place.
...
4
votes
0answers
116 views
Producing a smooth mesh from density cloud and marching cubes
Based on my results from this question I decided to build myself a 3D noise map containing float values in place of my existing boolean point values. The effect I'm trying to produce is something like ...
-7
votes
2answers
41 views
How do i create a Xna 4.0 Creating BoundyBox [closed]
I understand what other people have done and when creating it myself it just seems to go wrong or the version is different so doesn't work in first place. Any easy code for this?
-2
votes
0answers
83 views
C# XNA: How do i create simple 2d TileEngine [closed]
i want to create a simple tileengine for a small rpg-ish game.
I have a picture with 7 different tiles each at a width and height of 48px.
What i want to do is to split the image into those seven ...
-1
votes
0answers
77 views
Web based text Rpg in c# [closed]
Okay, so me and some people are going to be creating a text based rpg that focuses on a nice story to get people hooked, while including some Rpg elements such as skills, equipment and such.
Now I ...
-1
votes
1answer
52 views
XACT support outside of XNA?
I was building a new game in Monogame when I realized that it didn't have XACT support like XNA did. I was wondering if anyone knew another framework that could be used with or instead of MonoGame ...
-1
votes
0answers
33 views
Normal mapping in XNA (WP8) possible?
Information regarding this topic is pretty scarce.
But is normal mapping possible on XNA for Windows Phone 8?
If so, are there some gems of articles out there you could point me to?
2
votes
2answers
77 views
Raytracer texture mapping (to triangle mesh) leaving artifacts
So I am trying to get OBJ loading working in my raytracer. Loading OBJs works fine, but I am having some trouble with getting the texture mapping working.
Here is an image of my result. It is ...
-1
votes
1answer
99 views
Server Based High Scores
I'm currently using the following MySQL example to make a server side high score table: Unity Server Side high score
The above example allows me to create a top 5 player high score table that sorts ...
1
vote
1answer
62 views
graphics.GraphicsDevice.Clear strange result (XNA)
I have such Execution:
graphics.GraphicsDevice.Clear(new Color(255, 0, 0, 0));
Alpha is 0. So why it draws me Red color?
graphics.GraphicsDevice.Clear(new Color(255, 0, 0, 255));
Also draws the ...
1
vote
2answers
109 views
Level editors compatible with MonoGame? [closed]
I'm thinking about a future project using MonoGame and it seems there are no level editors that outright support it, though obviously there are those for XNA that may possibly be compatible. So I ...
-1
votes
2answers
67 views
Loading a texture2D in a separate class using c# and xna [closed]
I have been adding a bunch of textures to my game in xna so i decided to make a separate class to load and draw the textures.
this is what i have so far
using System.Text;
using ...
1
vote
2answers
126 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. ...
0
votes
0answers
55 views
How can I efficiently store Vertex data in C#/XNA?
I am creating a terrain system using voxels in a somewhat minecraft-like style and I was wondering if there was anything I could do to increase the number of vertices I am able to store (and therefore ...
0
votes
1answer
53 views
Putting a 2d camera into a gamestatemanagement sample [closed]
Hello everyone i am new to xna and i am trying to implement a simple 2d camera that follows my sprite around the level i am using a gamestatemanagement so i have the basic platformer with screen ...
2
votes
2answers
188 views
Understanding marching cubes and voxel data relationships
in case it matters i'm doing all this in unity with C# ...
I think I missed something or maybe don't understand the logic correctly.
I have an existing voxel engine that looks very "minecrafty" at ...
1
vote
3answers
121 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 ...
-5
votes
1answer
89 views
camera2d class will not work [closed]
using System;
using System.IO;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using ...
11
votes
2answers
607 views
How to blend two cameras when traveling through a portal in Unity3D
Before I get to my question, I know the most obvious solution would be to use the normalized view port rect, however I need more complex shapes than a rectangle, and I've looked in to using the view ...
-2
votes
3answers
122 views
Can I use a list to spawn enemies? [closed]
I need to have about 10 enemies in my game, can I use a list to spawn them all in?
This is what I was working on but it only spawns 1 enemy in the coordinates of the last added to the list.
Here are ...