flat assembler
Message board for the users of flat assembler.

Index > Windows > Next 'Windows Game programming for Dummies' EX ready!

Author
Thread Post new topic Reply to topic
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 27 Oct 2004, 17:01
The next installment of the 'Windows game programming for dummies' is ready.
And now you can download at: ftp://68.225.35.57/
We now have direct input examples, enjoy!
filename: fasmw-WGPFD 14.0.rar

I'm going to focus on the FASM DirectX libary for right now (and bug fixes for the current examples), cleaning up the code, updating ALL older examples to use the 'FASMDX.DLL' library, optimizing (and improving) the 'FASMDX.DLL' library to the best of my ability, adding the new functionality (and the second part of the GPDUMB library) of the past few example sets, and finally do a full update of the documentation with some examples. The rest of the Game programming for dummies examples (and two bonus chapters not in the book) are updates of old games using the new library functionality, some simple AI (Artificial Inteligence) and physics examples and a new game or two.

One last thing, Idon, hopefully these examples work for you because I had to use the directInput8 method for these examples to work. I tried to use lesser versions but the examples crashed when i did. Maybe later on I'll try and find out what is causing the trouble, but for right now I couldn't.

Take Care,
MadMatt

_________________
Gimme a sledge hammer! I'LL FIX IT!
Post 27 Oct 2004, 17:01
View user's profile Send private message Reply with quote
asmdemon



Joined: 18 Jan 2004
Posts: 97
Location: Virginia Beach, VA
asmdemon 28 Oct 2004, 03:17
remember, you may also download the file from http://www.asmdemon.com/
Post 28 Oct 2004, 03:17
View user's profile Send private message Visit poster's website Reply with quote
metalfishx



Joined: 30 Sep 2004
Posts: 65
Location: Florida, Uruguay
metalfishx 28 Oct 2004, 12:52
Hey..
Looks really good! im just trying to start to learn DX programing with fasm... (im a DarkBasic Pro Programer, hehe, what a diference Smile )
Is there a way to no use external dll's ? just to generate an exe ?

Thanks!

_________________
---------------------------------------
Roberto A. Berrospe Machin
Ruta Internet, Florida Uruguay
---------------------------------------
Post 28 Oct 2004, 12:52
View user's profile Send private message Visit poster's website Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 28 Oct 2004, 21:33
Hello metalfishx,
Thanks!, Yeh, I was new to windows programming too when starting these examples, but not 32-bit assembly language. Smile The examples up to chapter 11 use directx directly, but use an older, not so windows friendly DLL for memory clearing, string copying and printing, random numbers, etc. And the chapters following use a much more windows friendly DLL for the above and DirectX functions. The reason I use a DLL for the latter chapters, is because the book uses a library in the same way. The only difference is that his library is included when the source is compiled, and I decided to convert this library to a DLL to greatly reduce code size, and to learn how to make a windows DLL myself Surprised . I have include the FULL source to the fasmdx.dll, if you want to have a look at how to make a DLL, and how I (and the book) make DirectX and other funtions work in a library. The only down side is that comments in the DLL source are very few indeed. And right now I'm going to add the second part of the books library (DirectInput, DirectSournd), more generaly purpose functoins, much better commenting, better functionality for existing functions and new functions, optimizations, etc. Shocked Wink
So that's the story, and plans for now and the immediate future.

Enjoy the code Exclamation
MadMatt Twisted Evil Exclamation

P.S. Darkbasic is still around? It's been about two years since i've tried that basic. I'll have to try another byte Rolling Eyes .
Post 28 Oct 2004, 21:33
View user's profile Send private message Reply with quote
metalfishx



Joined: 30 Sep 2004
Posts: 65
Location: Florida, Uruguay
metalfishx 29 Oct 2004, 02:55
Hey, thanks for the answer.. Smile
Well, about darkbasic, yes, is still alive Smile www.thegamecreators.com, even, i have db pro full original Wink, Even included, i have created some dll plugins for dark basic Very Happy hehe; i know how to make dlls and works with 32 bit assembler (now),. but nothing about directx usage Very Happy
Im looking at your code, and looks really good.
I ask about the dll, because, you know, sometime is good to make everything in only one exe; and, what you mean with increase the size? hehe, 20? 30? 50? 100, 200k? Very Happy The game programing languages thats are rounding on the web (DarkBasic, Basic4GL, BlitBasic) for a simple hello world on the screen, needs more than 200k (darkbasic pro, needs 245k for this; just print hello world, and wait for a key press to exit Wink i atach an example so you can se, hehe) Very Happy size is not a big problem Very Happy
So, continue with you work; very good. Smile

Cheers.


Description: look at the size of the executable that dbp giveme for a hello world ;) even, i include the source code, hehe.
Download
Filename: testhelloworldzise.rar
Filesize: 70.04 KB
Downloaded: 471 Time(s)


_________________
---------------------------------------
Roberto A. Berrospe Machin
Ruta Internet, Florida Uruguay
---------------------------------------
Post 29 Oct 2004, 02:55
View user's profile Send private message Visit poster's website Reply with quote
madmatt



Joined: 07 Oct 2003
Posts: 1045
Location: Michigan, USA
madmatt 29 Oct 2004, 07:47
Well, there is a better reason for making the library in to a DLL besides memory size, which I should have said in my last post, is that eliminates a lot of typing and cutting and pasting. I have a look at your program. thats just one of the reasons I chose to program in Assembly Razz
Post 29 Oct 2004, 07:47
View user's profile Send private message Reply with quote
i-don



Joined: 18 Jul 2003
Posts: 66
i-don 31 Oct 2004, 15:38
The tutorial is getting more interesting. I've to put DInput8.dll into the application directory to make it able to working within DX7. But only working for keyboard. May be, it doesn't fit for Joystick and Mouse since it may have different constants or calls in DX8.

BTW, the keyboard example is working wonderfully fast. Smile

Great work madmatt!

i-don.
Post 31 Oct 2004, 15:38
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.