Unity3D: Programming a machine gun – Part 2
Posted by Dimitri | Feb 5th, 2011 | Filed under Featured, Programming
This is the second and last post of this series that explains how to code a machine gun in Unity3D. The first post explained how to make the automatic firing mechanism, and this one will focus on how to set-up the machine gun, the bullet and explain the code that makes it all work. Also, a Unity3D project with all the source code discussed on the series is available for download at the end of the post.
So, let’s start by setting the machine gun. The 3D model of the gun can be any one, you don’t even have to create a 3D model at all, it is possible to use Unity3D’s cubes and other primitives. The only thing that one must know is that the muzzle of the gun must be a completely separate element. This is crucial when making the gun at an external 3D modeling application such as 3D Studio Max, Blender or XSI. Continue reading: “Unity3D: Programming a machine gun – Part 2”
Unity3D: Programming a machine gun – Part 1
Posted by Dimitri | Feb 2nd, 2011 | Filed under Programming
This is the first of two posts that will explain how to program a machine gun at the Unity3D game engine. This post will focus on coding the element that defines a weapon of this type: continuous automatic firing. It will show two different ways to achieve this behavior: one based on the Invoke() method call, and the other based on Unity3D’s coroutines. As any other post series in this website, a Unity3D project with all the source code will be available at the last post of the series.
All code in this post will be in C#, but for those who don’t use it, a JavaScript version of the code will be available for download at the end of the post.
Continue reading: “Unity3D: Programming a machine gun – Part 1”
Android: Creating a button to load images from a remote server
Posted by Dimitri | Jan 28th, 2011 | Filed under Programming
This is a follow up to the post published two days ago that explained how to load images into a View’s Canvas from different sources. Differently from the last post, I will explain how to load images from a remote server after the View has been loaded and rendered on the screen. Also, this post features how to download an image after pressing a button.
So, let’s get to it. The first thing the reader might be thinking is that we just need to create a button and place the code that downloads the image inside it. It’s not as simple as that, due to these problems: Continue reading: “Android: Creating a button to load images from a remote server”
Android: loading images from a remote sever, SD card and from the Resources folder
Posted by Dimitri | Jan 26th, 2011 | Filed under Programming
As stated on the title, this post will explain how to load a image from 3 different sources: the SD card, from a remote server and from the Resources folder. Since the methods and code used to load these images from these sources are different from one another, this post is going to be divided into three different parts, one for each location.
Select one of the following links to go to a specific part of the post: Continue reading: “Android: loading images from a remote sever, SD card and from the Resources folder”
Retro Review: California Games (SMS)
Posted by Dimitri | Jan 20th, 2011 | Filed under Retro Games
California Games was developed by Epyx and released to almost all platforms that where available back in 1987. Two years later, it arrived on the Master System, ported by Sega itself. For those who never played the game, California Games is a compilation of 6 unconventional sport games: half-pipe (skateboarding), footbag, surfing, skating, BMX (dirt) and flying disc (frisbee).
Before highlighting the gameplay details of each one of the sports (or as the game refers to them, “events”), the elements of the game that are common to whatever sport the player selects, will be discussed.