Тёмный

p5play Drag and Drop Games Tutorial 

Rob Duarte
Подписаться 4,5 тыс.
Просмотров 606
50% 1

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/FSU...

Опубликовано:

 

14 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 4   
@IronRiviera
@IronRiviera 11 месяцев назад
Love programming. Learned assembly on an 8080 in 1983
@nargesshm2715
@nargesshm2715 5 месяцев назад
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 5 месяцев назад
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!
@sofiamesaginer2612
@sofiamesaginer2612 11 месяцев назад
💯💯👍🏽
Далее
Intro to p5play - 1.1 - Sprites
33:35
Просмотров 904
SwiftUI Drag and Drop with Transferable Custom Object
26:33
Grid-based Games (JavaScript tutorial)
36:10
Просмотров 5 тыс.
Starting Your Unity Game Flawlessly (8 Steps)
9:51
Просмотров 5 тыс.
A new approach to container and wrapper classes
25:27
Просмотров 262 тыс.
Drag and drop in react was a lot easier than I thought
6:16
p5play: tiles and maze-like games
15:37
Просмотров 406
React drag and drop sort list
23:34
Просмотров 50 тыс.
ASMR Programming - Spinning Cube - No Talking
20:45
React Drag And Drop Tutorial - React-DND Made Simple
28:43