Word 2007 users: Simple Macro Game

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
Post Reply
User avatar
AndrewAPrice
Member
Member
Posts: 2299
Joined: Mon Jun 05, 2006 11:00 pm
Location: USA (and Australia)

Word 2007 users: Simple Macro Game

Post by AndrewAPrice »

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).
Attachments
Simple Word RPG.zip
(19.62 KiB) Downloaded 44 times
My OS is Perception.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

I am suprised to not have found much information about Word macro games.
People probably play pinball instead :twisted:
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.
Either you are a geek or you aren't. I already imagine myself playing pacman and eating all the text I previously wrote... :wink:

I'll shut up now.
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
User avatar
Zacariaz
Member
Member
Posts: 1069
Joined: Tue May 22, 2007 2:36 pm
Contact:

Post by Zacariaz »

Combuster wrote:Either you are a geek or you aren't. I already imagine myself playing pacman and eating all the text I previously wrote... :wink:
Hmm, I imagine something like a webbaces Pacman game where you choose a random webpage and your goal of course is to eat all the characters as fast as possible while avoiding all the evil smileys trying to kill you :twisted:
User avatar
AndrewAPrice
Member
Member
Posts: 2299
Joined: Mon Jun 05, 2006 11:00 pm
Location: USA (and Australia)

Post by AndrewAPrice »

Zacariaz wrote:Hmm, I imagine something like a webbaces Pacman game where you choose a random webpage and your goal of course is to eat all the characters as fast as possible while avoiding all the evil smileys trying to kill you :twisted:
Is this a real game? I couldn't find any trace of it on google.
My OS is Perception.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

Two hints:
:twisted:
imagine
:wink:
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
Post Reply