Advertisement
ASP_Volume3 Games #62551

The 2D Game Engine (Scroller, like Pokemon)

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!!

AI

Riepilogo AI: This codebase represents a historical implementation of the logic described in the metadata. Our preservation engine analyzes the structure to provide context for modern developers.

Codice sorgente
original-source
Upload
Commenti originali (3)
Recuperato da Wayback Machine