I tried a demo of a scrolling game...it was awful. I think VB is more suited towards IT systems. I used to be a database programmer, but want to make a scrolling game. Do you think, seeing as you're here, that DirectX and/or XNA with either VB6 or VB.net would be a good choice? I don't have any hope of a very graphical game working well with Vanilla VB6.
If you are wanting to write a game with a decent level of graphics support then you will definitely want to consider DirectX / OpenGL to deal with the graphics rendering.
XNA is an older approach to using DirectX with dotnet apps, https://monogame.net/ effectively continued what XNA started however. Most of the monogame samples are in C#, but VB.Net is certainly usable. I made a post at https://www.vbforums.com/showthread....=1#post5634191 with a very basic example of using monogame.
Monogame is a fairly low level toolkit, if you are after something higher level then https://godotengine.org/ might be worth a look - version 4.0 supports c# (not vb.net as far as I am aware)
You will be limited if you use Visual Basic, probably more so in VB6 than in VB.NET.
The last supported version of managed DirectX in VB.NET was version 9 (I think) and XNA was last supported in .NET framework 3.5 although I think they provided continued support for C# (which is basically the "C" based language equivalent of VB.NET) in later versions of the .NET framework but not .NET core.
However, it is worth mentioning that simple scrolling games can probably be done sufficiently enough using GDI (VB6) or GDI+ (VB.NET) assuming they don't get too heavy. For example, I think you mentioned on my GDI+ scrolling background submission that you wanted to build a flappy bird recreation, and that is certainly light enough to be handled by GDI+. The game loop would look something like this:
Check for collision detection
Against the top/bottom of the screen
Against any of the pipes
Scroll the background
Update the y position of the bird
Update the x position of the pipes
(optional) Update the y position of the pipe if you want them to move up and down (like in later levels)
This is trivial enough that GDI+ can more than handle this workload without any lag or buffering issues.
You will be limited if you use Visual Basic, probably more so in VB6 than in VB.NET.
The last supported version of managed DirectX in VB.NET was version 9 (I think) and XNA was last supported in .NET framework 3.5 although I think they provided continued support for C# (which is basically the "C" based language equivalent of VB.NET) in later versions of the .NET framework but not .NET core.
However, it is worth mentioning that simple scrolling games can probably be done sufficiently enough using GDI (VB6) or GDI+ (VB.NET) assuming they don't get too heavy. For example, I think you mentioned on my GDI+ scrolling background submission that you wanted to build a flappy bird recreation, and that is certainly light enough to be handled by GDI+. The game loop would look something like this:
Check for collision detection
Against the top/bottom of the screen
Against any of the pipes
Scroll the background
Update the y position of the bird
Update the x position of the pipes
(optional) Update the y position of the pipe if you want them to move up and down (like in later levels)
This is trivial enough that GDI+ can more than handle this workload without any lag or buffering issues.
OK. That's a good answer. I'll use the GDI just to create a demo. Can you put VB.net 9 on with a recent version of VB.net which I put on a few days ago now, incidentally? With reference to DirectX?
I'm sorry, I'm having a bit of a difficult time understanding your question. Are you asking for a DirectX9 example in VB.NET?
If so, then you will need the DirectX SDK: https://www.microsoft.com/en-us/down...s.aspx?id=6812 and unfortunately I think you're limited to the .NET framework 3.5 (keep in mind that this version was released in 2010). So I couldn't provide you an example of a "recent" version of VB.NET.
I'm sorry, I'm having a bit of a difficult time understanding your question. Are you asking for a DirectX9 example in VB.NET?
If so, then you will need the DirectX SDK: https://www.microsoft.com/en-us/down...s.aspx?id=6812 and unfortunately I think you're limited to the .NET framework 3.5 (keep in mind that this version was released in 2010). So I couldn't provide you an example of a "recent" version of VB.NET.
I was curious about DirectX, as I want to move onto that after trying the GDI programming with VB. So is it easy to go back to .net 3.5, is basically what I'm asking. Sorry if my questions weren't clear, I'm quite the newbie again. Like I said, basically the last thing I created was a database app back in the nineties, and early 00s. VB was just great for that purpose, which is why I'm not giving it up. It fits in with my philosophy of a paperless business sphere. All work and no play makes Jack a dull boy.
BTW that insect in your signature is incredibly irritating. I thought it was an insect under the screen of my phone!
Last edited by ArthurDent; Jun 7th, 2024 at 02:04 PM.
I was curious about DirectX, as I want to move onto that after trying the GDI programming with VB. So is it easy to go back to .net 3.5, is basically what I'm asking.
Yeah, it's fairly easy. I'm not sure what version of Visual Studio you're using, but the process is likely similar for most.
Open Visual Studio
Go to Tools > Get Tools and Features
Open the Individual Components tab
If .NET Framework 3.5 isn't selected, then check it and install
Then to create a new project that targets the framework:
Download the DirectX SDK from the link in post #5
Run the DirectX SDK executable
Install the necessary stuff (I usually exclude the samples and source code)
Open Visual Studio
Create a new Windows Form Application (.NET Framework)
Select .NET 3.5 as the project's Framework
After the project is created, go to Project > Add Reference
Go to the Browse tab
Add the DirectX DLLs (probably just Microsoft.DirectX and Microsoft.DirectX.Direct3D), they are typically installed in C:\Windows\Microsoft.NET\DirectX for Managed Code
I tried a demo of a scrolling game...it was awful. I think VB is more suited towards IT systems. I used to be a database programmer, but want to make a scrolling game. Do you think, seeing as you're here, that DirectX and/or XNA with either VB6 or VB.net would be a good choice? I don't have any hope of a very graphical game working well with Vanilla VB6.
Apologies if this is the wrong forum!
XNA is pretty much dead. VB.Net only uses up to DirectX 9.0c last time I checked. And VB6 uses up to DirectX8, although there are hacks to get DirectX9 working without HLSL shaders sadly. Keep in mind, we are at DirectX12 now. And even if you are moderately good at working with DirectX, it can become a royal pain hard coding your games, setting up polygons and textures, and that is not counting special effects, collisions, animations, etc. People now and days, even professionals, have moved on to Unity and Unreal Engine. Although I personally believe Unity is easier. It has made game creation a breeze and seamless so developers can focus on gameplay aspects rather than hardcoding every little thing. It's also what I moved on to. I use to be a DX nut back in the day. You can tell by my elaborate projects in my contributions down below. But then Unity blew my freakin' mind. The Unity IDE (not the Hub) connects with Visual Studio automatically allowing you to use C#. Think of it as VB.Net with very minor syntax differences and semicolons if you never used it before. There's not that much of a learning curve, has built in physics / collision / animation, supports 2D and 3D, can do ray tracing, and is multiplatform! Which means you can export your finished projects to not only PC, but Mac, iOS, Android, PS4, PS5, XBox Series S, XBox Series X, Nintendo Switch, Meta Quest 2, Meta Quest 3, etc. And it is capable of doing VR and AR. Just to give you some examples, I will share some screenshots as well as a YouTube video of mine of what Unity is capable.
Dark Silence was a good demo, thanks for showing me. Im going to try GDI+ for a bit as I think it'll be the fastest way to get where I want. Do you think GDI will handle an animated sprite, and scroll smoothly, it's just for a demo/joke game?
I didn't want to just forget my VB coding skills when it's OK for Windows and retail applications. What do you think about Visual Basic?
Yuck GDI+ lol. I mean, for a new comer, it's good to learn graphics programming through that, but eventually, you'll hit a brick wall and realize it is severely limited. It uses a mix between software and hardware rendering. And personally, I believe DirectX rendering is much prettier. According to https://learn.microsoft.com/en-us/wi...rect2d-and-gdi:
Code:
Existing GDI code will continue to work well under Windows 7. However, when writing new graphics rendering code, Direct2D should be considered, as it takes better advantage of modern GPUs.
But, the problem is, is that you are going to be focusing on a lot of hard coding every little basic part of the game that is not gameplay. This is why I recommended Unity because it takes that part out allowing you to focus on gameplay elements. It makes it a lot easier to get a game going. A hell of a lot!
What do I think of Visual Basic? Although I used VB6 and VB.Net the past couple of decades, I found C++ and C# to be my go to programming languages personally. They both have a lot more support and there is a bigger community. Majority of the software engineer job postings out there that is not web dev require you know C++, C#, Java, and Python. VB I feel, although I know it can be capable of doing a lot, is losing support and there is a lack luster of careers in it when compared to other languages and technologies.
But, lets set careers aside. If you go on Coursera which has nearly every coding language, technology, and concepts you can get certified in, and you type in VB.Net, there are literally only two measly courses: Creating a Simple Desktop App, and Explore Variables and Data Types. It's as though nobody is using VB any more and everyone is doing Python and Javascript instead because of its ease of use. Take a look at these stats of the most commonly used programming languages of 2023: https://www.statista.com/statistics/...sed-languages/
I'd recommend Coursera as well but you gotta pay 60 bucks a month for it, although I believe the first month was just a buck I believe. I also forgot to mention that Dark Silence demo took me only 4 months for Software Engineering class in college.
[Edit] Ms Pacman took me 24 hours for a Hackathon
Last edited by Jacob Roman; Jun 8th, 2024 at 12:34 PM.
You're really good. I'm inspired by the 16bit era, especially the Amiga. I have an Amiga mini and a dongle to connect old joysticks to it. I've just purchased a Speedking, but haven't received it yet. I just hope it's not broken, taking them apart is a pain.
You're really good. I'm inspired by the 16bit era, especially the Amiga. I have an Amiga mini and a dongle to connect old joysticks to it. I've just purchased a Speedking, but haven't received it yet. I just hope it's not broken, taking them apart is a pain.
All I did on it mainly was game hardcore LOL. This btw is the best Amiga song ever from Turrican 2.
Hey Jacob. I've got a query you might be able to help with. Does Visual Studio come with MSDN documents, and is it free? I'll be wanting to use C# with it. Thanks.
This right here. Get the Community Edition (Free) to use with Unity and, this is completely optional, Visual Studio Code which has nearly every language in existence if you wanna learn a lot more programming languages and use other technologies. I use VS Code for stuff like Kotlin, HTML5, CSS3, Javascript, Python, Go, and Rust just to play around with it lol.
Thanks very much. Who says kindness is dying. I'm just watching The Day the Earth Stood Still, so feel very alien. Just patiently waiting on my C# stuff, and break in my leg pains. Yeah, that's great. Thanks to you,Jacob, too.
Re: film. There wasn't much wrong with the original film, this one has Keanu Reeves. He comes to destroy us, mind already made up, unlike the first one, if I remember right. (Bah, let's call in Turrican! Alien scum.) Ha, ha, ha.
Last edited by ArthurDent; Jun 9th, 2024 at 01:15 PM.
What you are gonna love about Unity is that its more hands on and a lot less coding. So you don't need to worry about hardcoding rendering, physics, collisions, etc. It's all done for you. All the rest of your code will just be the gameplay. Here's a FreeCodeCamp beginner friendly tutorial just for you: