Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I'm new with C# programming, I always used Java. I'm trying to make a very simple version of a jumper (such as Doodle Jump) on Visual Studio and I created a WPF project. I need to know the best and the most common way to repaint the object on a canvas (like the player and the platforms, that are all rectangles), so that the objects keep to be updated (for example when I move the player etc.). Thanks in advance.
I suggest you take a look at transformations. One of the wonderful things about WPF is that you usually don't have to worry about the animation clock or repainting the screen when things change. To move something around the screen, like a rectangle, all you have to do is attach a transformation to it, then update the properties of the transformation. WPF's background rendering thread will automatically take care of the screen update. That article should get you started. Also check out Storyboards to do more elaborate animations.
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Let's say that someone decides to create a game without a game engine or library of any sort.
C# (or any popular language) is used
They have 2D sprites and 3D models with animations
They aren't sure of what IDE to use
Based on this information how would they get images displayed onto the screen?
I imagine that a console window would be out of the picture. (Pun intended)
Yes, a console window would be out of the question :)
You need to access the built-in Graphics API. On Windows computers, this is DirectX. On other operating systems, it is typically OpenGL.
Both APIs are very cumbersome, and are completely different. Without a library you typically have to be in C/C++ to use them.
As far as IDEs it depends on what you are developing for. Visual Studio is fine for windows, others you need to find something that compiles for it (probably using gcc). Anything will work, its just standard native code.
Good luck!
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I wanna make visual control for sliding between map and bottom panel like in the Here Maps for WP8. How is it made?
I believe it is custom made and it shouldn't be complicated to make one yourself. It consists of a panel that is higher than the screen and has a draggable upper part. You can track Manipulation* events on it and when user starts dragging upwards, you can use RenderTransforms to move the entire control up and down.
For smoother effect use animations to slide the upper/lower part into its place. You can easily construct such animations in code and apply them on the fly.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I want to make an applications that works like Word, Excel, Power Point etc... I mean if you maximize or change the window size to something different the program will always adjust the inside elements in a very nice way.
I'm creating a new "WindowsFormsApplication" in Visual Studio 2012 with C#
Thanx !!
Check out http://avalondock.codeplex.com/, it provides a Visual Studio style interface out of the box, and is very extensible.
Last time I checked it didn't support MVVM so well, but that might not be such a problem.
Dynamic resizing in WinForms is very easy, and most (if not all) of the behavior you want can likely be achieved simply by choosing the right controls and property settings.
To get started in the right direction, read up on the following topics:
Control.Anchor Property
Control.Dock Property
TableLayoutPanel Class
FlowLayoutPanel Class
It is easy enough to create a quick test app and drop some controls on it to see how they behave. No coding required.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I will apologize in advance if this appears vague. The problem I am having is that I am not certain how to properly articulate what I want to achieve into the correct question. I will try to describe my goal.
This is for a windows 8 tablet app. Imagine a set of rectangles across the top of the screen, much like piano keys. The user will drag a key down a little (I can do this). Then touching the top end of the rectangle they will drag their finger in a circle around it, as they do so the rectangle will fan out into an actual circle. Then when finished they would drag the top around the opposite way closing it. Sort of like one of those Japanese hand fans.
What do I search for or how do I phrase this in such a way that will point me in the right direction.
Thanks in advance, its maddening not being able figure out what I need search for.
My apologies, I should have phrased this question better.
To provide an answer to my query:
Shape manipulation of the type I am describing I believe can be accomplished a couple of ways. One possibility is through the use of animations. The other method (which I am currently pursuing) involves the use of the Polygon shape and the ManipulationDelta event. By utilizing the rotation event it is possible to adjust the points of the shape itself instead of applying the actual rotation.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm a student, I'm doing my final year project. It's for deaf students.
How can I create 3D human character?
How can I control that human characters movements via a vb or c# program
such as when I'm type in a text box "Right hand" The 3D model shod raise his/her right hand.
Are there any suitable libs for my need?
To my knowledge there are no libraries working on an abstraction level so high as you are describing.
I think you should look into some 3D game engines/libraries. I know that XNA is quite popular for C#. It is not as simple as importing a 3D model and telling it to raise its right hand though.
i would look into XNA
start off with 2d then move onto 3D
there are some excellent videos here
http://www.XNATutorial.com
you should be able to skip most of the theory lessons
you may also want to check out the first tutorial here as well
http://create.msdn.com/en-us/education/gamedevelopment
whilst its not technically a game you are developing the theory is the same
WPF is definetly the wrong approach for that because it has only a low performance if you use too complex models. It is also complicated to build 3D models in WPF.
As Yakyb and andvin said XNA would be a good choice.