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.
Related
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.
I'm trying to dip my toe into game programming, C# is the language I'm most comfortable with and what I want to use.
I've purchased a book and it's very good with the basic concepts but it's using GDI, bitmaps and sprites. I'm no artist and I'd like to concentrate on game play rather than eye candy, I'm more than happy with 'Dwarf Fortress' style of presentation.
DF doesn't seem to be a Console app (to my untrained eye). My question is can I access this 'graphic mode' from C# and if so how? Any tips links tutorials would be very helpful and appreciated.
Writing a 2D game in C# is actually very simple. Try with XNA. A simple tutorial that got me started with 2D was this...
http://create.msdn.com/en-US/education/tutorial/2dgame/getting_started
It basically covers a simple 2D side scroller but what you get from the tutorial will be useful in your DF like game. It requires you to create some graphics but like you said, those graphics need not be fancy. Drawing simple sprites will be easy enough.
Console games are a great way to enter the game making business or hobby, once you are very comfortable with c#, try to go to xna or unity. Xna is not being developed anymore and I don't find it very pleasant and prefer unity over it, but many people differ from me so please try it out for yourself. Unity is a 2D and 3D game engine wit a free and paid version. It can be complicated at first but very well made. You can develop in c# and many more languages with unity and it is a lot more flexible than xna.
Which technology to choose, that gives me the possibility to draw a 3d human in browser, with tricks like move the body with mouse, with less cpu use.
Thank in advance.
Silverlight 4 is not as competent in 3d rendering as Flash is.
Having said that, Silverlight 5 will have greater support for 3d thanks to its XNA integration
EDIT: It seems I was rather fast to judge - the official 3d support fo flash (aka molehill) is still under incubation, but flash still has some impressive community-based libraries for 3d still making it (IMO) the more mature solution (Add to that it's larger cross-platform and user support).
This depends on what is a target market of your program.
Silverlight: is C#, 3D modelling is possible, there is even port of Silverlight of Mono MoonLight, but basically yuo should consider that your clients in this case will be Windows OS owners, and considering a OSes destribution information from Os destribution worldwide, you're on winner train.
So looking on your tags: C#, I would say go for Silverlight.
There is another really good product for 3D in browsing, like WebGL, but it's currently not supported of IE, for security concerns, which doesn't mean that will not be supported in future, but.. you know, for now it's not. Here is explanation: Microsoft not going to support WebGL. If you are ready to say "no" to IE (at least for now), it's a good choice.
So for now, I personally, would suggest to use Silverlight 3D. Just google "Silbverlight 3D samples" and you will be given plenty of samples available on inetrnet.
EDIT
Good comparing article on CodeProject
Hope this helps.
Regards.
Flash doesn't really have 3D graphics support, although there are a couple of libraries available. Silverlight also doesn't do 3D. So, really, the answer is "none of the above work all that well."
If you're willing to force your clients to use a current browser, you can use HTML5 and WebGL to render 3D objects without too much trouble.
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#?