For those who want to create their own sprites, you can use this page to upload your images to create a sprite sheet, it's the exact same json object format: www.codeandweb.com/free-sprite-sheet-packer Happy Training! Get it? Training, coding train, happy coding, nvm.
You all prolly dont give a damn but does someone know of a method to get back into an instagram account?? I stupidly lost the login password. I would love any tips you can offer me.
@Koda Otis Thanks so much for your reply. I got to the site on google and I'm waiting for the hacking stuff now. Looks like it's gonna take a while so I will get back to you later with my results.
Daniel I have to admit that I stumbled across your videos quite by accident... I couldn't even tell you the search I was doing at the time, but have enjoyed (believe it or not) MOST of your video series... (yes, I've been watching for a while) I got started WAY,WAY back in 1980 with my first computer and BASIC... soon transitioned to assembler because of memory and performance restrictions writing and replicating the THEN hottest video games. I would say I have a solid and unique perspective on a LOT of what has to happen behind the scenes to make all of what is demonstrated in your series look so easy. (... standing on the shoulders of giants ...) Your enthusiasm and joking self deprecation make the series entertaining and fun to watch, not to mention informative... and reminds me that it _IS_ ok to stand on the shoulders of giants and NOT have to do all of the grunt work yourself... you reminded me that programming can and should still be fun... even after almost 40 years... and that sometimes "good enough" is MORE THAN good enough. Are there areas where less than ideal programming practices are demonstrated... sure... but more often than not you call yourself out... but those instances are dwarfed but the fun you bring back to something I've loved for decades that had, as of late, become sadly tedious. Thanks again for the fun... and DO NOT STOP HAVING FUN (as you obviously do) while making the series Rock on good sir!
WhytePantherLF This comment is inspirational. I started a bit later then you, Sir. I started programming in 1985 and it has been a long journey. My impressions are almost identical to yours. I'm enjoying these videos and learning new ideas (which is a good sign at my age! 🙂)
School: "You can't use Wikipedia as a source for information" Literally everyone who is not in school: "Let me just use Wikipedia to learn something new"
Very good. I learnt to do this 20 years ago using DirectX (6.21 - when it still had 2d support that wasn't an afterthought), and raw c++... Maybe a bit of the windows SDK mixed in to make it marginally easier to load a bitmap... But of course, there wasn't all that stuff to help out, and I had to do a whole heap of manual memory copying code... Fun times. XD I've still got Bresenham's line drawing algorithm burnt into my mind, since line drawing is THE most basic thing (after drawing individual points) of most graphics routines. Wanna draw a box? 4 lines. Wanna draw a filled box? Many lines. Wanna draw a circle? Line drawing algorithm with a more complex error function. Triangles? Draw diagonal lines down the screen then connect those lines with more lines. Polygons? See triangles. 3d polygons? Draw triangles but with some extra steps to convert the coordinates of your triangle's points. There are complications all along the way, but when you get right down to it, pretty much anything you can think of starts with being able to draw lines. Drawing textured polygons? Draw a triangle, but when drawing the connecting lines change the pixel colour constantly. (according to a function that takes some texture mapping parameters and determines where each pixel in the texture space belongs on your polygon - these functions get increasingly complex as you add more details, like perspective correction, bilinear filtering, mipmapping anisotropy, etc.) Want to draw lit polygons? Learn how to draw gradient patterns - again, vary the colour of your line's pixels, but this time according to more maths, rather than texture mapping. (though that's also maths.) That one algorithm is the basis of so much. And what is that algorithm about? How to approximate a line when all you've got to work with is a regular grid of something. Obviously it's usually used with pixels on raster displays nowadays, but it was developed for plotters, and it works with other stuff that has similar properties - minecraft blocks, lego, stacks of DVD's, lights in an office tower, beads (the artistic kind, or something like a game of 'go' or 'reversi') and so on.
I am currently working on a simple game development practice and I stuck at animating my characters! Your video suggested a very nice approach to do this. Fantastic!!! Thank you very much.
What's so nice about Dan's videos is, that all of them are like mini-lectures, so you learn all of the beginner and intermediate programming without it even feeling like lessons. It's just a really effective way of learning, at least for me ^^
I study the Game engine Unity 2017.3.0 I also use the sprite animation like you instructor. Although the code is c sharp / js(small part) but I like to learn your logic and I also study JS on my course. Thanks so much
Hi Daniel, since these are free pictures, you might want to publish them with a few changes: a horn between the ears makes it a unicorn; few changes give the skin rainbow colours. I use more boring pictures from this site: a set of raven in every stage of flight and with your info on running horses . . . - can change speed - give it a Z-value without mathematical meaning but higher Z-value decreases size and gives the illusion of depth - Use random x,y (with x always increasing to get a flock-idea) and the y-value pushes them to the top of the screen so that the major part remains in the sky. Perlin Noise would be beautiful for the y-value. Unfortunately, most interesting picture(sequence)s are made with Blender, on this site anyway, and not to be used in a JavaScript app. P.S. Watched your live vid yesterday - can not wait to see the compiled lessons :)
Nice and fun video to watch (as always!). Now we have got the sprites moving, could we perhaps animate a sprite in a cool way, like turning around slowly before beginning to walking from point A to another point OR maybe even some realistic AI ish movement going randomly from one place to another - something like a real person does: we stop, turn around and then comtinue walking to another point, rather than violently spin around the axis and start moving immediately. All it "an advanced sprite animation". And how about combining two sprites? Say, a helicopter and its rotor/? Thank youuu!!!
Daniel! you picked the wrong horse. The horse he was showing you is a fantastic piece of sprite art. I really think it is considered to be one of the best pieces out there!. I bet that he was thinking: He wanted to see a great programmer like you, work with a great piece of art like that. How fatastic would that be??. the horse you picked was completely ok, medium avrigge random ok. It's by the way, very typicol programmers to be atrakted to medium random avrige completely ok art.. But nice video! Thanx, Im gona use that FANTASTIC HORSE my self :) If I ever succeed in making a program with no error LOL!
Your videos are fantastic. I loved watching your video. Please make a video on how we can create parallax (infinite scrolling backgrounds) and use tilemap in p5js.
good job ! love your videos ! you are a wonderful teacher ! hope you will continue and keep your flame ! love how you describe the path of mind to obtain what you want to realize
The problem with using a horse is that it uses different techniques at different speeds. Like a human or any other being. So it will always look kindof stupid when altering its speed.
Awesome video and could you do a part 2 where you had multiple animations that you could switch between for example, running and jumping? Edit: Also I just realised that the link on your website to the code (because I was trying to get the json file and image with all of the horse sprites on) doesn't work as the folder which you download is empty
hi Dan so iv been watching your html tutorials lately and thare is one thing no one in all the videos iv serched has covered, that is how do i make a link like a text object i click on to take me somwhere else is that posable plz help i wouldnt ask this unless thare is no one that knows
I currently don't have a computer but I want to get some code time in. Is there a specific android application that you would suggest to code? I have majorly enjoyed your code for awhile and would like to test some things on mobile
Has anyone looked at the Processing version of this on the Github? I am looking at it but it doesn't actually animate the sprites, just floats one image across the screen.
NEXT CHALLENGE: Html5 screensaver that works like the usual ones. ie: activates while afk,de-activates on mouse move or keydown,and make it work with html,js and CSS combined. good luck.
THIS IS AMAZING! now let say i would then like to add a mouse pressed function*? so that when i click on a horse it ceases its animation and changes into a seated horse lets say. How would i go about that? Im new to the coding world. (sorry if its a simple question) :D
Would you mind asking at discourse.processing.org/! It's a better platform for Processing and p5.js related code questions. You can share code there easily! Feel free to link from here to your post.
Hi ! I love what you do and your videos, i want to try myself buti got 1001 errors on processing 3.4 and p5.js like SyntaxError:Expected an operand but found class at the class Sprite of this video, and also got a syntaxError for the let so i use var
I need to play 4 images in a row after each other in repeat, I succeed but the previous image shown stays visable, how can i remove it (I use an array to play the images in a row, so I think removing the previous image of the current image, but I don't know how)
Hi, how can i add images to the Javascript on CodePen, i knew that you need to put it on a cloud server but what do i have to do after that using the link on the loadImage fonction doesnt seems to work, help plz
Hi, I have been trying to figure something out for hours now with no luck. Does anyone have a simple idea on how to flip an image so that you can control a sprite running left or right with the keyboard arrows? I have tried using scale(-1,1) but it messes up the position of the sprite as the position is also inverted. I also tried using p5.play, but I would like to learn the basics without additional libraries. Many thanks. Steve
I think I finally figured it out. Here is a still image flipped. Can anyone tell me if this is the best way? editor.p5js.org/MrBusch/sketches/1tz-9lk_A
why don't you try to implement this on one of the games like flappy bird or the snake game that you made? btw HUUUUUUUUUUUUUUUUUUUUUUUUGE fan of yours.
Could somebody help me out? I want to add multiple spritesheets with each of them containing their own .json file to give my game characters different animations. Been trying for days now and I can't get multiple spritesheets to work.