9/18/2023 0 Comments Visual basic code maze gameI had the concept of numbering the "rooms" you can see from your vantage point as 1, 2, 3 & 4 with 1 being the closest. Please feel free to adapt the code to VB.NET, if you dare. The zip file has the executable and the complete source code for the program. The screenshot below shows the editor with a few walls clicked. When you click they change from white to black, or back again, to indicate the walls you want. It is a simple point and click interface using some very skinny command buttons. I included a level editor so people can make their own levels. If you press M you get a 3 second view of the entire maze map as shown below. The com changes direction and there is an unfilled map with a dot to show your location. The result came out well though.Ībove is a screenshot of the beginning using a pre-made maze level. Filing the triangles was trickier, having to draw a series of lines to fill them. Filling the rectangles was easy using bf (box fill) instead of just f (fill). I had to use rectangles and triangles to make the walls look angled. I tortured myself for days plotting on graph paper the points for the walls. It's a simulated 3D maze game with an editor to make new levels. My computer died in 2011 and I was forced to use my ancient 900Mhz P3 computer and wrote things in Java and VB6 for a while, since Visual Studio 2008 said it wouldn't run on it. Ok, first off this is not actually VB.NET.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |