<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.wowcube.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Admin</id>
	<title>WowWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.wowcube.com/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Admin"/>
	<link rel="alternate" type="text/html" href="https://wiki.wowcube.com/wiki/Special:Contributions/Admin"/>
	<updated>2026-04-23T18:46:40Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.33.0</generator>
	<entry>
		<id>https://wiki.wowcube.com/index.php?title=Basics_of_developing_a_simple_map_with_tunnels&amp;diff=16703</id>
		<title>Basics of developing a simple map with tunnels</title>
		<link rel="alternate" type="text/html" href="https://wiki.wowcube.com/index.php?title=Basics_of_developing_a_simple_map_with_tunnels&amp;diff=16703"/>
		<updated>2023-08-22T10:31:11Z</updated>

		<summary type="html">&lt;p&gt;Admin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;In my RPG game, the cube faces comprise a maze of tunnels, that connect rooms where things happen (finding new party members!  buying potions!  Attacking monsters!).   There are no doubt a number of approaches on implementing this in Pawn code, but I am using the following method:&lt;br /&gt;
* A 2D matrix with the first index being a module # and the second index being a screen # yields the ID # of the &amp;quot;map piece&amp;quot; that is on that screen&lt;br /&gt;
* Another 2D matrix with the first index being a module # and the second index being a screen # yields the &amp;quot;rotation count&amp;quot; of that map piece on that screen&lt;br /&gt;
* There are a small number of map pieces and each is initially designed as if the top of the screen is at the top of the piece:&lt;br /&gt;
** A straight tunnel (that will go top to bottom or left to right on the screen)&lt;br /&gt;
** An L shaped tunnel (that will connect left to bottom, left to top, right to bottom, or right to top)&lt;br /&gt;
** A cross shaped tunnel (that connects all four sides together)&lt;br /&gt;
** A dead end tunnel (that opens at the top, left, bottom, or right, but closes off 2/3 of the way down)&lt;br /&gt;
** A stairs tunnel (that opens at the top, left, bottom, or right, but the final third of the tunnel is a green square indicating stairs up or down to another level)&lt;br /&gt;
&lt;br /&gt;
Based on initial topology of the cube on application startup (to be explained), I determine for each screen face the map piece I want on it, and the needed rotation (based on adjacent map pieces and the known orientation of that screen) for the map piece.  The ON_Render routine is then able to just look at the two values for each screen to determine how to draw the tunnels (to be explained further)&lt;br /&gt;
&lt;br /&gt;
Since I also need to be able to indicate where on the face the party can exist, I also set a &amp;quot;cell array&amp;quot; of size [9] (indexes 0...8) where the screen is divided into a 3x3 grid and the cell array for a given cell is 1 if the party can be there or 0 if it cannot:&lt;br /&gt;
&lt;br /&gt;
 0 1 2&lt;br /&gt;
 3 4 5&lt;br /&gt;
 6 7 8&lt;br /&gt;
&lt;br /&gt;
If the map piece is a cross, it would always be the case that indexes 1,3,4,5, and 7 would be 1.  For an L piece, it would be one of the following based on the rotation: (1,4,5), (4,5,7), (3,4,7), or (1,3,4).&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.wowcube.com/index.php?title=Main_Page&amp;diff=16500</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.wowcube.com/index.php?title=Main_Page&amp;diff=16500"/>
		<updated>2021-10-19T10:14:01Z</updated>

		<summary type="html">&lt;p&gt;Admin: Undo revision 16499 by 172.19.0.4 (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Wowcube widgets1.jpg|thumb|right|280px| WOWCube (render) in widgets mode]]&lt;br /&gt;
&lt;br /&gt;
WOWCube is a game console or an electronic puzzle shaped as 2x2x2 Rubik's Cube. Serving as an example of a tangible user interface, it consists of eight identical elements working as a whole. The surface is covered by 24 screens. &lt;br /&gt;
&lt;br /&gt;
It allows the launching of specially designed games.&lt;br /&gt;
&lt;br /&gt;
It is a stand-alone digital device that uses a Tangible interface and Mixed Reality to create an exciting development environment with unusual characteristics in which puzzle-like dynamic games can work.&lt;br /&gt;
&lt;br /&gt;
The main difference from mechanical puzzles is that you can run many different games on the cube, more than one game, and they are not necessarily puzzles. With some imagination and creativity, the WOWCube® system turns in to a multipurpose device. When you’re not using it, the WOWCube® system goes into screensaver mode, in which different screens display different widget apps. It’s a standalone device and it connects to a smartphone via Bluetooth. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Main topics:&lt;br /&gt;
* [[Development|IDE/SDK/API]]&lt;br /&gt;
* [[Games]]&lt;br /&gt;
&lt;br /&gt;
* [[Community]]&lt;br /&gt;
* [[Culture]]&lt;br /&gt;
&lt;br /&gt;
* [[About|About CubiOs/WOWCube]]&lt;br /&gt;
* [[Technical Description]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.wowcube.com/index.php?title=Main_Page&amp;diff=14165</id>
		<title>Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.wowcube.com/index.php?title=Main_Page&amp;diff=14165"/>
		<updated>2021-10-04T15:45:03Z</updated>

		<summary type="html">&lt;p&gt;Admin: Undo revision 12594 by 172.19.0.4 (talk)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[File:Wowcube widgets1.jpg|thumb|right|280px| WOWCube (render) in widgets mode]]&lt;br /&gt;
&lt;br /&gt;
WOWCube is a game console or an electronic puzzle shaped as 2x2x2 Rubik's Cube. Serving as an example of a tangible user interface, it consists of eight identical elements working as a whole. The surface is covered by 24 screens. &lt;br /&gt;
&lt;br /&gt;
It allows the launching of specially designed games.&lt;br /&gt;
&lt;br /&gt;
It is a stand-alone digital device that uses a Tangible interface and Mixed Reality to create an exciting development environment with unusual characteristics in which puzzle-like dynamic games can work.&lt;br /&gt;
&lt;br /&gt;
The main difference from mechanical puzzles is that you can run many different games on the cube, more than one game, and they are not necessarily puzzles. With some imagination and creativity, the WOWCube® system turns in to a multipurpose device. When you’re not using it, the WOWCube® system goes into screensaver mode, in which different screens display different widget apps. It’s a standalone device and it connects to a smartphone via Bluetooth. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Main topics:&lt;br /&gt;
* [[Development|IDE/SDK/API]]&lt;br /&gt;
* [[Games]]&lt;br /&gt;
&lt;br /&gt;
* [[Community]]&lt;br /&gt;
* [[Culture]]&lt;br /&gt;
&lt;br /&gt;
* [[About|About CubiOs/WOWCube]]&lt;br /&gt;
* [[Technical Description]]&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
		
	</entry>
</feed>