VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



Complete GDI 2D Sprite class. (2D Game Devlopment?)

by Javin (3 Submissions)
Category: Graphics
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (11 Votes)

First, keep in mind that this uses Windows API and GDI only. No DirectX. It's certainly not the BEST method in the world for making a 2D game on a windows platform (DirectX would be your best bet) but this is an excellent tool for all 2D GDI work, whether that be manipulating images on the fly, or anything else requiring 2D GDI.
This has a massive amount of commenting in it, and was designed more as a tutorial, and started as a learning experience for myself. However, it is fairly well optimized, and I can do a full screen refresh (with animations) at 1024x768 with a framerate at about 530 FPS (RADEON 9600, AMD 1.5 gHZ) I would be interested in hearing about other people's framerates and system specs.
*** EDIT: After seeing some of the framerates with the "lower end" systems, I'm considering putting together a simple tile-based Legend Of Zelda type of example. If someone wants to beat me to it, feel free. ;) Also, if there's anything you'd like to see added, let me know. I'm not promising I'll add it (since this was really designed for my own personal use) but maybe I can give you an idea how to add it yourself, or if it's something useful to me too, I may end up adding it afterall. (Anyone got a good floodfill algorithm? Been considering adding gradient fills.)

Rate Complete GDI 2D Sprite class. (2D Game Devlopment?)

Download Complete GDI 2D Sprite class. (2D Game Devlopment?)

Download Complete GDI 2D Sprite class. (2D Game Devlopment?) (41 KB)

Complete GDI 2D Sprite class. (2D Game Devlopment?) Comments

No comments have been posted about Complete GDI 2D Sprite class. (2D Game Devlopment?). Why not be the first to post a comment about Complete GDI 2D Sprite class. (2D Game Devlopment?).

Post your comment

Subject:
Message:
0/1000 characters