Author Topic: Russia Square And Swap Mine Game Source Code  (Read 5281 times)

wxfengyun

  • Guest
Russia Square And Swap Mine Game Source Code
« on: August 04, 2012, 10:49:34 PM »
I wrote two games in masm32 by myself, one is the Russia Square, the other is swap mine.
I think writing game is not very difficult, and these games' source code will help you coming into the game world.
Please read the source code by yourself if you like these game.

qWord

  • Member
  • *****
  • Posts: 1473
  • The base type of a type is the type itself
    • SmplMath macros
Re: Russia Square And Swap Mine Game Source Code
« Reply #1 on: August 05, 2012, 12:49:29 AM »
Well structured code, nice  :icon14:
MREAL macros - when you need floating point arithmetic while assembling!

dedndave

  • Member
  • *****
  • Posts: 8827
  • Still using Abacus 2.0
    • DednDave
Re: Russia Square And Swap Mine Game Source Code
« Reply #2 on: August 05, 2012, 03:20:00 AM »
welcome to the forum   :t

jj2007

  • Member
  • *****
  • Posts: 10468
  • Assembler is fun ;-)
    • MasmBasic
Re: Russia Square And Swap Mine Game Source Code
« Reply #3 on: August 05, 2012, 08:25:30 AM »
Very well done :t

But you might replace the lines
.586
...
include macros.asm

with a simple ...
include \masm32\include\masm32rt.inc
.586

... so that people who don't have environment variables set can assemble your code, too.

By the way: the comments are in which language?

Welcome to the Forum :icon14:

Yuri

  • Member
  • **
  • Posts: 175
Re: Russia Square And Swap Mine Game Source Code
« Reply #4 on: August 05, 2012, 11:45:17 AM »
By the way: the comments are in which language?
Seems to be Chinese (cp936).
Quote
设置下落元素最终的位置
0号元素是正方型