background preloader

Depixelizing Pixel Art

Depixelizing Pixel Art

Tutorial 4: Make a Game in 60 Minutes This tutorial helps you learn about the process of game construction, while guiding you through writing a relatively complete game. The code in this tutorial illustrates the technique described in the text. A complete code sample for this tutorial is available for you to download, including full source code and any additional supporting files required by the sample. Understanding the basics of game coding is the single most-difficult step for a beginning game programmer. Think of the idea of your ship on the screen. If, for instance, you wanted to add a second ship that would also draw on the screen, and had the ability to move and turn, you would have to create a copy of each of the variables you were using for the first ship. For a game that will ultimately have more than a dozen objects all drawing and moving around, this is unworkable. Start by right-clicking on your project in Solution Explorer, and select Add, then Class. Start with drawing the ship's model. Figure 1. Figure 2.

JavaScript 101, Beginner's Guide to Learning Block / Inline JavaScript JavaScript is a programming language that web browsers understand. You can use it to make your web pages interactive by: Responding to user actions and changes on the pageManipulating the web page’s contents and behaviourCommunicating with the user directly You can do just about anything you want with a web page, using JavaScript. In this introductory tutorial and the series to follow, I’ll introduce the JavaScript language and how to write it, through a series of practical worked examples. Example 1: Hello World! “Hello World!” What we want to do When the user clicks a button, show the message, “Hello World!”. Step 1: Create a button Our web page needs a button to click: Let’s explain the various bits of the HTML: Try clicking the button… Did anything happen? This is exactly right, because we haven’t told the page that anything should happen when the button is clicked. Making something happen with inline JavaScript The easiest way is to write what we want to happen into the button tag itself.

The Shapes of CSS Learn Development at Frontend Masters CSS is capable of making all sorts of shapes. Squares and rectangles are easy, as they are the natural shapes of the web. Add a width and height and you have the exact size rectangle you need. Add border-radius and you can round that shape, and enough of it you can turn those rectangles into circles and ovals. We also get the ::before and ::after pseudo elements in CSS, which give us the potential of two more shapes we can add to the original element. Square Rectangle Circle Oval Triangle Up Triangle Down Triangle Left Triangle Right Triangle Top Left Triangle Top Right Triangle Bottom Left Triangle Bottom Right Curved Tail Arrow via Ando Razafimandimby Trapezoid Parallelogram Star (6-points) Star (5-points) via Kit MacAllister Pentagon Hexagon Octagon Heart via Nicolas Gallagher Infinity via Nicolas Gallagher Diamond Square via Joseph Silber Diamond Shield via Joseph Silber Diamond Narrow via Joseph Silber Cut Diamond via Alexander Futekov Egg Pac-Man Talk Bubble TV Screen Lock

Alternative to CAPTCHA - Protect Web Forms from Spam with Javascript What’s the ideal check to protect your web forms from spambots? No one really likes having to copy squiggly letters from a CAPTCHA image, but is there a better alternative? The ideal check would be one that most people don’t ever notice, but which effectively keeps out all spambots. In this tutorial, I describe a technique that uses Javascript to recognise human activity based on screen events, which works very well for us. In a discussion on Scratch Forums on the merits of CAPTCHA, one of our members suggested a possible alternative that detected JavaScript events (mouse events, keystrokes) to show that it’s a human completing the form. I took on the challenge of creating a simple JS-based alternative to CAPTCHA, which I’ll explain below. High-level Requirements Am I Human? First of all, our form will need some way of sending the answer to “am I human” through to the back-end script. For this, I’ll just use a hidden field. Switch it For Humans Testing Results with Script Here’s what I do:

Beginning Game Development: Part VIII - DirectSound | Coding4Fun Articles Welcome to the eighth article on beginning game development. We have spent a lot of time working with the graphics capabilities of DirectX. We also covered how the DirectX API allows us to control input devices. Sound in Games Sound creates an ambiance in a game that provides for a more immersive game experience. Sound effects also provide the same audible cues we expect in real life, such as the direction and speed of a person approaching us based on the volume, direction, and frequency of the footsteps. In BattleTank2005 I want to integrate sound in the following way. Secondly, I want to be able to play background music during game play and I want to control what music plays when in the game. I am going to cover the first requirement in this article, and then cover sound effects and playing MP3 and WMA files with the AudioVideo namespace in the next article. DirectSound The DirectSound namespace only supports playing 2 channel waveform audio data at fixed sampling rates (PCM). Device

free tutorials Have you ever read through a chapter in one of those Learn Such and Such in 21 Seconds books and realized that somewhere along the way you had started daydreaming about how you would spend a trillion dollars if you were Bill Gates? Well, it happens to me all the time. Computer books are boring. In fact, most technical writing out there bites the big one and there's no sign that the situation is going to get any better in the near future. The really unfortunate thing about this predicament is that now, more than any other period in the history of computing, is when we really need good, clear writing out there. Whether the established priesthood of computer science likes it or not, the web has opened the flood gates and computer science is being secularized post haste. Well, the fact is that most people learning how to make a living on the web are not morons and if given the proper instructions can do just about everything they want to with their web sites, if not more.

CSS Inliner and Email Fixer - Mally The Free HTML Email Marketing Tool | Sign-up.to Emails can be read in thousands of combinations of operating systems, email clients and internet browsers. Creating an email which will display correctly across all these platforms requires a lot of resources, patience and testing. Mally will warn you of potential issues in your email campaign before it's too late. To use Mally, simply paste your HTML into the text area provided. When he analyses your email he won't overwrite or save your campaign in any way. Gestures and Tools for Kinect - Eternal Coding You have certainly not missed (as a regular reader of this blog ) that the Kinect for Windows SDK is out! For now, however, no gestures recognition services are available. The detection of such gestures enable Powerpoint control the Jedi way ! If you are not familiar with the Kinect for Windows SDK, you should read a previous post that addressed the topic: There is an infinite number of solutions for detecting a gesture. Algorithmic search Template based search Note that these two techniques have many variants and refinements. You can find the code used in this article just here: GestureDetector class To standardize the use of our gestures system, we will therefore propose an abstract class GestureDetector inherited by all gesture classes: This class provides the Add method used to record the different positions of the skeleton’s joints. Skeleton stability

Related: