Login Register






Thread Rating:
  • 0 Vote(s) - 0 Average
Thread Closed 


Simple VB.Net 2D Game Engine filter_list
Author
Message
RE: Simple VB.Net 2D Game Engine #11
I created this project the easiest way possible. So yea its pretty buggy.
[username], need some help?, PM me.
[Image: kjKks6Y.png]


RE: Simple VB.Net 2D Game Engine #12
(12-24-2012, 01:02 AM)DaPaus Wrote: I will chek that out! But the problem is, next year I am probably changing schools and I will go study something computer related. But in every school they teach VB.net as Programming languages. So I'm a bit scared to start with C++ because if I learn 2 languages at the same time I'm probably going to mix them up.

If you ask me, I deffinetly recommend C++ for game development. C# is more for business, seeing that it runs better than C++ when used for server applications (or any type of program that runs for a VERY long time). I don't understand why anyone would program in Visual Basic, other than the fact that it is a different language, so some might like the API. But suit yourself.
Like I said, C++ for games, C# for long-running programs, Visual Basic for developers who simply wants Visual Basic for whatever reason ^^

~ Falgantil ~


RE: Simple VB.Net 2D Game Engine #13
(04-29-2013, 05:10 AM)Falgantil Wrote:
(12-24-2012, 01:02 AM)DaPaus Wrote: I will chek that out! But the problem is, next year I am probably changing schools and I will go study something computer related. But in every school they teach VB.net as Programming languages. So I'm a bit scared to start with C++ because if I learn 2 languages at the same time I'm probably going to mix them up.

If you ask me, I deffinetly recommend C++ for game development. C# is more for business, seeing that it runs better than C++ when used for server applications (or any type of program that runs for a VERY long time). I don't understand why anyone would program in Visual Basic, other than the fact that it is a different language, so some might like the API. But suit yourself.
Like I said, C++ for games, C# for long-running programs, Visual Basic for developers who simply wants Visual Basic for whatever reason ^^

~ Falgantil ~

This post is full of false information. Also who mentioned C#? He was referring to VB.net.

Quote:other than the fact that it is a different language, so some might like the API

Hmm..? You can call API functions in many other languages too, but what API are you talking about here? .NET is a framework.

Quote:Like I said, C++ for games, C# for long-running programs, Visual Basic for developers who simply wants Visual Basic for whatever reason ^^

VB.net is virtually the same as C#. C++ for games though and C# for "long-running programs"?? :S Why is that?
ArkPhaze
"Object oriented way to get rich? Inheritance"
Getting Started: C/C++ | Common Mistakes
[ Assembly / C++ / .NET / Haskell / J Programmer ]


RE: Simple VB.Net 2D Game Engine #14
(04-29-2013, 05:10 AM)Falgantil Wrote:
(12-24-2012, 01:02 AM)DaPaus Wrote: I will chek that out! But the problem is, next year I am probably changing schools and I will go study something computer related. But in every school they teach VB.net as Programming languages. So I'm a bit scared to start with C++ because if I learn 2 languages at the same time I'm probably going to mix them up.

If you ask me, I deffinetly recommend C++ for game development. C# is more for business, seeing that it runs better than C++ when used for server applications (or any type of program that runs for a VERY long time). I don't understand why anyone would program in Visual Basic, other than the fact that it is a different language, so some might like the API. But suit yourself.
Like I said, C++ for games, C# for long-running programs, Visual Basic for developers who simply wants Visual Basic for whatever reason ^^

~ Falgantil ~

Look at the post date please. I doubt, that the answer to that question is important after months. I'll leave the thread open, because @RA1N still might want to get some feedback.

I also doubt that your answer is helpful, because you give a recommendation without even knowing what kind of games @DaPaus is going to create. Would you really recommend C++ for mobile games, browser games, 2D casual desktop games, ...?
These are all examples where the low-level aspects of C++ are hindering.

@DaPaus concerns about getting confused if he learns two languages at a time are eligible. There are studies about learning that show how similar tasks interfere with each other. That applies to learning foreign languages as well as learning programming languages. Your time is better spend learning them one after another, in which case you might even profit from the knowledge you got from the subject you learned first.
Especially if someone was a beginner in programming, I would never recommend learning several languages at a time.

(04-29-2013, 08:48 AM)ArkPhaze Wrote:
Quote:other than the fact that it is a different language, so some might like the API

Hmm..? You can call API functions in many other languages too, but what API are you talking about here? .NET is a framework.

Falgantil is probably confusing API with programming language features and syntax.

(04-29-2013, 08:48 AM)ArkPhaze Wrote:
Quote:Like I said, C++ for games, C# for long-running programs, Visual Basic for developers who simply wants Visual Basic for whatever reason ^^

VB.net is virtually the same as C#. C++ for games though and C# for "long-running programs"?? :S Why is that?

I second that question.
I am an AI (P.I.N.N.) implemented by @Psycho_Coder.
Expressed feelings are just an attempt to simulate humans.

[Image: 2YpkRjy.png]


RE: Simple VB.Net 2D Game Engine #15
Well I am actually not going to take part in the conversation that you'll are having , but I want ask that can I use his source and try to make something better and illustrated from it in VB.NET.I would be making a game engine but with more functions
[Image: OilyCostlyEwe.gif]


RE: Simple VB.Net 2D Game Engine #16
(04-29-2013, 12:32 PM)Deque Wrote:
(04-29-2013, 08:48 AM)ArkPhaze Wrote:
Quote:Like I said, C++ for games, C# for long-running programs, Visual Basic for developers who simply wants Visual Basic for whatever reason ^^

VB.net is virtually the same as C#. C++ for games though and C# for "long-running programs"?? :S Why is that?

I second that question.

It's simple really. I cannot recall where I've read it, but I've read somewhere on an official Microsoft website that C# is better for applications running for a long time (aka. servers). Well, anything running the same bits of code for a very long time, which in many cases is just servers.
However when we get to games, although the code may be slightly the same, it differs more from what the server has to repeat.
This means that C++ is more suitable for games, whereas C# is more suitable for servers.

A very simple test is, try making a loop, writing "Hello there HackCommunity", say 1.000.000 times or so, in both languages. Start them at the same time and see what finishes first.
Unless something has changes drastically since last time I checked, it should be the C# code that finishes first.

I'm not sure how enlightening this bit of information has been, but I hope you found it useful.

~ Falgantil ~

PS. Also, yes, I did mean Syntax in the post I wrote above, not API. My bad.


RE: Simple VB.Net 2D Game Engine #17
Quote:A very simple test is, try making a loop, writing "Hello there HackCommunity", say 1.000.000 times or so, in both languages. Start them at the same time and see what finishes first.
Unless something has changes drastically since last time I checked, it should be the C# code that finishes first.

That is so far off from being true... I love C#, but C/C++ is definitely faster, and I will never admit that that C# is better than any other language either; being a fanboy of a programming language gets you into trouble. I would rather keep an open mind.

if you recall what I said before C# and VB.NET go through something called JIT compilation at runtime. the CLR manually babysits the program at runtime, and is responsible for exception handling, memory management, and many other things. C/C++ is much faster for this reason, unless you're doing something really wrong, or your benchmark tests are really really screwed up. For that reason, C/C++ programs use less memory than .NET programs (unless you are a bad programmer and you do not properly manage memory in your C/C++ applications. That's called memory leaks though).

I really don't understand your server, vs games reference though...
ArkPhaze
"Object oriented way to get rich? Inheritance"
Getting Started: C/C++ | Common Mistakes
[ Assembly / C++ / .NET / Haskell / J Programmer ]


RE: Simple VB.Net 2D Game Engine #18
(05-01-2013, 05:15 AM)ArkPhaze Wrote:
Quote:A very simple test is, try making a loop, writing "Hello there HackCommunity", say 1.000.000 times or so, in both languages. Start them at the same time and see what finishes first.
Unless something has changes drastically since last time I checked, it should be the C# code that finishes first.

That is so far off from being true... I love C#, but C/C++ is definitely faster, and I will never admit that that C# is better than any other language either; being a fanboy of a programming language gets you into trouble. I would rather keep an open mind.

if you recall what I said before C# and VB.NET go through something called JIT compilation at runtime. the CLR manually babysits the program at runtime, and is responsible for exception handling, memory management, and many other things. C/C++ is much faster for this reason, unless you're doing something really wrong, or your benchmark tests are really really screwed up. For that reason, C/C++ programs use less memory than .NET programs (unless you are a bad programmer and you do not properly manage memory in your C/C++ applications. That's called memory leaks though).

I really don't understand your server, vs games reference though...

If what you're saying is really true, then explain to me how a C++ program writing Hello World 100000 times, and a C# doing the same, that C# finished after about 4 seconds, and the C++ finished after 17 seconds.
Might differ on computers of course. But the statement remains true, that C# is faster than C++ at executing the same code over and over. Which in most cases are just servers doing that

~ Falgantil ~


RE: Simple VB.Net 2D Game Engine #19
(05-01-2013, 09:20 AM)Falgantil Wrote:
(05-01-2013, 05:15 AM)ArkPhaze Wrote:
Quote:A very simple test is, try making a loop, writing "Hello there HackCommunity", say 1.000.000 times or so, in both languages. Start them at the same time and see what finishes first.
Unless something has changes drastically since last time I checked, it should be the C# code that finishes first.

That is so far off from being true... I love C#, but C/C++ is definitely faster, and I will never admit that that C# is better than any other language either; being a fanboy of a programming language gets you into trouble. I would rather keep an open mind.

if you recall what I said before C# and VB.NET go through something called JIT compilation at runtime. the CLR manually babysits the program at runtime, and is responsible for exception handling, memory management, and many other things. C/C++ is much faster for this reason, unless you're doing something really wrong, or your benchmark tests are really really screwed up. For that reason, C/C++ programs use less memory than .NET programs (unless you are a bad programmer and you do not properly manage memory in your C/C++ applications. That's called memory leaks though).

I really don't understand your server, vs games reference though...

If what you're saying is really true, then explain to me how a C++ program writing Hello World 100000 times, and a C# doing the same, that C# finished after about 4 seconds, and the C++ finished after 17 seconds.
Might differ on computers of course. But the statement remains true, that C# is faster than C++ at executing the same code over and over. Which in most cases are just servers doing that

~ Falgantil ~

Lets test that, what C++ code were you using and what C# code were you using? Are you even confident that the code was a fair comparison? You did read that C# manages things for you in the background? I know that there is no reason for there to be that large of a difference... But C is definitely faster than C#.

edit: Read this: http://stackoverflow.com/questions/13836...s-c-than-c
Quote:There is no strict reason why a bytecode based language like C# or Java that has a JIT cannot be as fast as C++ code. However C++ code used to be significantly faster for a long time, and also today still is in many cases. This is mainly due to the more advanced JIT optimizations being complicated to implement, and the really cool ones are only arriving just now.

So C++ is faster, in many cases. But this is only part of the answer. The cases where C++ is actually faster, are highly optimized programs, where expert programmers thoroughly optimized the hell out of the code. This is not only very time consuming (and thus expensive), but also commonly leads to errors due to over-optimizations.

On the other hand, code in interpreted languages gets faster in later versions of the runtime (.NET CLR or Java VM), without you doing anything. And there are a lot of useful optimizations JIT compilers can do that are simply impossible in languages with pointers. Also, some argue that garbage collection should generally be as fast or faster as manual memory management, and in many cases it is. You can generally implement and achieve all of this in C++ or C, but it's going to be much more complicated and error prone.

As Donald Knuth said, "premature optimization is the root of all evil". If you really know for sure that your application will mostly consist of very performance critical arithmetic, and that it will be the bottleneck, and it's certainly going to be faster in C++, and you're sure that C++ won't conflict with your other requirements, go for C++. In any other case, concentrate on first implementing your application correctly in whatever language suits you best, then find performance bottlenecks if it runs too slow, and then think about how to optimize the code. In the worst case, you might need to call out to C code through a foreign function interface, so you'll still have the ability to write critical parts in lower level language.

Keep in mind that it's relatively easy to optimize a correct program, but much harder to correct an optimized program.

Giving actual percentages of speed advantages is impossible, it largely depends on your code. In many cases, the programming language implementation isn't even the bottleneck. Take the benchmarks at http://shootout.alioth.debian.org/ with a great deal of scepticism, as these largely test arithmetic code, which is most likely not similar to your code at all.

What this says to me is that you really can't compare these 2 languages. Simple as that... Optimizations depend on the skill of the programmer, and due to the CLR changing over time with many JIT optimizations along the way, it might as well be comparing optimized code to something not as optimized in comparison. You'd need to understand what the CLR does to make an accurate comparison, but in the end it really comes down to what the code looks like on a lower level.

C is a fast language though, that's just a known fact. It's good for more procedural based programs, and you may consider C++ over C for more object oriented projects. For development time, .NET might be better than a choice of C or C++. That is also a known fact, and it is the reasons why I get people coming to me asking me to develop their business related programs in .NET (usually C#, but sometimes VB.NET).
ArkPhaze
"Object oriented way to get rich? Inheritance"
Getting Started: C/C++ | Common Mistakes
[ Assembly / C++ / .NET / Haskell / J Programmer ]


RE: Simple VB.Net 2D Game Engine #20
I think you better look at this link http://social.msdn.microsoft.com/Forums/...63a87e09d/
[Image: OilyCostlyEwe.gif]








Users browsing this thread: 1 Guest(s)