NASM - The Netwide Assembler

NASM Forum => Other Discussion => Topic started by: avcaballero on January 03, 2014, 06:53:51 AM

Title: Space Invaders
Post by: avcaballero on January 03, 2014, 06:53:51 AM
Hello. This is my version of Space Invaders classic game. It is far from finished and left many things, and when this happens I will dedicated it to my wife and two sons who enjoy a lot playing with it. Hey!, you are great! ;)

FAQ:
Q. Where are the source codes?
A. I've got them, but you haven't. It is freeware, not open source, at least for the moment.

Q. How interesting, can I unasembly it?
A. Hmm. Yes, you can, but you shouldn't.

Q. How can I play?
A. <- / -> to move your ship, ctl to shoot.

Good fun and happy weekend, guys.
Title: Re: Space Invaders
Post by: encryptor256 on January 03, 2014, 09:58:30 AM
Hi!

One faq entry is missing:
FAQ:
Q. What os it's runs on?
A. Windows.

Cool game, tested, works, but game is too slow, like: movements left, right and shooting too.

5x faster could be fine.

+ Full screen mode could be useful too.
Title: Re: Space Invaders
Post by: avcaballero on January 03, 2014, 10:38:29 AM
Hi, encryptor256. I didn't know the game when it was borned, but i think that this is as is, ie you can only shoot one time (only one shoot of your ship is alived). This makes that it seems to be rather slow, but the play is as is (if anyone knows it, can tell us). It is true that the ship don't respond inmediately... it is one thing to be enhanced... After each level, enemies goes and shoots faster, but you don't... It's a suicide mission :(
Title: Re: Space Invaders
Post by: encryptor256 on January 03, 2014, 10:56:17 AM

After playing a little bit longer, it seems, that ship moves faster. So, it's fine, even shooting!
After finishing first level, i didn't managed to get to next level.
Size indicator: ~44kb, smells like GCC, am i right?
Did you made it in assembly?
Sprites created in mspaint?

Title: Re: Space Invaders
Post by: avcaballero on January 03, 2014, 11:15:22 AM
yeah, each time you kill an enemy, they get angry and move faster. They can kill you too, of course. No next level at the moment, that's because I said it is far from finished :), that and many other things.

Yes, sprites in mspaint.

Regards
Title: Re: Space Invaders
Post by: avcaballero on January 05, 2014, 08:10:51 PM
Hello, this is an enhanced version, with levels, etc. Much things to be added yet...
Regards
Title: Re: Space Invaders
Post by: HD1920.1 on February 06, 2014, 01:35:25 PM
Cool game, but when the enemy kills you, you cannot use the next life and have to restart the game. Really annoying.
Title: Re: Space Invaders
Post by: avcaballero on February 06, 2014, 02:05:26 PM
Hmmmm. Yes, well. This is one of the first video games in the world (http://en.wikipedia.org/wiki/Space_Invaders) and, if i'm not wrong, the game is as is  ;D

Regards
Title: Re: Space Invaders
Post by: HD1920.1 on February 06, 2014, 02:45:14 PM
Additionally, the updated version includes a trojan horse!  >:(
Title: Re: Space Invaders
Post by: avcaballero on February 06, 2014, 04:21:42 PM
Are you really sure? Many times av gives false positive, specially with uncommon tools. No place for angry face. Which tool gives you this warning?
Title: Re: Space Invaders
Post by: Frank Kotler on February 06, 2014, 05:38:10 PM
Quote
Many times av gives false positive
Yeah! I forget which av tool it was that identified every bootsector on my drive as a virus. (there were a lot of them - some quite "non-standard" - I was impressed...) Another av tool (Kaspersky, as I recall, but don't sue me if I'm wrong) identified Nasm itself as a virus.

I can't run it (too stubborn), but I've looked at it and I don't see anything that looks "funny" to me. Looks like it was assembled as "-f obj" (confuses Agner Fog's "objconv", 'cause we get some of the constants wrong). Pity there isn't source with it... just sayin'...

What makes you say that, HD1920.1?

Best,
Frank

Title: Re: Space Invaders
Post by: avcaballero on February 06, 2014, 05:47:16 PM
Yeah. Not much time to work with it. Not a heaven code, so... here it is, compile it with tinyc. Have fun.
Title: Re: Space Invaders
Post by: encryptor256 on February 06, 2014, 06:16:14 PM
(Maybe)

That's a trick!

HD1920.1, managed to squeeze out the source code from avcaballero. Hooray!!! :D

FAQ:
Q. Where are the source codes?
A. I've got them, but you haven't. It is freeware, not open source, at least for the moment.

Cascade of events:
1. avcaballero: "No source code, friends, just exe!".
2. HD1920.1: "There is a virus!".
3. avcaballero: "Okay, okay, just take it!". :D


Title: Re: Space Invaders
Post by: avcaballero on February 06, 2014, 07:17:01 PM
He he, this guy must be from the competence...  :D

I actually though about making another tuto, this time about video games... when i have time. That's the reason of "not for now".

If I'm honest, what bothers me more is people who use things that not recognize ... ???
Title: Re: Space Invaders
Post by: Rob Neff on February 06, 2014, 09:36:34 PM
If I'm honest, what bothers me more is people who use things that not recognize ... ???

Yes, I'm sure many of us, myself included, fall victim to that line of reasoning every once in a while.

I just keep telling myself that it is for the greater good of mankind in general.

That, plus all the new friends you DO eventually meet along the way!  8)
Title: Re: Space Invaders
Post by: encryptor256 on February 07, 2014, 06:46:29 AM
If I'm honest, what bothers me more is people who use things that not recognize ... ???

What are these unfinished sentences with "...".
If you started, you finish, capiche (http://www.ask.com/question/how-do-you-spell-capiche)? :D
Go on, go on, finish the sentence, stop torturing me.

What is the thing that these people don't recognize,
recognize what?


Title: Re: Space Invaders
Post by: avcaballero on February 07, 2014, 07:32:01 AM
I just keep telling myself that it is for the greater good of mankind in general.
Yes, it may be something similar to that


That, plus all the new friends you DO eventually meet along the way!  8)
Yes, i agree with that. You see, i don't like tv programs, so i waste my free time programming and discussing with people in such a this forums about ways of programming. After a while it can be considered friends.

My big brother once told me that a man is made when have a child, plant a tree and write a book. Well i guess it's comforting to write something that matters to someone.

...  ;D ...

Regards
Title: Re: Space Invaders
Post by: HD1920.1 on February 07, 2014, 02:39:38 PM
I let the file scan by virustotal, the result is that 21 out of 50 antivirus programs recognize a virus, many of them a trojan horse. Here is the link to the result page: https://www.virustotal.com/en/file/31953c2576fead0e2d7ec9da6e3f4b469938c040fdffc48af32c356776a75ab5/analysis/1391784356/ (https://www.virustotal.com/en/file/31953c2576fead0e2d7ec9da6e3f4b469938c040fdffc48af32c356776a75ab5/analysis/1391784356/).
Title: Re: Space Invaders
Post by: encryptor256 on February 07, 2014, 03:36:07 PM
I let the file scan by virustotal, the result is that 21 out of 50 antivirus programs recognize a virus, many of them a trojan horse. Here is the link to the result page: https://www.virustotal.com/en/file/31953c2576fead0e2d7ec9da6e3f4b469938c040fdffc48af32c356776a75ab5/analysis/1391784356/ (https://www.virustotal.com/en/file/31953c2576fead0e2d7ec9da6e3f4b469938c040fdffc48af32c356776a75ab5/analysis/1391784356/).

You can check your system with a tool from Microsoft, named: Malicious Software Removal Tool (http://www.microsoft.com/en-us/download/malicious-software-removal-tool-details.aspx)

I did it and nothing were found.

I believe that those anti-virus tools from "www.virustotal.com" are not so good, you can see there below the list, is kaspersky and microsoft | and they show nothing there too.
Title: Re: Space Invaders
Post by: Bryant Keller on February 11, 2014, 05:46:30 PM
I let the file scan by virustotal, the result is that 21 out of 50 antivirus programs recognize a virus, many of them a trojan horse. Here is the link to the result page: https://www.virustotal.com/en/file/31953c2576fead0e2d7ec9da6e3f4b469938c040fdffc48af32c356776a75ab5/analysis/1391784356/ (https://www.virustotal.com/en/file/31953c2576fead0e2d7ec9da6e3f4b469938c040fdffc48af32c356776a75ab5/analysis/1391784356/).

I used the same site to test the executable only and got 4 out of 49 (https://www.virustotal.com/en/file/e5df3f56f8d9c01c302801a7873405a174ca1ed4d2f1087558931b34b5a94aeb/analysis/1392140871/) by simply extracting the file first. Most of those false readings you got were from the file being a compressed file. As for the remaining 4, I've seen more alerts from system files on a clean install of Microsoft Windows.
Title: Re: Space Invaders
Post by: HD1920.1 on May 13, 2014, 04:24:24 PM
Q. How interesting, can I unasembly it?
A. Hmm. Yes, you can, but you shouldn't.

Hmm, why is the entry point in a non-execute section?!