Word 2007 users: Simple Macro Game
Posted: Thu Sep 13, 2007 6:01 am
I've made a simple macro game in Word 2007. You basically walk a tiny red 'c' around a square map using the arrow keys. ALT+A resets/starts the game. ALT+Q returns to the title screen.
It has been a long time since I've touched BASIC (5+ years), and I wrote this all within the last 20 minutes.
Since Word 2007 (and presumably all versions of Word which support macros) can be nearly fully scripted through VBA (Visual Basic for Applications) macros, I am suprised to not have found much information about Word macro games. My example shows moving a simple character around the screen based on key events. However, using a timer object, you could create some form of real-time-ie-ness, and using the drawing objects you could create graphical images rather than ASCII images.
Given some time and dedication I am sure you could build a fairly decent 2D game framework (and possibly even an interactive ray-caster) using VBA.
Tell me what you think!
(Sorry non-Word 2007 and non-Windows users).
It has been a long time since I've touched BASIC (5+ years), and I wrote this all within the last 20 minutes.
Since Word 2007 (and presumably all versions of Word which support macros) can be nearly fully scripted through VBA (Visual Basic for Applications) macros, I am suprised to not have found much information about Word macro games. My example shows moving a simple character around the screen based on key events. However, using a timer object, you could create some form of real-time-ie-ness, and using the drawing objects you could create graphical images rather than ASCII images.
Given some time and dedication I am sure you could build a fairly decent 2D game framework (and possibly even an interactive ray-caster) using VBA.
Tell me what you think!
(Sorry non-Word 2007 and non-Windows users).