The MASM Forum

General => The Campus => Topic started by: beauharlan on August 28, 2024, 07:39:48 PM

Title: Creating a Game Using MASM with the Irvine Library
Post by: beauharlan on August 28, 2024, 07:39:48 PM
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.
Title: Re: Creating a Game Using MASM with the Irvine Library
Post by: NoCforMe on August 29, 2024, 10:00:23 AM
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.
Title: Re: Creating a Game Using MASM with the Irvine Library
Post by: zedd on August 29, 2024, 12:33:25 PM
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 (https://masm32.com/board/index.php?board=62.0) 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:
Title: Re: Creating a Game Using MASM with the Irvine Library
Post by: jj2007 on August 29, 2024, 03:37:12 PM
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 (http://masm32.com/board/index.php?action=search;advanced;search=) to find Irvine posts.
Title: Re: Creating a Game Using MASM with the Irvine Library
Post by: Vortex on August 29, 2024, 06:55:43 PM
Hi beauharlan,

Handling bitmap images :

Tutorial 25: Simple Bitmap

http://www.interq.or.jp/chubu/r6/masm32/tute/tute025.html (http://www.interq.or.jp/chubu/r6/masm32/tute/tute025.html)
Title: Re: Creating a Game Using MASM with the Irvine Library
Post by: 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?

Pardon me; I must be going blind in my old age ...
Title: Re: Creating a Game Using MASM with the Irvine Library
Post by: sinsi on August 29, 2024, 10:02:49 PM
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:
Title: Re: Creating a Game Using MASM with the Irvine Library
Post by: NoCforMe on August 30, 2024, 06:48:46 AM
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 ...)
Title: Re: Creating a Game Using MASM with the Irvine Library
Post by: NoCforMe on August 30, 2024, 07:01:42 AM
To the OP: I can help you with graphics not using the Irvine library, which apparently is not the best tool in the toolbox ...