News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

2D Game library compatible with MASM32

Started by LithiumDex, January 04, 2007, 11:17:04 PM

Previous topic - Next topic

LithiumDex

I'm going to do some more research on this, but does anyone know of the best one too use?

I'm going to look on the Allegro site in a minute...

Tedd

Any that provides suitable dlls or lib files to link against can be used - though a certain amount of work might be required to create inc files to allow easier usage (if they haven't already been created, which is usually ::))
No snowflake in an avalanche feels responsible.

stanhebben

What do you mean by 2D game library?

If you want to create a game, you can do the following:
- Create a window that covers the screen
- Set the the display resolution, if you want (use EnumDisplaySettings and ChangeDisplaySettings)
- Draw your content in that screen

LithiumDex

Well I suppose TinyPTC would do the graphics part, although I'd have to write all the primitives and blitting routines myself, a game library should atleast consist of:
- graphics routines
- input routines

And it would be nice if it had sound routines

My other option is to write a wrapper for OpenGL that behaves like 2d graphics routines, which would give some nice looking/fast running results.

stanhebben

I have two small libraries that could be of use. The first is a PNG reader, and the second a drawing library. Both support alphatransparency.

They are not yet documented, but I'll post them soon.

LithiumDex

That could be useful. One other thing a game programming library must have: a high precision timer, I forgot to mention this, but it's definitely necessary.

daydreamer

look for Ultranos 2d game lib in asm and his dx9 accelerates 2d

TNick


ToutEnMasm

Hello,
I see no link to download anything ?
                   ToutEnMasm

TNick

You must register there to be able to download


Nick

Mark_Larson

  I highly recommend checking out SDL.  It includes a lot more features.  I am using it in my raytracer which is 2D, so I can get it to run under both Windows and Linux.  One of the things that they don't mention below is that you can also launch threads through their own thread API which works under Linux and Windows.  You can have one thread doing physics and the other doing graphics.  Or split up your graphics job over multiple threads.  Here's a URL and a cut and paste from their main page.

URL:
   http://www.libsdl.org/index.php

Quote
Simple DirectMedia Layer is a cross-platform multimedia library designed to provide low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D video framebuffer. It is used by MPEG playback software, emulators, and many popular games, including the award winning Linux port of "Civilization: Call To Power."

SDL supports Linux, Windows, Windows CE, BeOS, MacOS, Mac OS X, FreeBSD, NetBSD, OpenBSD, BSD/OS, Solaris, IRIX, and QNX. The code contains support for AmigaOS, Dreamcast, Atari, AIX, OSF/Tru64, RISC OS, SymbianOS, and OS/2, but these are not officially supported.

SDL is written in C, but works with C++ natively, and has bindings to several other languages, including Ada, C#, Eiffel, Erlang, Euphoria, Guile, Haskell, Java, Lisp, Lua, ML, Objective C, Pascal, Perl, PHP, Pike, Pliant, Python, Ruby, and Smalltalk.

SDL is distributed under GNU LGPL version 2. This license allows you to use SDL freely in commercial programs as long as you link with the dynamic library.

BIOS programmers do it fastest, hehe.  ;)

My Optimization webpage
htttp://www.website.masmforum.com/mark/index.htm