CodingTrain / CodingTrain/Suggestion-Box

Series about p5.js on mobile devices

Offen
#905 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Keine Sprachdaten
Sterne
570
Forks
85
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

I've seen there are a ton of methods in the p5 reference about the rotation, acceleration and other properties of a mobile device.

*I think it would be very inspiring to see a couple of examples* what to do with this, because, at least for me, I use my phone more than my laptop and having that high precision accelerometer unused is just a shame.

This could be a 10-min video about how to use this (just like 10 Print), or a longer series with many examples. For better viewability you could use the iPad you've been using as a soundboard in the past.

I encourage everyone to add other ideas, here are some I came up with:

## A Level for hanging pictures
Maybe good for a starter: The screen shows the angle of the device, so if you put the edge on a table it will say 0°, feel free to use radians ;)

## Pendulum
An ellipse connected to a line, hanging off the top/center of the screen, which always hangs downwards, even if the device is tilted. (If the device is moved sideways, the pendulum will accelerate and start swinging.)

## Marble on a Plate
Click the screen and a marble (ellipse) will appear. Depending on the rotation of the device it will roll off in a certain direction

### Marble in a Maze
create a small maze with [CC#10](https://github.com/CodingTrain/website/tree/master/CodingChallenges/CC_10_Maze_DFS_p5.js) and place the marble at the start, try to get to the end (without touching the borders)

### [Pong](https://github.com/CodingTrain/website/tree/master/CodingChallenges/CC_67_Pong_p5.js) vs. Computer
Sideways rotation of device --> position of slider

## Make something happen when you shake the device

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

Beginne mit der Durchsicht des p5-Referenzmaterials zu Geräterotation, Beschleunigung und Schütteln sowie der verknüpften CC_10 Maze DFS- und CC_67 Pong-Beispiele. Als abgeschlossen würde ein abgestimmter Umfang der Serie und fertiggestellte Beispiele oder Videoinhalte für mobile Geräte gelten; das Issue nennt keine spezifischen Dateien oder Tests.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
javascript
Bereich
content, mobile-dev
Issue-Typ
Dokumentation
Schwierigkeit
5/5
Geschätzter Aufwand
Über eine Woche
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
25/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.