so I'm making this 3D TTT game and I'd love to add a 3D interactive cube for live feedback, because the game as it is may be hard to grasp by greater audience.
I've chosen Visual Studio 2013 for my project and I write it in C#. The game looks like 7 isolated squares containing 7^2 buttons. My idea is to add a 7^3 cube of 343 cells for better navigation to the form. Obviously, each cell within the cube would have to be linked with each WF button.
So far I've spent goodly time on the internet and even my IT teacher was unable to provide this answer, so I come to you. Is there any way to do it?
You could try SlimDX: http://slimdx.org/ It is a free open source framework that enables developers to easily build DirectX applications using C#
OpenTK http://www.opentk.com/ is another option.
Related
I am new to xna!! I never used xna before. The Designer makes it easier to design where you want everything. I am just making a simple 2D Puzzle game for the PC, however I want to use an xbox controller to move the cursor and switch the blocks. I decided to try xna. I am new and lost. Can you help? I haven't started yet. I just opened it and wondering if I have to manually code all the images. or if I can just place them in a design view.
At this point, you need to look into MonoGame, it implements the Microsoft XNA programming interface.
XNA was for PC, Xbox 360, Windows Phone 7 and Zune.
XNA does not have a visual editor, however Unreal 4 and Unity do. I suggest these because you said "XNA Designer".
So im trying to develop a game in the XNA 4.0 framework in Visual Studio 2010, and I wanted to create a game that would have some sort of 3D hexagonal map. I've been researching, and i saw this video: https://www.youtube.com/watch?v=XgdraYpT9vU
This guy claims to have made this with just XNA 4.0 in Visual Studio, which is quite stunning(for me). So here is my question. You don't have to explain how to do it in here, as it would probably be WAYYY too long, but does anybody know a guide somewhere which I can reference in order to learn how to make this?
Even though you've tried to make question more specific it's still too broad (or too specific, from another angle).
I doubt there is specific guide how to make similar game using same tools. But it's easy to find information about individual aspects: game architecture, 3D [in XNA], hexagonal maps. For that matter there is very good resourse called Amit’s Game Programming Information. I think it have all information necessary for a start on any game.
I'm writing a tile editor for a game and would like to be able to select which level file to open. Once open I would load the level into an XNA window and click to add/remove tiles to the level. When the editing is finished I would save the file layout back to the original file.
Currently I don't see a way to integrate windows forms and XNA. Is this even possible?
When I was working on a small, "2.5D" isometric game in XNA, I found it worth while to also have a separate WinForms version that would just render a 2D top-down view using GDI. This was due to my inexperience with XNA and my (relative) comfort using WinForms.
This approach also had the useful side-effect of enforcing separation between logic and rendering code. It made it easier (for me, at least) to test changes without having to worry about how to deal with the XNA rendering aspects.
It may not be exactly what you had in mind, but it might be something to consider.
WinForms and Xna can cooperate, but it's not recommended to use Xna's built in Game class with WinFroms. There are two samples demonstrating it:
http://xbox.create.msdn.com/en-US/education/catalog/sample/winforms_series_1
http://xbox.create.msdn.com/en-US/education/catalog/sample/winforms_series_2
i am want to build some games,not something big like mmorpg ,games like snake and similar,maybe in future i would like to make a progress.
i built "pong" with xna before 3 month and left it without any progression.
now i want program games again and i search on the internet and got to 2 final best options
xna/unity3d.
which is better if i know c#?
tyvm.
Well, XNA Game Studio [GS] and Unity3D do not really compare as the former is “only” a framework and the latter a full fledged game engine with visual editor and stuff.
So, XNA GS would be the right choice if you want to do it all on your own, e.g. write your own graphics renderer, the game logic infrastructure (as opposed to writing the game logic only in Unity3D) and pretty much everything else.
Unity3D would be the better choice if you want to concentrate on the game play only without having to write a lot (or any at all) infrastructure code.
However, there’s another thing to consider: if you want your game to run on the 360 you might need to use XNA GS as Unity3D doesn’t seem to support Xbox LIVE Indie Games publishing. If you’re in it for a broad range of target platforms (e.g. outside the Microsoft realm), Unity3D is the better choice (Mono.Xna, while it returned from the dead, is still in a rather unusable state).
Disclaimer: I haven’t used Unity3D at all so my words about it may be totally wrong.
XNA is fully integrated into Visual Studio and is a "first party" product (as in Microsoft produces it). You also get relatively cheap access to running it on an XBox (a nice bonus).
Unity3d has the advantage of being multi-platform (such as their iPhone port).
I want to write a simple game like pacman in C# in order to learn
the new language.
However, I don't know how to make a circle move?
Which part of knowledge in C# is needed?
You should check out XNA Game Studio from Microsoft. It's a version of Visual Studio that's targetted especially for writing games. You use C# but get a lot of things for free - graphics, sound, timing...
Here's a tutorial for making a ball move in XNA.
The simplest way would be to move your circle a small bit with every tick of a timer control.
If you want to learn a new language stay away from all fuss and just look into the most essential parts.
Having knowledge about previous programming languages helps a lot, espesially if one of those are Java.
You don't need to look into XNA for this, all you really do need is to Start Visual Studio, create a new Windows Form, drag over an PictureBox and start playing with the KeyEvents.
Your game does not have to be awesome for you to learn the very basics of C# and .NET. And you certainly don't need to dig down in the deep jungle of XNA!
Once you have your form up and running with a PictureBox or two and you have conqured the Event-system, take a look at the other fundamental parts of .NET that makes your life easier. Properties, Generics, Data Sources and much much more.
Well, for a simple single player game like that, some of the most important things you need to know about are data structures and GDI.
Data structures are important because you need to store information such as what does a map look like? Where are the walls? Can you go from one end to the other? How does the map draw itself?
GDI is used in C# to draw. This uses the Graphics context. You'll find lots of examples online, and I'd suggest checking out BobPowell.Net GDI+ FAQ to avoid some of the common mistakes.
You probably want to look into XNA - http://creators.xna.com/
Simply download the studio, install, then run Visual Studio C# (mine is Express Edition).
So when you run, you create a new Windows Game Project and you've created your first game.
Good to read up some books and articles on XNA.
Book: Microsoft XNA Game Studio 2.0: Learn Programming Now! by Rob Miles.
if you mean how to move an object around in a circular movement, then you just need math knowledge:
int circlePosX = centerX + Math.Cos(degrees) * radius;
int circlePosY = centerY + Math.Sin(degrees) * radius;
radius is here how big you want the circle to be, and degrees is the position ion the circle the object is moving.
Here's an answer to a question about a radar-type game that demonstrates generally how to do this in C#/WinForms using GDI+ (with a sample and source code):
What would be the best way to simulate Radar in C#?