Загрузка...

Coding Challenge #111: Animated Sprites

In this coding challenge, I load a sprite sheet and create multiple animated sprites with the p5.js library. Code: https://thecodingtrain.com/challenges/111-animated-sprites ?️ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/vhnFx1mml ? Previous video: https://youtu.be/DhFZfzOvNTU?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH ? Next video: https://youtu.be/p4Iz0XJY-Qk?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH ? All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH References: ? Horse Sprite Sheet: https://opengameart.org/content/2d-platformer-art-assets-from-horse-of-spring ? Sprite (computer graphics): https://en.wikipedia.org/wiki/Sprite_(computer_graphics) Videos: ? Guest Tutorial #6: The Modulo Operator with Golan Levin: https://youtu.be/r5Iy3v1co0A ? Coding Train Live 147: https://youtu.be/Sz52VkVcW5o?t=9180s Related Coding Challenges: ? #88 Snowfall: https://youtu.be/cl-mHFCGzYk Timestamps: 0:00 Introduction 0:58 Cite resource from opengameart.org 1:45 Show sprite sheet 2:57 Show sprites' coordinates 3:15 Let's code 3:18 Draw entire sprite sheet 5:18 Draw individual sprites 7:46 Draw different sprites with the modulo operator 9:02 Create a Sprite class 10:54 Define the show function 11:45 Define the animate function 12:07 Debug Sprite class 13:00 Create a sprite object 13:31 Add multiple sprites 14:30 Animate sprites at different speed 16:25 Move sprites horizontally 16:40 Refine animation 17:45 Conclusion and creative possibilities Editing by Mathieu Blanchette Animations by Jason Heglund Music from Epidemic Sound ? Website: http://thecodingtrain.com/ ? Share Your Creation! https://thecodingtrain.com/guides/passenger-showcase-guide ? Suggest Topics: https://github.com/CodingTrain/Suggestion-Box ? GitHub: https://github.com/CodingTrain ? Discord: https://thecodingtrain.com/discord ? Membership: http://youtube.com/thecodingtrain/join ? Store: https://standard.tv/codingtrain ?️ Twitter: https://twitter.com/thecodingtrain ? Instagram: https://www.instagram.com/the.coding.train/ ? Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH ? Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA ? p5.js: https://p5js.org ? p5.js Web Editor: https://editor.p5js.org/ ? Processing: https://processing.org ? Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new #spriteanimation #oop #p5js #javascript

Видео Coding Challenge #111: Animated Sprites автора Программируй Деньги
Яндекс.Метрика

На информационно-развлекательном портале SALDA.WS применяются cookie-файлы. Нажимая кнопку Принять, вы подтверждаете свое согласие на их использование.

Об использовании CookiesПринять