Murugan.com
Murugan Andezuthu Dharmaratnam

  |  HOME   |  BLOG   |  TWITTER   |  ARTICLES   |  8086  |  C++   |  VC++   |  ASP .NET   |  VB .NET   |  JAVA SCRIPT   |  MS SQL   |  PHP   |  MY   |  VIDEOS   |  DOWNLOADS   |  CONTACT ME   |  



8086 Assembly Game Collusion Detection Macro


Home  > 8086  > 8086 Assembly Game Collusion Detection Macro 
       
8086 Assembly Language Game Programming. Check if two rectangles have collided
Note  : You need the collisiondetectionproc proceure. Its there in this website. 

;---------------------------------------------------------------------
;CollusionDetection Macro:
;   Description:
;       Checks For Collusion Detection (Rectangular)
;---------------------------------------------------------------------
CollusionDetection macro Obj1L,Obj1T,Obj1R,Obj1B,Obj2L,Obj2T,Obj2R,Obj2B 
  push ax
  mov ax,Obj1L
  mov Object1Left,ax
  mov ax,Obj1T
  mov Object1Top,ax
  mov ax,Obj1R
  mov Object1Right,ax
  mov ax,Obj1B
  mov Object1Bottom,ax
  mov ax,Obj2L
  mov Object2Left,ax
  mov ax,Obj2T
  mov Object2Top,ax
  mov ax,Obj2R
  mov Object2Right,ax
  mov ax,Obj2B
  mov Object2Bottom,ax
  call CollusionDetectionProc
  pop ax
endm
8086 Assembly Lanaugage Clear the screen

8086 Assembly Lanaugage Program to Draw a box

8086 Assembly Writing Directly to Video Memory B800

8086 Assembly Causes a Delay in terms of 1 60 of a second Delay Macro

8086 Assembly Hello World Application

8086 Assembly Terminate the program and return to Dos prompt

8086 Assembly Language Wati for a keystroke or pause macro

8086 Assembly Language Delay Macro

8086 Game Programming Collusion Detection

8086 Assembly Game Collusion Detection Macro

8086 Assembly Lanuage Set the video display mode

8086 Write matrix of bytes to a memory game pogramming

8086 Assembly Language code procedure for delay

8086 Code Type String or Display String

8086 Assembly Language Convert from Hex to ascii

8086 Assembly Language Press Any Key to Continue Dialog

8086 Assembly Dialogbox or display a box with shadow in text mode

8086 Assembly cls clrscr or clear the screen

8086 assembly language read a string using standard input keyboard

8086 assembly language compare two strings strcmp procedure

8086 Assemly file io proc procedure to open a file

8086 Interrupt List

8086 Assembly Close FIle. Close a file opened for read write

8086 assembly language

8086 Assembly Language Sound Blaster Programming Play wav File

8086 assembly language program to play sound using pc speaker



  |  HOME   |  BLOG   |  TWITTER   |  ARTICLES   |  8086  |  C++   |  VC++   |  ASP .NET   |  VB .NET   |  JAVA SCRIPT   |  MS SQL   |  PHP   |  MY   |  VIDEOS   |  DOWNLOADS   |  CONTACT ME   |  

Copyright 2009 @ Murugan Andezuthu Dharmaratnam