Being a first-year student, after getting acquainted with the events and the basics of working with Windows Forms, I received a task to write a game in C #. The following question arose: is it possible to write a simple 2D shooter (top view), working only with Windows Forms? If yes, then it would be nice to dig up some examples of implementations.
Closed due to the fact that the question is too general a participant Nicolas Chabanovsky ♦ 8 May '16 at 8:02 .
Please correct the question so that it describes the specific problem with sufficient detail to determine the appropriate answer. Do not ask a few questions at once. See “How to ask a good question?” For clarification. If the question can be reformulated according to the rules set out in the certificate , edit it .
- Can. Write! And do it yourself if you want to learn something. - Kromster
- (1) It is possible, easy. (2) This is quite a lot of debugging work, although you can easily keep up with a hundred lines. Write yourself. - VladD
- I understand what you need on with #, but if you decide to do for yourself, then go to with ++ and OpenGL. I advise the channel on YouTube - "MakingGamesWithBen", about 80 sensible lessons, step by step will teach you not only the basics of the advantages, but also 1D games, 2D games ... engines. Sorry, the author is no longer doing video lessons ... Got a job in Guild Wars 2 ... There will be no 3D campaign anymore Q_Q - Little Fox
1 answer
Of course you can. Only examples, most likely, will have to search in Google for a long time, because current igrodely lazy to ugliness and prefer to use ready-made engines and frameworks. Although from a business point of view, this is probably correct, but it gives rise to a lot of similar games that differ only in skins.
And now in the case:
No matter what graphics engine you will use. Pure DirectX or OpenGL, Unity or UE4, WinForms or WPF, the only difference is how much additional work will be required to adapt the finished engine or add functionality to the "clean" platform to implement your idea.
Immediately, at the stage of thinking, separate the model of the game and its visualization. so that it would not be painfully painful to add new features, test and fix bugs. The logic must be separate, the graphics - separately.
If you want to write a game - just start writing it. Do not look for ready-made solutions and do not be afraid of mistakes. A negative result is better than a dozen positive, because after failure, experience and knowledge remain.
All of the above is a purely personal opinion.
- I completely agree! It is important to just start doing something. And already along the way you will have questions on the implementation of a particular function, the answers to which can be found either on the Internet or from friends, or even maybe a teacher at a university tell you something. Even if the first time the game turns out so-so in terms of implementation in the next. since you can take into account all the problem areas of the previous implementation and make the new game much better. - Yankov Viacheslav