r/learnjavascript • • Apr 23 '21

I'm making a new series about vanilla JavaScript game development for beginners

382 Upvotes

27 comments sorted by

17

u/frank0117 Apr 23 '21

First part focuses on 2 different sprite animation techniques, next part will be deep dive on parallax backgrounds

https://youtu.be/CY0HE277IBM

0

u/[deleted] Apr 24 '21

[deleted]

2

u/frank0117 Apr 24 '21

Hi, thank you, I will check the course out, I love net ninja. Sometimes I choose not to do things like arrow functions and destructuring in my tutorials aimed at beginners, because you wouldn't believe how many emails I get asking me to find bugs in people's code, some of the new techniques seem to be confusing for beginners. I also like to make the code easily transferrable to other languages by using just basics, I assume every language has arrays, for loops etc.

Thank you for this feedback, I will try to use more modern JavaScript and let's see how it goes :)

5

u/ex-igne-vita Apr 23 '21

Is it actually “vanilla” or are you using phaser or something. I’d love to read a tutorial about physics engines and stuff but it seems like people say “vanilla” and then list a dozen libraries they’re using.

11

u/frank0117 Apr 23 '21

I use only vanilla JS, no libraries. I already made many gamedev tutorials, mostly spaghetti code so beginners can follow. I'm planning to do more advanced design patterns next.

10

u/frank0117 Apr 23 '21

If somebody says vanilla and then use a library, they don't know what vanilla means :D

3

u/ex-igne-vita Apr 23 '21

yeah. it's a problem. i think people just think vanilla means "no jquery." cus jquery's in everything. or at least it used to be. 10 years ago people be like "i lost 10lbs with the jquery diet plugin" ..this looks interesting though will check it out for sure.

0

u/[deleted] Apr 23 '21

[deleted]

2

u/pantherstoner Apr 23 '21

No, that's his card's pin

3

u/frank0117 Apr 23 '21

haha, it's a significant date for me, well done for noticing. It's not my pin or my birthday though hehe

jQuery is gone now, they dropped it from everything, even Bootstrap, but in my company we still use it in some legacy code. If you know vanilla jQuery is quite simple to understand I think

5

u/ex-igne-vita Apr 23 '21

Aw my birthday is a significant date for you? You’re so sweet 🥲 now I’m definitely gonna check out your series

3

u/elementIdentity Apr 23 '21

Thanks for sharing, I’ll be following this!

I really liked the way you did your audio visualizer tutorial. That’s the kind of deep explanation we need more of IMO. The “why” of doing certain things is so key but seems to be glossed over in many tutorials.

3

u/frank0117 Apr 23 '21

Great feedback, I will try to remember and do it more often, thank you for taking the time to let me know

3

u/monsterbois Apr 23 '21

Love this. Can’t wait for it.

3

u/frank0117 Apr 23 '21

it will be multipart series, and then I will use all of it to make a game

2

u/AgentRR007 Apr 23 '21

Love it!!! They are very welcome.

3

u/frank0117 Apr 23 '21

thank you, very kind of you

2

u/evilsniperxv Apr 24 '21

Like others, I love this! Thank you and please finish the series. So many JS game dev creators start a series and then never finish!

2

u/frank0117 Apr 24 '21

You are right. Unfinished series can be frustrating. My videos are kinda standalone. It is a series but by the end of each video there is a self contained project that demonstrates the technique we were focusing on. I'm still trying to come up with a good tutorial format

1

u/gniziemazity Apr 24 '21

How long will the series be?

1

u/frank0117 Apr 24 '21

3 - 7 episodes, depending on how many ideas I will get along the way. The final game is still work in progress :D

1

u/gniziemazity May 01 '21

Cool! Are you making this for actual work or is it a hobby project?

1

u/ripndipp helpful Apr 24 '21

Now this is learning javascript!

1

u/frank0117 Apr 24 '21

Thank you :)

1

u/[deleted] Apr 24 '21

aww cute

1

u/frank0117 Apr 24 '21

Thank you :)

1

u/[deleted] Apr 24 '21

[removed] — view removed comment

2

u/frank0117 Apr 24 '21

Hi Gabriel, canvas is not that difficult. Especially if you know JS. I made canvas crash course and I cover most of canvas in 50 minutes and build advanced effect at the same time. Give it a try. Its a replacement for Flash and it can do a LOT of things these days :)

You can also make JS games without canvas using DOM manipulation, but animating divs is not efficient of performance, as you most likely know. You can't make particle effects with DOM manipulation, but canvas is great for it.