Home games HTML5 Game 3 – Part 1: Vector2

HTML5 Game 3 – Part 1: Vector2

by admin



Next:
Setting up the Vector2 for 2D games.

If you are having trouble with your code try and copy the code from the source file below.

Source: http://www.farrisarts.com/demo/backup/rectangle.js

Twitter ► http://brentfarris.com/twitter
Website ► http://brentfarris.com
GitHub ► http://brentfarris.com/github

source

Related Videos

8 comments

@chaquator August 15, 2024 - 3:17 am

would be so much easier if javascript supported operator overloading

@moneymayhem2000 August 15, 2024 - 3:17 am

What is the purpose of Vector2?

@alexkalinin6899 August 15, 2024 - 3:17 am

also, it doesnt matter which way round they are, because if it becomes negative, when it gets squared, it will always be positive, unless you are dealing with imaginary numbers

@alexkalinin6899 August 15, 2024 - 3:17 am

do you even pythagoras bro 🙂

@mercyhenderson2011 August 15, 2024 - 3:17 am

the letter too small i can"t read it. more bigger plz thank u

@BrentFarris August 15, 2024 - 3:17 am

Thanks for the feedback! 🙂

I realize how right you are, I have created a simple demonstration video to explain myself/reason for Vector2 in the framework and how it can be used 🙂

DfIvnMJJVrg

Let me know your thoughts!

@BrentFarris August 15, 2024 - 3:17 am

Hey glad you like it! :). Thanks for the support, let me know if you have any questions or suggestions. 🙂

@davedave9 August 15, 2024 - 3:17 am

This series of tutorials is awesome! Thank you very much for making it!

Comments are closed.