The MASM Forum

Projects => Game Development => Topic started by: felipe on January 07, 2019, 02:36:09 PM

Title: Tita goes d3d9 demo!
Post by: felipe on January 07, 2019, 02:36:09 PM
Inspired with what daydreamer wrote here: http://masm32.com/board/index.php?topic=7596.0 (http://masm32.com/board/index.php?topic=7596.0) i have done this "little"  :P demo of tita in labyrinths. So i want to put some points in the table or similar:

So why it's a demo? Because it just have only 1 stage or labyrinth...
Why i didn't used sprites? Because i wanted to keep "simple"  :P. This demo (which is playable...for a while...maybe just once?) don't uses the d3dx lib or dlls, so most users can run it without the need to download anything.
Why the code looks like that?  :biggrin: Seriously, the code can (i guess for sure... :idea:) be optimized or even just written in other way. This is what i did and i don't want to do it again... :P At least for now... :P
Why the restriction with the screen resolution? Because i wrote the code for a "big" screen, then i realized that if i changed the screen resolution to the smallest ones the labyrinth would look wrong. There will be no problem changing in the code the screen resolution requirement, but for smaller resolutions than the one there, the labyrinths will look bad... :idea: The one there is the smallest resolution that i tried that worked.
Anything else? Yes do whatever you want with the code or program... :t I have done this demo and i'm more conviced that making games is a lot of work  :P, so don't ask me to do more for this demo... :P Now is your turn!  :biggrin:  :t  :icon14:
Wait! one more thing! If you find that the "character"  :P (tita...ok that red rectangle... :P) has trouble to move into some areas in the labyrinth, it's because that's the idea of the game (really) some paths in the labyrinth are like traps, you can't move more in that direction. Do you get it?
One last thing: The .asm, .exe and the includes for d3d9 (again) are all in the .zip.

Now enjoy tita goes d3d9 demo!  :greenclp: Or hate it... :( I think i can live with any of both... :biggrin:  :icon14:
Title: Re: Tita goes d3d9 demo!
Post by: hutch-- on January 07, 2019, 03:55:13 PM
Works fine here.  :t
Title: Re: Tita goes d3d9 demo!
Post by: Siekmanski on January 07, 2019, 09:00:30 PM
Nice  :t
Title: Re: Tita goes d3d9 demo!
Post by: HSE on January 08, 2019, 12:19:07 AM
Fantastic Felipe  :t

Title: Re: Tita goes d3d9 demo!
Post by: jj2007 on January 08, 2019, 12:54:10 AM
Bad luck, doesn't work with 1366*768:
SORRY, TO PLAY THIS GAME YOU NEED AS A MINIMUM A 1152 X 864 SCREEN RESOLUTION
Title: Re: Tita goes d3d9 demo!
Post by: felipe on January 08, 2019, 01:37:59 AM
Thanks  :icon14:. jj if you want you can just comment all that screen resolution check at the start of the code. But the labyrinth would look bad, and the demo wouldn't be playable at all.  :idea: Here is a picture of how the demo looks with a resolution of 1024x768. The black rectangle below the window is the program covers made by jimg  :idea:  :icon14:.  Actually i didn't test with that resolution (1366x768), but i think it will be similar issues as with this one  :idea:.
Title: Re: Tita goes d3d9 demo!
Post by: daydreamer on January 08, 2019, 02:41:01 AM
fantastic Felipe and screen resolution problem is something we should find solutions for everyone who coded hires programs :t
Title: Re: Tita goes d3d9 demo!
Post by: jj2007 on January 08, 2019, 03:03:07 AM
Works fine with the two jumps commented out. Felipe, why do you think Microsoft introduced the invoke macro twenty years ago?
Title: Re: Tita goes d3d9 demo!
Post by: felipe on January 08, 2019, 05:04:00 AM
Quote from: jj2007 on January 08, 2019, 03:03:07 AM
Felipe, why do you think Microsoft introduced the invoke macro twenty years ago?

:biggrin: To resemble the c prototypes, to code to the right and not down? Hey, you know it's a matter of taste... :bgrin:  :icon14:
Title: Re: Tita goes d3d9 demo!
Post by: daydreamer on April 09, 2019, 04:54:27 AM
I have a suggestion of a intro where you input A$ your first name before you play and a story pop up in some nice font:
"Tita's best friend" ,A$," was lost,nobody have seen A$ but an old hermit living close to a mystic cave,he told Tita he had seen A$ gone in but never came out,hermit told a story from his childhood he had been inside the cave and discovered a Labyrinth and seen a evil monster living in there and he had to run for his life to survive,parts of the labyrinth had lots of Bones and rusty weapons and armours"
"so Tita decided to go in the Labyrinth to save A$"