Tuesday 12 April 2016

Black jack game

Blackjack Game

The game i was assigned to create is of course blackjack or pontoon, whatever you want to call it. the game is pretty simple, there are however many players (preferably three) and a card dealer. the aim of the game is to have the highest number of cards, the number represented on the card, without going bust and going over 21 if this is achieved you win and they move onto the next round. 

Now, onto the making of my blackjack game. The first thing i started of making was of course the sprites for everything in the game.


I very first started out by adding all 52 cards to the cards sprite. this was quite easy actually because i used a tool which would cut out sprites in a column like fashion and the picture of cards i got of the internet had already had them in a column way so it was pretty easy to cut them all out automatically without having to do it individually.




after i created the sprites i moved onto making them all into objects, apart from the cards. i also added a controller object with no sprite attached to it. this is neccesary because this object calls upon scripts at the start of the game and doesn't need to be seen within the game itself so it needs to be hidden.




This is what the room looks like while the game is live, this is how far my game has currently gotten at the moment as none of the buttons do anything but the cards are in fact randomly generated as i previously stated i used the scripts in the objects themselves.


This is the code in all of the players on the screen, it calls for the cards sprites and picks a random one then the code under the green text is the actual cards getting drawn in game and where they are placed, meaning each player has different places for there card placement obviously


No comments:

Post a Comment