<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="de">
	<id>http://hyperdramatik.net/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Squares_together</id>
	<title>Squares together - Versionsgeschichte</title>
	<link rel="self" type="application/atom+xml" href="http://hyperdramatik.net/mediawiki/index.php?action=history&amp;feed=atom&amp;title=Squares_together"/>
	<link rel="alternate" type="text/html" href="http://hyperdramatik.net/mediawiki/index.php?title=Squares_together&amp;action=history"/>
	<updated>2026-07-25T02:18:18Z</updated>
	<subtitle>Versionsgeschichte dieser Seite in hyperdramatik</subtitle>
	<generator>MediaWiki 1.38.2</generator>
	<entry>
		<id>http://hyperdramatik.net/mediawiki/index.php?title=Squares_together&amp;diff=1247&amp;oldid=prev</id>
		<title>Leoni am 11. Mai 2020 um 12:43 Uhr</title>
		<link rel="alternate" type="text/html" href="http://hyperdramatik.net/mediawiki/index.php?title=Squares_together&amp;diff=1247&amp;oldid=prev"/>
		<updated>2020-05-11T12:43:39Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 11. Mai 2020, 12:43 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l37&quot;&gt;Zeile 37:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 37:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;void setup() {&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;void setup() {&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   client = new MQTTClient(this);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   client = new MQTTClient(this);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   client.connect(&amp;quot;mqtt://&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;LeoniLeoni&lt;/del&gt;:&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;leonileoni&lt;/del&gt;@broker.shiftr.io&amp;quot;, &amp;quot;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;LeoniLeoni&lt;/del&gt;&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   client.connect(&amp;quot;mqtt://&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;YOUR_SHIFTER_IO_Username&lt;/ins&gt;:&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;YOUR_SHIFTER_IO_Password&lt;/ins&gt;@broker.shiftr.io&amp;quot;, &amp;quot;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;YOUR_SHIFTER_IO_Username&lt;/ins&gt;&amp;quot;);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   size(600, 600);&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   size(600, 600);&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Leoni</name></author>
	</entry>
	<entry>
		<id>http://hyperdramatik.net/mediawiki/index.php?title=Squares_together&amp;diff=1135&amp;oldid=prev</id>
		<title>Leoni am 5. Mai 2020 um 13:52 Uhr</title>
		<link rel="alternate" type="text/html" href="http://hyperdramatik.net/mediawiki/index.php?title=Squares_together&amp;diff=1135&amp;oldid=prev"/>
		<updated>2020-05-05T13:52:31Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;de&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Nächstältere Version&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Version vom 5. Mai 2020, 13:52 Uhr&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l3&quot;&gt;Zeile 3:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Zeile 3:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;and you receive the other player's keys in a different colour.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;and you receive the other player's keys in a different colour.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Bild&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Datei:Squares.jpg]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br/&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Leoni</name></author>
	</entry>
	<entry>
		<id>http://hyperdramatik.net/mediawiki/index.php?title=Squares_together&amp;diff=1134&amp;oldid=prev</id>
		<title>Leoni am 5. Mai 2020 um 13:50 Uhr</title>
		<link rel="alternate" type="text/html" href="http://hyperdramatik.net/mediawiki/index.php?title=Squares_together&amp;diff=1134&amp;oldid=prev"/>
		<updated>2020-05-05T13:50:38Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;a href=&quot;http://hyperdramatik.net/mediawiki/index.php?title=Squares_together&amp;amp;diff=1134&amp;amp;oldid=1132&quot;&gt;Änderungen zeigen&lt;/a&gt;</summary>
		<author><name>Leoni</name></author>
	</entry>
	<entry>
		<id>http://hyperdramatik.net/mediawiki/index.php?title=Squares_together&amp;diff=1132&amp;oldid=prev</id>
		<title>Leoni: Die Seite wurde neu angelegt: „This sketch receives OnMouseClick and MousePosition input.  Each position of the mouse is visible on the screen as a little square and sent to the other player…“</title>
		<link rel="alternate" type="text/html" href="http://hyperdramatik.net/mediawiki/index.php?title=Squares_together&amp;diff=1132&amp;oldid=prev"/>
		<updated>2020-05-05T13:39:04Z</updated>

		<summary type="html">&lt;p&gt;Die Seite wurde neu angelegt: „This sketch receives OnMouseClick and MousePosition input.  Each position of the mouse is visible on the screen as a little square and sent to the other player…“&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Neue Seite&lt;/b&gt;&lt;/p&gt;&lt;div&gt;This sketch receives OnMouseClick and MousePosition input. &lt;br /&gt;
Each position of the mouse is visible on the screen as a little square and sent to the other player,&lt;br /&gt;
and you receive the other player's keys in a different colour.&lt;br /&gt;
&lt;br /&gt;
https://live.staticflickr.com/65535/49857401148_0f6b53579f_c.jpg&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;java&amp;quot; line start=&amp;quot;2&amp;quot; highlight=&amp;quot;4-6&amp;quot;&amp;gt;&lt;br /&gt;
////////////////////////////////////////////////////////////////////&lt;br /&gt;
// S&amp;amp;&amp;amp;O SS2020 // course: *From Space to Space*&lt;br /&gt;
////////////////////////////////////////////////////////////////////&lt;br /&gt;
// this sketch receives keyboard input.&lt;br /&gt;
// each keypress is typed to the screen and sent to the other player,&lt;br /&gt;
// and you receive the other player's keys in a different colour.&lt;br /&gt;
// code based on example by Joël Gähwiler&lt;br /&gt;
// https://github.com/256dpi/processing-mqtt&lt;br /&gt;
////////////////////////////////////////////////////////////////////&lt;br /&gt;
&lt;br /&gt;
import mqtt.*;&lt;br /&gt;
MQTTClient client;&lt;br /&gt;
&lt;br /&gt;
////////////////////////////////////////////////////////////////////&lt;br /&gt;
///////////////////// DECLARE GLOBAL VARIABLES /////////////////////&lt;br /&gt;
////////////////////////////////////////////////////////////////////&lt;br /&gt;
&lt;br /&gt;
// !!! CHANGE p1 and p2 depending on which player you are !!! //&lt;br /&gt;
String mePlayer = &amp;quot;/typing-together/grey/p2&amp;quot;;&lt;br /&gt;
String otherPlayer = &amp;quot;/typing-together/grey/p1&amp;quot;;&lt;br /&gt;
////////////////////////////////////////////////////////////////////&lt;br /&gt;
&lt;br /&gt;
PFont f;&lt;br /&gt;
String t;&lt;br /&gt;
int letterWidth = 15;&lt;br /&gt;
int letterHeight = 40;&lt;br /&gt;
int x = letterWidth;&lt;br /&gt;
int y = letterHeight;&lt;br /&gt;
&lt;br /&gt;
////////////////////////////////////////////////////////////////////&lt;br /&gt;
&lt;br /&gt;
void setup() {&lt;br /&gt;
  client = new MQTTClient(this);&lt;br /&gt;
  client.connect(&amp;quot;mqtt://SpielObjekt:5p13l0j3ct@broker.shiftr.io&amp;quot;, &amp;quot;processing&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
  size(600, 600);&lt;br /&gt;
  background(100);  //set background colour&lt;br /&gt;
&lt;br /&gt;
  //printArray(PFont.list());  //print out list of available fonts&lt;br /&gt;
  f = createFont(&amp;quot;Courier&amp;quot;, 24);&lt;br /&gt;
  textFont(f);&lt;br /&gt;
  textAlign(CENTER);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void clientConnected() {&lt;br /&gt;
  println(&amp;quot;client connected&amp;quot;);&lt;br /&gt;
  client.subscribe(otherPlayer);&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
////////////////////////////////////////////////////////////////////&lt;br /&gt;
// RECEIVE &amp;amp; TYPE //&lt;br /&gt;
////////////////////////////////////////////////////////////////////&lt;br /&gt;
void messageReceived(String topic, byte[] payload) {&lt;br /&gt;
  t = new String(payload);&lt;br /&gt;
  println(&amp;quot;new message: &amp;quot; + topic + &amp;quot; - &amp;quot; + t);&lt;br /&gt;
  fill(200, 130, 130);  //the other player's text will be this colour&lt;br /&gt;
  text(t, x, y);  //draw key on screen&lt;br /&gt;
  x+=letterWidth;  //increment position&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
////////////////////////////////////////////////////////////////////&lt;br /&gt;
// SEND &amp;amp; TYPE //&lt;br /&gt;
////////////////////////////////////////////////////////////////////&lt;br /&gt;
&lt;br /&gt;
void keyPressed() {&lt;br /&gt;
  client.publish(mePlayer, str(key));  //send key to other player&lt;br /&gt;
  fill(100, 150, 150);  //your text will be this colour&lt;br /&gt;
  text(key, x, y);  //draw key on screen&lt;br /&gt;
  x+=letterWidth;  //increment position&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void draw() {&lt;br /&gt;
  if (x &amp;gt; width-letterWidth) {&lt;br /&gt;
    x=letterWidth;&lt;br /&gt;
    y+=letterHeight;&lt;br /&gt;
  }&lt;br /&gt;
  if (y&amp;gt; height-letterHeight) {&lt;br /&gt;
    y=letterHeight;&lt;br /&gt;
    saveFrame();  //save an image of the window into sketch folder&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
////////////////////////////////////////////////////////////////////&lt;br /&gt;
&lt;br /&gt;
void connectionLost() {&lt;br /&gt;
  println(&amp;quot;connection lost&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Leoni</name></author>
	</entry>
</feed>