Jump to content

Bitmap Graphics resources


Recommended Posts

I am trying to design a card game and I thought AutoIT would be great way for me to prototype the game mechanics before I actually make the leap to creating the actual cards and artwork. I have some programming experience with AutoIT and some other languages, but I haven't done any programming that involves any kind of bitmap graphics, just the usual stuff with GUIs. In looking at the help files, I note that there are a lot of functions that start with _GDIPlus but I'm not really sure if I should delve into those, or if there's an easier/better way.

What I'm trying to do:

Basically, I want to open a window and fill it with bitmap tiles. Simple 16x16 pixel bitmaps that I'll create in Photoshop or something. My window might be 100x100 tiles wide so 1600 x 1600 pixels. I don't need to move the tiles, just reveal them based on user actions. Color would be nice, but the bitmaps could be b&w if that's easier. This is turn based, so doesn't need to be all that fast or anything.

Questions:

Are the _GDIPlus functions a reasonable approach to creating something like this?
Is there a resource(s) that anyone could point me towards that might be helpful so that I can teach myself how to code this?
Is there a better way? Like say, using a graphics library like the allegro graphics library?
Does anyone have some sample code I could take a look at?

Thanks in advance.

-Not sure how to get started...

 

Link to comment
Share on other sites

....

Does anyone have some sample code I could take a look at?

...

this doesn't use bitmaps, but still interesting to have a look as an example on how to use some _GDIPlus* functions.

https://www.autoitscript.com/forum/topic/131044-dice-and-cards-replacer/

 

image.jpeg.9f1a974c98e9f77d824b358729b089b0.jpeg Chimp

small minds discuss people average minds discuss events great minds discuss ideas.... and use AutoIt....

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...