VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

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

Javin  (3 Submissions)   Graphics   Visual Basic 5.0   Intermediate   Wed 3rd February 2021

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?) (11(11 Vote))

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

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

No comments yet — be the first to post one!

Post a Comment

0/1000 characters