Basic structure of simple games

Creating Games? Developing something for fun?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
ds_tx
Posts: 17
Joined: Sat Jul 21, 2007 6:56 pm

Basic structure of simple games

Post by ds_tx » Fri Jul 27, 2007 12:13 am

I'm considering purchasing Revolution Studio this weekend by end of promo, but before doing so I'd like to have a better feel for the software.
Am using Studio demo on MacOSX4.9, but can't make sense of the guts of any of the following games.
Can anyone help pick them apart and explain what's going on?

KodeKraker (bottom of page link) is made of lots of pieces.
The primary game ones seem to be radio buttons.
But how does this game work?
http://www.tactilemedia.com/download/

How would a solitaire card game be set up like Killing Time on If Monks Had Macs
http://www.rivertext.com/monks4.html

Or Wilhelm Sanke's Picture Puzzle, Word Scramble, Magic Triangle, etc.
I downloaded these .mc files and renamed them .rev
They open and work, but I don't get any info in inspector or script windows
http://mail.runrev.com/pipermail/educat ... 00220.html

And how might Arcade Engine be used to create a pinball type game?

Klaus
Posts: 13824
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: Basic structure of simple games

Post by Klaus » Fri Apr 23, 2010 12:41 pm

Hi guys,

you have to figure out the lgics behind the game(s)!

Do so by explainig this to yourself without even thinking of computers, programming and Rev!
Once you figured out the logics you will be able to almost translate it 1:1 to the very english-like syntax of Rev.

I once made a presentation about this topic at an early Rev dev conferences in Malta 2004.
You can download the stack, it is a simple "memory" game here:
http://www.major-k.de/xtalke.html
"simple_memory1" down the page.

Hint:
Rev is able to open MetaCard (the "father" of Rev) documents "*.mc" but NOT after doubleclicking the file, use the
"Open" dialog in Rev instead.


Best

Klaus

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9824
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Basic structure of simple games

Post by FourthWorld » Fri Apr 23, 2010 1:36 pm

Klaus wrote:Do so by explainig this to yourself without even thinking of computers, programming and Rev!
Once you figured out the logics you will be able to almost translate it 1:1 to the very english-like syntax of Rev.
Well said.

I once came across this line which has been very helpful ever since:

"Show me your data structures, and I'll show you your algorithms."

These days most of my work making software takes place away from the computer, usually with a pad of grid paper. I outline the "story" I want to tell the user, the workflow I want to provide. Then I define the data structures I'll need to make that happen. By the time I have those two things in place, the code needed to drive it all becomes self-evident.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

keithb
Posts: 5
Joined: Tue Aug 23, 2011 1:18 am

Re: Basic structure of simple games

Post by keithb » Tue Aug 23, 2011 4:32 am

Well, I am in for a new project. A friend has introduced a game that would allow it to take a story like pattern. Though with the player acting pretty much like an author as well.

I am not that sure how that would turn out. As I think the problem is, it would require for the player to be the developer as well, which I do not think will invite that much interest considering the bulk of workload that would be passed on.

Fasasoftware
Posts: 203
Joined: Mon Oct 31, 2011 9:36 pm
Location: Italy
Contact:

Re: Basic structure of simple games

Post by Fasasoftware » Fri Nov 04, 2011 10:24 pm

Hi ds_tx,

We have made a simple game "spaceinvadersclone", but we have used the animation egine 2.9 ...But the result was ok but the graphic was a little slowly because the cause of old runrev2.9 . Now the new release of livecode5 should, we say should because we don't have again buyed our copy of it, solve that problem of graphic......

Well, to make this game we use a lot the "send to me" script....like interrupt....and program like events....answer to the messages

Our Plan...
1) first declare variable
2)place images on the card
3)use animation engine to move the enemy
4)build a list of bullets
5)build a list of enemy
6)create the panel energy,life,score
7) create an highscore card...(the part more difficult, because we have used custom images to display chars)

If you need the program script, we sell for a small fee the source code or the source card code...., very smal fee on Fasasoftware's store......

visit here www(.)fasasoftware(.)com

Bye The Admin Lestroso

Post Reply

Return to “Games”