Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 8:32 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: help needed on game
PostPosted: June 20th, 2007, 3:48 pm 
Offline

Joined: May 24th, 2007, 11:02 am
Posts: 132
Location: UK - Wales - Ceredigion
Opus: illuminatus > Evolution
OS: Windows 10 Pro
System: i7 8GB RAM
Can anyone help me program a game in Opus6?
I need a 'Simon Says' game. Has anyone got any code that can help me?

How Simon Says works:
There are four 'lights' that flash in a random sequence that require the user to copy the sequence before the next random light is added to the sequence.

So for example:

-Red, green, yellow and blue lights are shown off
-The red light flashes
-The user hits red
-The red light flashes then the yellow light flashes
-The user must hit red then yellow or the game is reset
and so it carries on.

A sound is made when the light flashes and a score is kept on the screen to show which level they are on.

If anyone can point me in the right direction that would be great.

I'm sure Opus can do this, I just don't know how. I think it needs lots of arrays, but I'm not sure how to set them up.

Anyone?


For this message jezjones29 has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: June 20th, 2007, 3:56 pm 
Have you achieved anything at all, or would you like us to start from a blank canvas? If you have, please consider posting the .IMP file to help us understand exactly what you want.

How do you want to determine the elapsed time between the end of Random Sequence A, and the start of Random Sequence B?

Also, please go into your ptofile (top of page) and in the Signature section, at the very least, add details of your hardware, OS, and version of of Opus. Like I have done. That info is of great


Top
   
 
 Post subject:
PostPosted: June 20th, 2007, 6:00 pm 
Offline

Joined: November 3rd, 2004, 2:11 pm
Posts: 323
Take a look at this URL:
http://javascript.internet.com/games/simon-says.html

It's a JavaScript version of a Simon game. You can study how they set it up and then see if you can translate it to the Opus world.

if nothing else, you can copy it and create an HTML file and then display that in a browser object in your Opus publication.

_________________
Opus Pro XE 9.1 Win7 64-bit Core i3 8MB RAM


For this message bwpatric has been thanked by : mackavi


Top
 Profile Visit website  
 
 Post subject:
PostPosted: June 20th, 2007, 6:39 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Actually I'd think that this could be quite a simple game.

Have an incrementing counter from 1 - 8

Have a randomised array that is filled with your colours. The number of array elements being linked to the counter.

Display the elements from the array.

Check user input against the array.

Increment counter by one and repeat.

Mack.

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: June 26th, 2007, 4:32 pm 
Offline

Joined: May 24th, 2007, 11:02 am
Posts: 132
Location: UK - Wales - Ceredigion
Opus: illuminatus > Evolution
OS: Windows 10 Pro
System: i7 8GB RAM
Thank you for your help.

I had a go, but could do with some help.

I want to keep my end design a secret so I based it on a design found on this site - I hope you don't mind
:wink:

What do you think?


You do not have the required permissions to view the files attached to this post.


For this message jezjones29 has been thanked by : mackavi


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 44 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group