background preloader

Beginning Game Development: Part VIII - DirectSound

Beginning Game Development: Part VIII - DirectSound
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. Now we are going to look at another facet of DirectX, the ability to control sound devices. This capability is found in the DirectSound and AudioVideoPlayback namespaces. 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. DirectSound The DirectSound namespace only supports playing 2 channel waveform audio data at fixed sampling rates (PCM). Device

http://channel9.msdn.com/coding4fun/articles/Beginning-Game-Development-Part-VIII-DirectSound

Invent Your Own Computer Games with Python - Chapters Chapter 1 Read online: Chapter 1 - Installing Python Videos: Chapter 2 Read online: Chapter 2 - The Interactive Shell Chapter 3 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.

Mahmoud Essam presents: Become a Programmer, Motherfucker If you don't know how to code, then you can learn even if you think you can't. Thousands of people have learned programming from these fine books: Learn Python The Hard Way 21 Really Useful & Handy PHP Code Snippets PHP is the most widely used web based programming language that powers millions of websites including some of the most popular ones like Facebook. Here are 21 really useful and handy PHP code snippets that every type of PHP developer will find useful. 1. Cast Thermite So you made it through the intro? Good. There's something that must be said before we go any further. I'm not liable. For anything. Do your homework and be sure you know what safety precautions to take when handling something like thermite, such as not looking at it during ignition since it gives off harmful ultraviolet light!

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. Mahmoud Essam presents: repl.it - Python Help What is repl.it? It is an online environment for interactively exploring programming languages. The name comes from the read-eval-print loop, the interactive toplevel used by languages like Lisp and Python. How do I start?

CSS3 Animation Cheat Sheet - Justin Aguilar How it works The CSS3 Animation Cheat Sheet is a set of preset, plug-and-play animations for your web projects. All you need to do is add the stylesheet to your website and apply the premade CSS classes to the elements you want animated. The CSS3 Animation Cheat Sheet uses CSS3 @keyframes and works on all the latest browsers (that's IE 10). Using CSS3 @keyframes, you don't have to worry about positioning the element to accomodate the animations - it will animate into place. Also for users with older browsers, the animated element will be visible and in place, even if the animation doesn't trigger.

25 Books To Sharpen Your Social Skills (and Transform Your Career) Humans are strange creatures. Luckily, since you are one, you already have all the tools you need for getting along with them. Even though they come so naturally to some people, no one is born with the skills for fitting into society; these skills are learned over time. It’s never too late to improve your ability to meet people, make friends, and communicate. 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!

10 Best Sites to Learn How to Code Quickly Web development has become a very important topic on the web these days and the internet has become the best source for developers to learn more about code. It is a very easy way and a very popular one and the developers can find important information related to anything on the internet very easily and do not have to face any kind of difficulty to lean new development ways. Web application development has some of its own unique features. Recycled Wine Bottle Torch 08.09.09 | by Erik Anderson Whether it’s product branding, package design or projects for ourselves, we’re pleased when we find a solution that’s very effective and creative, while keeping resources to a minimum. This idea is very inexpensive idea and it’s a great way to recycle a wine bottle. See how this simple idea inspired this brand and wine bottle design.

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.

HTML5 Presentation In March 1936, an unusual confluence of forces occurred in Santa Clara County. A long cold winter delayed the blossoming of the millions of cherry, apricot, peach, and prune plum trees covering hundreds of square miles of the Valley floor. Then, unlike many years, the rains that followed were light and too early to knock the blossoms from their branches.

Related: