Skip to main content
The 2025 Developer Survey results are in. Explore insights into technology and tools, careers, community and more. View results.

Questions tagged [xna-4.0]

XNA Game Studio 4.0 is a programming environment that allows you to use Visual Studio to create games for Windows Phone, the Xbox 360 console, and Windows-based computers.

0 votes
0 answers
98 views

XNA games C# application executable work on one win7 not the other one

Our company wrote a game in XNA studio 4 almost ten years ago. we try to reinstall it in win7 with only the executable. Both installed XNA Game Studio 4.0. Below is the environments parameter I can ...
sandy's user avatar
  • 1
0 votes
1 answer
1k views

MonoGame/Xna gamepad inputs and joystick

I've been around xna game development since very recently, and I'm actually developing a sort of Library for my games. But then I want to make an enemy with default Player settings for keys layouts ...
Loé B.'s user avatar
  • 35
1 vote
1 answer
2k views

Handling input from an ECS input system into actions in another system/actions on a entity?

Some background on my engine, each system stores a reference to an entity which has the relevant components for that system. For example movement system has only entities which possess position ...
Yrrah98's user avatar
  • 13
0 votes
3 answers
802 views

XNA Rotate Vector2 around Origin

I have a Rectangle and a Vector2 position, my sprite is being drawn at this position. The rectangle is meant to be a collision system with the cursor, when I rotate my sprite around the origin and ...
vK31RON's user avatar
  • 11
2 votes
2 answers
610 views

How do you write Texture2DContent and read it as Texture2D in the XNA content pipeline?

I'm trying to create a custom Monogame content pipeline extension that packs a bunch of individual sprites into a single sprite. I need help figuring out how to write and read the texture in the ...
Scott Lin's user avatar
  • 131
1 vote
2 answers
98 views

XNA: Classes with Texture2D to be treated as one

Summarised Problem: I have an Animation class that I want to be able to treat as a Texture2D field when need be. I do not ...
sfbea's user avatar
  • 13
0 votes
0 answers
731 views

XNA 4.0 C# How to draw cube with the index method

EDIT NOTE: I was trying to impliment indexing to my code instead of instancing. I left the indexing method because in my case, I don't need to use it. Preview Untill now I have drawed my cube with ...
Omer Eliyahu's user avatar
1 vote
1 answer
355 views

XNA 4.0 How to combine triangles vertices 3D

Preview for the problem: I'm making a similar game to Minecraft (a game that it's world is made by cubes), but the fps of the game is getting low only by rendering a little amount of cubes in the ...
Omer Eliyahu's user avatar
0 votes
1 answer
356 views

XNA 4.0 How to change GraphicsDevice Default DepthStencilState Value

I want to change one of the deafult values of my GraphicsDevice to that: GraphicsDevice.DepthStencilState.DepthBufferEnable = true; But I know only to change it ...
Omer Eliyahu's user avatar
-2 votes
1 answer
316 views

What is a Linker Map Address ()

I need to know how to execute a linker map address and use a draw method in xna 4.0 to for example in c# My subfolder has this in it textures models sounds ui scripts shaders linker map address <...
John Nay's user avatar
0 votes
1 answer
166 views

Monogame Effect World Translation Z and alpha in objects not visible behind

I have an effect in each triangle and rectangle: In the triangle class I have: ...
Juan Pablo Garcia Coello's user avatar
0 votes
1 answer
602 views

Xna Spritefont from installed fonts

I am using Spritefont in my game and I have downloaded a .ttf font and installed it on my machine. I am now using this font in my game. My question is if this game is run on another machine will the ....
Mike Irish's user avatar
0 votes
1 answer
365 views

Reading a text file and changing each digit into a value inside an array c#

I'm having a bit of an ordeal with the StreamReader. I'm working on a game where you build the map with a 2D array by imputing different numbers so the array like this: ...
Pavvel's user avatar
  • 29
1 vote
2 answers
439 views

When drawing text, numbers appear as D1 or NumPad1 rather than just numbers

Been writing a class for a main menu, there's a play button and when pressed it goes to a window that asks for coordinates, sadly when writing with the keys and using the numbers the output is either ...
Pavvel's user avatar
  • 29
1 vote
0 answers
118 views

XNA Displaying/Drawing from a text file [closed]

I wrote this code in the Load Content of XNA 4.0 for reading the star map, after actually adding it to my content, and I have no idea how to write/draw it onto my application, any suggestions? ...
Pavvel's user avatar
  • 29

15 30 50 per page
1
2 3 4 5
46
close