p5play Drag and Drop Games Tutorial

  Рет қаралды 475

Rob Duarte

Rob Duarte

9 ай бұрын

This is a short tutorial on how to use the p5play library to make games where you drag things onto other things. A paper-doll / dress-up game is a good example and that's what I show in this video.
The code can be found here on GitHub: github.com/FSUdigitalmedia/p5...

Пікірлер: 4
@sofiamesaginer2612
@sofiamesaginer2612 9 ай бұрын
💯💯👍🏽
@IronRiviera
@IronRiviera 9 ай бұрын
Love programming. Learned assembly on an 8080 in 1983
@nargesshm2715
@nargesshm2715 3 ай бұрын
Thanks for this video! I am wondering how it is possible that two different dresses do not interact with each other, and also whether they can snap back to their initial positions if we want to put them back where they were.
@RobDuarte
@RobDuarte 3 ай бұрын
Getting the clothes to not interact with each other is as simple as adding `jacket.overlaps(dress)` at the end of the setup() function. You can have them snap in positions other than the doll by essentially duplicating the if statement that determines whether the object should snap to the doll (using the dist() function) and giving it a different set of coordinates for its "home" position. It might look something like: if (dist(dress.x, dress.y, dressHome.x, dressHome.y) < 20) ... good luck!
ASMR Programming - Spinning Cube - No Talking
20:45
Servet Gulnaroglu
Рет қаралды 3,8 МЛН
Drag and drop in react was a lot easier than I thought
6:16
Web Dev Cody
Рет қаралды 117 М.
Double Stacked Pizza @Lionfield @ChefRush
00:33
albert_cancook
Рет қаралды 129 МЛН
UNO!
00:18
БРУНО
Рет қаралды 3,9 МЛН
SPILLED CHOCKY MILK PRANK ON BROTHER 😂 #shorts
00:12
Savage Vlogs
Рет қаралды 35 МЛН
Grid-based Games (JavaScript tutorial)
36:10
Franks laboratory
Рет қаралды 4,7 М.
Intro to p5play - 1.1 - Sprites
33:35
David Bouchard
Рет қаралды 799
Stop, Intel’s Already Dead! - AMD Ryzen 9600X & 9700X Review
13:47
Linus Tech Tips
Рет қаралды 1,3 МЛН
Tmux has forever changed the way I write code.
13:30
Dreams of Code
Рет қаралды 954 М.
p5play: tiles and maze-like games
15:37
Rob Duarte
Рет қаралды 376
SwiftUI Drag and Drop with Transferable Custom Object
26:33
Sean Allen
Рет қаралды 20 М.
Opensource, Uncensored, Unbothered. - Flux.1 Image Gen
18:59
MattVidPro AI
Рет қаралды 31 М.
How to REALLY learn C++
8:13
The Cherno
Рет қаралды 777 М.
Double Stacked Pizza @Lionfield @ChefRush
00:33
albert_cancook
Рет қаралды 129 МЛН