Author Topic: my 100% Assembly game development  (Read 7763 times)

felipe

  • Member
  • ****
  • Posts: 598
  • Asssssssembly language...said the snake.
Re: my 100% Assembly game development
« Reply #60 on: December 19, 2017, 01:26:20 PM »
Would you try it without the youtube + music playing and see if it holds?

I will do it and with the latest version.  :icon14: (btw i was listening music from youtube  :bgrin:).

What´s your screen resolution?

Less than 1200 x 900
Felipe.

LordAdef

  • Member
  • ****
  • Posts: 509
Re: my 100% Assembly game development
« Reply #61 on: December 19, 2017, 01:42:46 PM »
Hi Felipe,
Quote
Unless you want to use the CF it would be better to use INC edi (just a suggestion).   :icon14:

This is definitely a very controversial subject Felipe, and there are already loads of open debates about it (including Hutch vs Johen  ::))

Intel actually recommends ADD over INC for performance. Others disagree and my guess is "depends".
Hutch is in favour of ADD. JJ is in favour of INC. Wait and see..

That´s my main game loop, and I need performance. ADD, regardless of the debate, seems to be faster in more modern systems.
I made the choice for ADD following the performance suggestion made by the Intel manual (and Hutch).

I hope that clarifies my option and thank you for raising the subject.

You will surely find this subject here at our forum, with benchmarks, etc..

An interesting read:
http://www.masmforum.com/board/index.php?PHPSESSID=786dd40408172108b65a5a36b09c88c0&topic=4662.0



Quote
Btw if you don't want more suggestion from me i can shut up with no problem.  :greensml:
Don´t worry, I never mind constructive suggestions. That´s how we learn or double-check things! Just bare in mind that my code is not optimized yet, so you may bump into something I´m still going to change.
But There are already very optimized code in there. If you want, check "decomp.asm". It´s very fast and efficient. Although it´s my algo, credit must be given to our friends here, who helped me optimizing it.

Cheers Alex

felipe

  • Member
  • ****
  • Posts: 598
  • Asssssssembly language...said the snake.
Re: my 100% Assembly game development
« Reply #62 on: December 19, 2017, 01:56:10 PM »
I have tried the last version (without doing anything else with the pc) and didn't crashed.  :icon14:
Felipe.

LordAdef

  • Member
  • ****
  • Posts: 509
Re: my 100% Assembly game development
« Reply #63 on: December 19, 2017, 02:01:52 PM »
I have tried the last version (without doing anything else with the pc) and didn't crashed.  :icon14:
Great!!

LordAdef

  • Member
  • ****
  • Posts: 509
Re: my 100% Assembly game development
« Reply #64 on: December 19, 2017, 04:03:00 PM »
v8.15

I´ve corrected the missing element and my "drunk badguy" bug. It was an out of boundary array loop....

Now, everything can be shot dead. To be more fun, all collisions detection are on. It´s quite tough!


LordAdef

  • Member
  • ****
  • Posts: 509
Re: my 100% Assembly game development
« Reply #65 on: January 04, 2018, 05:58:21 AM »
Small update: v1.853

Gas Pump: fill tank
New assets: civilian cars, bridge
Bonus: reach the bonus point and earn an extra life
Small game logic tweaks, and small bug corrections

ps: Terrain collision detection off.

This time, exe (plus 3 lib files) only.

LordAdef

  • Member
  • ****
  • Posts: 509
Re: my 100% Assembly game development
« Reply #66 on: January 20, 2018, 08:20:05 AM »
v8.16:

Many overall code changes.
. Main loop engine completely rewritten, with substantial gain in performance. I got rid of those slow textOut and build two buffers. A lot fasters (code is commented, in PAINT btw)

. Changes in the game flow control
. Fixed man´s own explosion
. Now, when man is dead, animation continues
. Acceleration has been improved and now has some kinetics (still in development) (try it , it can go reaaally fast)
. Civilian vehicles you shouldn´t kill

this build has some new easy-to-fix bugs, due to the new engine implementation/ flow control.

GUI should be a lot smoother now

HSE

  • Member
  • ****
  • Posts: 637
  • <AMD>< 7-32>
Re: my 100% Assembly game development
« Reply #67 on: January 20, 2018, 11:20:53 AM »
Yes, faster to kill me  :biggrin:   :t

jj2007

  • Member
  • *****
  • Posts: 8221
  • Assembler is fun ;-)
    • MasmBasic
Re: my 100% Assembly game development
« Reply #68 on: January 20, 2018, 12:39:46 PM »
Yes indeed, it has become challenging :badgrin:

Over 3,000 lines of code, this has become a nice project :t

LordAdef

  • Member
  • ****
  • Posts: 509
Re: my 100% Assembly game development
« Reply #69 on: January 20, 2018, 01:03:17 PM »
Thanks HSE and JJ,

Yes! I´m having a lot of fun with it. Remember I started learning MASM from scratch, here with you... I know I´m still a noob, but I´m persistent  :biggrin:


BTW, I needed to add a font to my resource so I could use it without installing it into the user´s pc.
But I don´t know how to do it. I couldn´t find how. I guess I´m trying in a way to get rid of the homework.....  You would give this friend a little help ??

Siekmanski

  • Member
  • *****
  • Posts: 1337
Re: my 100% Assembly game development
« Reply #70 on: January 20, 2018, 03:13:56 PM »
Very cool.  :t
I've never been killed that many times in such a short period.  :badgrin:

jj2007

  • Member
  • *****
  • Posts: 8221
  • Assembler is fun ;-)
    • MasmBasic
Re: my 100% Assembly game development
« Reply #71 on: January 20, 2018, 07:30:56 PM »
I needed to add a font to my resource so I could use it without installing it into the user´s pc.

You can always embed a font file in the resources. Little example:

include \masm32\MasmBasic\MasmBasic.inc         ; download
  Init
  If_ Not Exist("MsgBox.exe") Then FileWrite "MsgBox.exe", res:77       ; extract a file from RCDATA resource #77
  Launch "MsgBox.exe"
EndOfCode

Rsrc
#include "resource.h"
IDI_APPLICATION ICON    "\\Masm32\\MasmBasic\\icons\\Smiley.ico"        // Calc, Disk, Editor, Eye, Globe, MasmBasic, Smiley
01 RT_MANIFEST         "\\Masm32\\MasmBasic\\Res\\XpManifest.xml"
77 RCDATA      "MsgBox.exe"
Rsrc


aw27

  • Member
  • *****
  • Posts: 1138
  • Let's Make ASM Great Again!
Re: my 100% Assembly game development
« Reply #72 on: January 20, 2018, 10:42:37 PM »
I have never been good at playing games, but would like to know the reason I can't get more than this?!


PS: I pressed 1 to start. I unzipped creating a folder with an assets subfolder.

HSE

  • Member
  • ****
  • Posts: 637
  • <AMD>< 7-32>
Re: my 100% Assembly game development
« Reply #73 on: January 21, 2018, 03:17:17 AM »
the other 1.

LordAdef

  • Member
  • ****
  • Posts: 509
Re: my 100% Assembly game development
« Reply #74 on: January 21, 2018, 06:21:04 AM »
hi aw27,

well, thanks for the feedback! what's your Windows?

BTW, all you need is the .exe file plus the 3 .dat files (L1, L2, L3). everything else is already withing the exe.

unless you're pressing the wrong "1" , there is something wrong here...

would you please try the previous version and let me know? It's one post earlier.

Cheers