background preloader

Programming

Facebook Twitter

Video + canvas = magic. You’ve already learned about the <video> and <canvas> elements, but did you know that they were designed to be used together? In fact, the two elements are absolutely wondrous when you combine them! I’m going to show off a few super-simple demos using these two elements, which I hope will prompt cool future projects from you fellow web authors. (All of these demos work in every modern browser except Internet Explorer.) First, the basics If you’re just starting with HTML5, you may not be familiar with the <video> element and how to use it. The <video> element contains two attributes: @controls and @loop. Then, inside the <video> element, we have three child <source> elements, each pointing to a different encoding of the same video. See this code in action, playing the intro to one of the greatest cartoon series of all time.

(A note about fallback: all of these demos assume that your browser has <video> support, which isn’t true in IE8 or earlier. Now, a simple example Done? <! },false); HTML5 Video. Unity Script Reference: Welcome to the Unity Scripting Reference! This section of the documentation contains details of the scripting API that Unity provides. To use this information, you should be familiar with the basic theory and practice of scripting in Unity which is explained in the Scripting section of our manual. The scripting reference is organised according to the classes available to scripts which are described along with their methods, properties and any other information relevant to their use. The pages are extensively furnished with example code that you are free to use for any purpose without crediting Unity. The examples can be viewed in any of the three supported languages (C#, JavaScript and Boo) using the menu at the top of each page.

Subsections of the reference can be selected using the menu to the left. 2D Fighter Part 1. 2D Fighter Part 22D Fighter Part 32D Fighter Part 42D Fighter Part 52D Fighter Part 62D Fighter Part 72D Fighter Part 7.52D Fighter Part 82D Fighter Part 92D Fighter Part 10 Hello coders! This is part 1 of tutorial series on how to code your first 2D fighter! A few things I am going to assume before we get started: Have game maker 8.1 set up (Standard)Know terminology: Sprites, Objects, Instances Is that it you ask? If you don't know the differences between objects, sprites and instances, you can check out a few of my other tutorials for the absolute beginner!

Ever want to make your own 2D fighter? What you will learn and make if you follow through with my series (Basics to Advanced) Starting out HealthbarSprites and AnimatingKeys to Attack/Walk/JumpPoint Collisions (Fist hitting face/body/foot)onHIT SpecialEffects The heart of the game Physics EngineScreen Shake on HitScreen Shake on JumpCamera /Move left/Move right/Zoom in/Zoom out/Special AttacksJuggling opponentCombos A few more misc things.

Binary Converter Live Text to to Binary Translator - ConvertBinary.com. Convert unity javascript (unityscript) to C#