News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

Creating a Game Using MASM with the Irvine Library

Started by beauharlan, August 28, 2024, 07:39:48 PM

Previous topic - Next topic

beauharlan

Hi, I need to create a game using MASM. Is there any tutorial on how to draw graphics and set screen size. Can I import images?

Thanks for the support.

NoCforMe

Pretty sure there are some graphics tutorials. Look in the examples folder of your MASM32 installation. If not, I/we can provide some assistance.

By "set screen size" I think you mean "set window size". When you create a window using the Windows API, you of course can set its size to whatever you want, up to the maximum screen size.

"Import images": the older, easier-to-use graphics API, called GDI, lets you open bitmap images (in .bmp format) and icons (in .ico) format. The later interface, called GDI+, knows how to open and display other formats: .jpg, .gif, .png. It's a little more complicated.

I would start with GDI and bitmaps to develop a working application.
Assembly language programming should be fun. That's why I do it.

zedd151

Quote from: beauharlan on August 28, 2024, 07:39:48 PMHi, I need to create a game using MASM.

topic title "Creating a Game Using MASM with the Irvine Library"

Are you actually looking to work specifically with the Irvine Library? Not many users here use it.


Else, there are some nice game examples in our Game Development sub forum which may help in your endeavours.
Are you looking to use 16 bit, or 32 bit,or 64 bit??
Do you have any prior experience in successfully writing programs in assembly language, or any other programming language? Are you a complete beginner?
Answers to these questions will help us to better help you, since we do not know otherwise. :smiley:
:azn:

jj2007

Quote from: beauharlan on August 28, 2024, 07:39:48 PMHi, I need to create a game using MASM.

... and the Irvine library. So this is homework, and there is a rule regarding homework. In plus, a library that nobody uses, for good reasons.

Use the forum search to find Irvine posts.

Vortex

#4
Hi beauharlan,

Handling bitmap images :

Tutorial 25: Simple Bitmap

http://www.interq.or.jp/chubu/r6/masm32/tute/tute025.html

NoCforMe

#5
Quote from: jj2007 on August 29, 2024, 03:37:12 PM... and the Irvine library.

Where do you get that from, JJ? The OP didn't mention it at all. Are you a mind reader?

Pardon me; I must be going blind in my old age ...
Assembly language programming should be fun. That's why I do it.

sinsi

Quote from: NoCforMe on August 29, 2024, 08:46:39 PM
Quote from: jj2007 on August 29, 2024, 03:37:12 PM... and the Irvine library.

Where do you get that from, JJ? The OP didn't mention it at all. Are you a mind reader?

Maybe the thread title?  :biggrin:

NoCforMe

OK (red face here). But still, does that automatically make it a homework assignment? (Which I agree we shouldn't be doing for anyone. Answer questions, sure, but we're not Chat GPT here, at the service of every student too goddamn lazy to do the work ...)
Assembly language programming should be fun. That's why I do it.

NoCforMe

To the OP: I can help you with graphics not using the Irvine library, which apparently is not the best tool in the toolbox ...
Assembly language programming should be fun. That's why I do it.