Wednesday 20 May 2015

Black Jack Game Sounds


A Gentlemen’s Game

About:
Blackjack game in an old wild western theme, Main menu shows the outside of a saloon in a desert town in the wild west, maybe have some tumbleweed rolling across the menu in an animation, main menu soundtrack would be much louder than the in game music.

Menu-
The main menu would feature two options “Play” and “Quit” in the centre of the screen behind there would be an old western style saloon with savannah/desert emptiness in the background some dead trees or plants would be animated in the background. In the foreground there would be tumbleweed rolling across the scene every now and then with a mini sand storm cover mask would cover the screen briefly. The soundtrack would have an old western theme, with distinguishable acoustic guitar and other western harmonic sounds.

In-game
While in-game the soundtrack would be more quite than the main menu track, there are two types of music that could be played in-game. The first is a grand piano sort of jingle, it would be edited to make it feel as though it were in the room in-game this could be achieved by using surround sound and having the main volume of the piano coming from a certain direction. There would also be an old guitar and might be slightly un-tuned to give it an old broken western feel. One way in which I can record sound for the music is at home, I personally do not play guitar, however my I could get my brother to make up a western piece. A piano would also be in the track however it would be much quieter than the guitar sound. I could achieve the piano sound with an electronic keyboard wired to a computer and could then be edited in Adobe Audition.

Foley and other in-game sounds.
Other in-game sounds that would be overlaid with the music would mostly be ambient sound such as people talking, glasses ringing. On the main menu were the background is a saloon, there would be the sound of tumbleweed rolling across the ground, this sound in particular would be difficult to achieve, however a similar sound may be accomplishable with shaking of bushes. Other sounds include desert wind howling this would be very hard to obtain myself, as desert wind has a higher pitch sound that normal wind you hear every day so this Foley would need to be found in online sound libraries. Other menu Foley would be sounds being made for the clicking of options such as ‘play’ and ‘quit’ these would be a simple clicking sound (which could be achieved by a purposefully loud mouse click) which would be tweaked in audition to achieve a deeper tone and lower frequency.
In-game Foley would be for the most part the sound of cards being dealt which could be achieved with a normal set of playing cards. My blackjack game would include wooden gambling chips but would not look like the common coloured gambling chips of today, there would be a sound for movement of the chips as well. Lastly I might consider adding a edited voice of your actions, for example; when the player chooses to hit or stand, the player or dealer (which in game the player would just be able to see the bottom of his waist coat) would announce your actions. This is done in the game Red Dead Redemption which is an action/adventure open world game set in the closing days of the wild west, in the game, games such as blackjack and poker can be played a lot of my ideas stem from the mood and atmosphere of the in-game blackjack seen in Red Dead Redemption. It is also in this game where the player himself calls out what is happening as they would do in real life. This can be seen here: https://www.youtube.com/watch?feature=player_detailpage&v=D-aaeY_5Jok#t=41

Legal Considerations
For the main music I may have to get short clips of guitar sound as I do not play guitar myself, However I do have people available to me such as family members who would play a guitar piece for the game, other than the music there is not many other legal considerations to take for the sound of the game.






Creating the Sound:
The sound was all recorded in garage band on a Mac, the sounds I recorded included random speeches that can be heard at random moments in the game such as “pour me a drink” This was done using just a Microphone and recording friends speech.


(To the left are voice recordings, and bellow shows the background music.) 



The main background music was taken off from a sound library, and was edited in Adobe Audition by adding reverb, echo and other enhancements. I did think about using saloon piano music however I could not find any suitable for my game and none fit in with the style and felt a bit too fast paced. As well as adding effects to the music, I also added instruments to it including a slow pitch organ which was edited to fit the tone of the original music, I then fit the music in and lowered the frequency so it acted as a base instrument sound and is mostly constant through the entire track.











In game graphics.

Monday 11 May 2015

Converting a game to Android

Blackjack game for mobile
Samsung Galaxy S6 edge.
Display:
Type-Super AMOLED, 16M colours
Size-5.1”
Resolution-1440 x 2560 ( 577 PPI )
Protection-Corning Gorilla Glass 4, Curved edge screen
Hardware:
OS-Android v5.0.2 (lollipop)
Chipset- Exynos 7420
CPU-Quad-Core 1.5GHz Cortex –A53 & Quad-Core 2.1GHz cortex A57
GPU-Mali-T760MP8
Memory:
Internal-32/64/128GB
RAM-3GB
Sound:
Vibration; MP3
Battery:
Non-removable Li-Ion 2600 mAh.
Wireless charging

Analysing Differences
The first step after choosing a smart phone, is to look at the differences between the platforms.
First of sprite and virtual buttons would have to be added to the screen as there are no other peripherals on a smart phone to use other than the screen.
So sprite movement buttons can be created and drawn on the screen, these sprites would then be referenced in a virtual key in a script. However a visible button would not be required as a transparent sprite could be placed on each side of the screen except the middle of the screen, more complicated scripts about accelerators.
The Blackjack game already has its own sprite buttons for twist and stick, so no other buttons would need to be added but in the script for the buttons a virtual_key function would be used. An exit button somewhere on the screen would be used as well, which could either exit the entire game or lead back to a main menu.

Sprites
Sprites and the entire game would be scaled down on the windows platform to fit the mobile screen size.


Coding and Steps
Android SDK
Install java JDK (Java Development Kit)
Install android SDK-
Run the Android SDK installer. You will be asked to install the Android SDK to the path "C:\Program Files (x86)\Android\android-sdk". We strongly recommend that you choose something with no spaces in the path, such as C:\android-sdk\, as the default path can cause problems with the actual Android updater program itself.
Once you have successfully installed the Android SDK you will be given the option to start the Android SDK Manager. This you must do, as it will install additional tools and device specific functions.

When it starts you should select only Android SDK Platform ToolsAndroid 2.1 (API 7)Android 2.2 (API 8)Android 3.2 (API 13)Android 4.0.3 (API 15), as well as the most recent version of Android (selected automatically by default by the manager). Please don't just select everything to be installed, as this will a) needlessly waste your bandwidth and HDD space, and b) might cause conflict errors during builds.
It should be noted that after installing these files the Android Download Manager may inform you that there are other files to be installed and that you should close and re-launch the SDK Manager, so please do this if asked.
It is advised to check the revision details and see if you don't already have the selected update installed. For more information on this process and the Download Manager
You should also set the PATH variable to allow you to run the command line tools

Run On a Connected Device
Make sure your device is connected to your pc through its USB data cable and that you have followed the device setup advice.
Click the Green play button at the top of the main Game Maker: Studio window to compile your game
As soon the compiling is complete, your game should appear on the device as designed.

Run on WiFi
Before you can use the WiFi setup, you need to make sure that the device to be tested has the YoYo Games runner installed. This can only be achieved through a data cable connection. This means that you must follow the connected device steps at least once before WiFi connections will work, as this is currently the easiest way to install the runner on the device.
Once the runner is installed on your phone,
Make sure that you have correctly configured GameMaker: Studio
Click the Green play button at the top of the main GameMaker: Studio window to compile your game
When compiled, tap the YoYo Games Runner on the device and you will get the "connecting" window. Your game will now run as normal, unless this is the first time you are running the WiFi mode, in which case you should also follow the next steps too.

Optimisation
Computers are generally more powerful than a smart phone however, smart phone technology is getting better games may need to be optimised in order to run smoothly and without any bugs. To solve this issue games need to be optimised which comprises of changing things such as graphic detail game functions, or just shortening code. The two most hardware restraining parts of a game are the in-game graphics and large amounts of code. To smooth out the gameplay coding can be deleted when not in use. One way this can be used in the blackjack game is by using Ds_Lists instead of arrays, Ds_Lists have a function which can be used which will destroy code or script once a set have events has been completed, for instance the random deck and picking cards for players can be destroyed once used, but for the blackjack game this is not entirely necessary as the game is not hardware intensive.