Title: The 2D Game Engine (Scroller, like Pokemon)
Description: My game is a tile based game, where you control a man that walks around the screen. It was created for a school project. Before this project, I had never worked with VB.NET's GDI+ components. This project is created from scratch, and was inspired from http://www.vbprogramming.8k.com/tutorials/RPGProgramming.htm . Since VB.NET is relatively new, there are very few games for it. I found it quite difficult to create something with almost no other sources. I hope you enjoy and learn from this code, for it was quite difficult to write.
This program does not use external API's like other mini games I have seen. It uses the e.Graphics of a form. This program will teach you how to use classes, how to access a form from a class without creating a new one, and much more!
Changes:
Main change is the engine. I created a loop with doevents, invalidate, and sleep, whereas the old program would simply react upon pressing a button.
My game creates a bitmap in memory and prints the smaller tiles all to it, in the correct order and position as the map file shows. Instead of a loop to print each tile seperately every frame, it simply prints this one background once.
Instead of Passable TRUE OR FALSE tiles, I changed the map file to speeds, so that different tiles would make you walk different speeds, ie. tall grass (slower) and a street (faster).
Some smaller changes...
I would still like to thank the tutorials at vbprogramming (see link in text above). This code is not copy-pasted. It is created from scratch upon the ideas of another programmer.
Please vote! Thanks!!
This file came from Planet-Source-Code.com...the home millions of lines of source code
You can view comments on this code/and or vote on it at: http://www.Planet-Source-Code.com/vb/scripts/ShowCode.asp?txtCodeId=3576&lngWId=10

The author may have retained certain copyrights to this code...please observe their request and the law by reviewing all copyright conditions at the above URL.
