Skip to content

Code related to the project for DECO3850 at the University of Queensland in Semester 1, 2015.

License

Notifications You must be signed in to change notification settings

Pr0gm4n/thesequentials

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Sequentials: D-Bugs

Code related to the project for DECO3850 at the University of Queensland in Semester 1, 2015.

Please remember to document any necessary instructions for programmers / users in this file!

Setup

Fiducials:

(as from Pete Worthy on http://deco3850.uqcloud.net/fileresources/lectures/fiducials_guide/assets/player/KeynoteDHTMLPlayer.html)

To run the application, launch reacTIVision and the udpbridge (either from command line or by double clicking the renamed .exe file).

Arduino:

(as from http://www.instructables.com/id/Integrating-your-Arduino-With-Flash-and-Actionscri/?ALLSTEPS)

To run the application, plug in the Arduino and launch the Serproxy.

Arduino hardware connections

  • Pin2: GO button
  • Pin3: blue
  • Pin5: red
  • Pin6: green
  • Pin9: GO button LED

Fiducial Cube Assignment

[Direction] : [Fiducial id] The fiducial for the direction will be on the opposite side of the cube since the cube will be placed onto the glass.

Red cube:

  • Foward : 1
  • Left : 2
  • Right : 3
  • Unassigned Command 1 : 4
  • Unassigned Command 2 : 5
  • Unassigned Command 3 : 6

Yellow cube:

  • Foward : 7
  • Left : 8
  • Right : 9
  • Unassigned Command 1 : 10
  • Unassigned Command 2 : 11
  • Unassigned Command 3 : 12

Green cube:

  • Foward : 13
  • Left : 14
  • Right : 15
  • Unassigned Command 1 : 16
  • Unassigned Command 2 : 17
  • Unassigned Command 3 : 18

Blue cube:

  • Foward : 19
  • Left : 20
  • Right : 21
  • Unassigned Command 1 : 22
  • Unassigned Command 2 : 23
  • Unassigned Command 3 : 24

Creating maps

Game environments

A game environment consists of several files in a folder Maps/map#/ where # is the number of the environment. The required graphic files are:

  • background.png
  • base.png
  • the goals (1.png, 2.png, 3.png, ...)
  • the goal names in goals.txt (1.png on line 1, 2.png on line 2, ...)
  • the obstacles (a.png, b.png, c.png, ...)

Please note, that every line in the goals.txt needs to be ended by a newline character, even the last line. Also make sure that none of the goal names include digits.

Map layouts

Map layouts can easily be created in the folders /1/ (easy), /2/ (intermediate) and /3/ (advanced) in Maps/layouts as plain text files. They contain 8 lines of 8 characters to describe an 8x8 grid map. Please note, that every line needs to be ended by a newline character, even the last line. There is 3 types of input fields:

  • space: a standard field
  • a letter (a, b, c, ...): an obstacle, corresponding to a.png, b.png, ... in the same folder
  • a number (1, 2, 3, ...): a goal that needs to be reached
  • a single capital X as the starting position

Defining goals

Below the actual map, goals can be defined in any number of following rows with a comprehensible syntax. Separate lines are goals that all need to be achieved (logical AND), whereas comma-separated targets on the same line are achieved as soon as one of the targets is achieved (logical OR). If a line begins with an "!" (exclamation point symbol), it's meaning is inverted (logical NOT). The NOT operator should not be used in easy mode to avoid possibly unexpected behaviour. Please note, that every line needs to be ended by a newline character, even the last line. A sample input may look like this:

1,2
3
!4

and translates to "Get the 1 OR the 2, the 3 and NOT the 4". The numbers will then be replaced according to the selected game environment and the goal names defined therein (goals.txt).

About

Code related to the project for DECO3850 at the University of Queensland in Semester 1, 2015.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •