Pt1420 Unit 3 Assignment

Improved Essays
Final Project
For my game I am going to make 2048. The user will use the arrows keys to control the movement of the number tiles across the board. The goal of the game is for the user to create the number tile with the value of 2048. The game has servel mechanics at play. First I will have to code a tile generator that creates a two or four numbered tile in a position around the perimeter of the board. However, the generated files must be created in a open space. Another mechanic of the game is the tile merging which occurs when the users moves the tiles throughout the game board and if a number tile hits a matching tile then both merge into a tile worth the sum of the two numbers on the tiles. The measuring tiles always move the farthest to
…show more content…
In the original you lose the game when all 16 spaces are filled and the user cannot merge any tiles to generate new number tiles. To code this I will assign a fill or no fill bool variable to each of the 16 tiles. Then I will assign a number value based on the number tile that is in the tile space. Then when all tiles cannot merge based on the number value assign to each tile space in the board the user will lose the game.
In addition, the game also has a score mechanic. For this will create a variable that sticks up whenever a tile merges together. The score goes up based on the total value of the tiles that merge together. I will also have a high score variable that is assign a new value when the user achieves a score that is higher then the current high score.
Finally, I will uses sprites and the render window for the display of the game to make it look good. The sprite will interact with each other when they touch and will be able to merge into a single new textured sprite. There will also be a game board separated into 16 equal spaced sections. When the user hits a valid direction key then the sprite will attempt to move in the imputed direction. First the program will check a space to the target direction of each tile. If the space is open or contains a tile that is the same as each tile then it will move. A new sprite will be generated, after each valid user input, in a open

Related Documents

  • Decent Essays

    Baby Shower Candy Bar Games Answer Key Baby shower candy bar game is one of the games that are played at a baby shower party just for fun. This is the best game as icebreakers among the guests at the meeting so that everyone can mingle together and laughing with each other. Before playing this game there are things need to be prepared. Starting with a cardboard box contains the name of the candy that has a square in it.…

    • 523 Words
    • 3 Pages
    Decent Essays
  • Decent Essays

    The players take turns rolling the dice or spinning the spinner to determine the number of spaces they move. Each space is one of six colors, and the color the player lands on determines the word or phrase containing the target sounds the player has to say. The red spaces require…

    • 317 Words
    • 2 Pages
    Decent Essays
  • Improved Essays

    Comedy is the entertainment consisting of jokes and funny sketches, intended to make an audience laugh. “How to Make a Board” is a simple how-to create a plain board that can be used for anything from killing spiders or a standing base. Dave Barry’s short story “How to Make a Board” is a high level of comedy that uses comic situations and comic characters choices to convey the idea that the simplest creations may be used for greater things. “How to Make a Board” is an example of high comedy because of it’s humorous narration and the easy flow of jokes and comments. This story includes comic situations, which the author uses to create humorous situations/characters such as, “I guess he shouldn’t have put Ronnie’s head in the vise, but it (Ronnie’s head) was no great prize to begin with, and you can bet Ronnie…

    • 814 Words
    • 4 Pages
    Improved Essays
  • Decent Essays

    Toy Creation Project My project 1 assignment was to create a toy, I designed a dart board tosses game. The dart board tosses game is both educational and entertaining. This toy, game can be used by multiple age levels. However, for the purpose of this paper, the focus is about three years old preschoolers.…

    • 468 Words
    • 2 Pages
    Decent Essays
  • Improved Essays

    Settlers Of Catan Analysis

    • 1116 Words
    • 5 Pages

    Part 1: Description of the Rules/Premise/Game Play (How Does it Function as an Economic Model) (Describe how the game’s rules, premise, and game play can be understood from an economic perspective.) Settlers of Catan is a trading game in which players build capital and harvest resources. The game functions as a closed economy, in which opportunity costs, price of a good, and access to a good are constant, although trading with others does reflect some changes in relative prices. The object of the game is to be first to attain ten ‘victory points’. At the start of the game, the players are allowed to place two ‘settlements’ – each worth…

    • 1116 Words
    • 5 Pages
    Improved Essays
  • Decent Essays

    The game I analyzed today is called Sequence for kids. It involves a board with different characters printed on it, cards, and plastic colored coins as game pieces. You hold three cards at a time. When it is your turn, you lay down a card you choose from your deck of three, and put your specific colored coin on the matching character on the board. When you have four in a row it is a sequence, so you win!…

    • 291 Words
    • 2 Pages
    Decent Essays
  • Improved Essays

    Have you ever wanted play four-square and not get out? Have you ever gotten out playing four-square for no apparent reason? Well after reading this you know how to play four-square. In this explanation I’m going to teach how to play four-square. Before we get to all the steps you need a 4-square and a bouncy ball.…

    • 510 Words
    • 3 Pages
    Improved Essays
  • Decent Essays

    When playing any gambling game, players need a strategy. Not only does a strategy increase their chances of winning, a strategy gives players the opportunity to get organized. Also, it gives players the opportunity to add direction in their bets. Out of all of the betting strategies out there, the Labouchere strategy remains relevant. For years, numerous players use the strategy to the full out extent.…

    • 584 Words
    • 3 Pages
    Decent Essays
  • Improved Essays

    Originally I was unsure on which investigation to pick however after looking at each in detail the T-Shaped investigation seemed more logical to me. At the beginning, I took a very random approach in picking the different T-Shapes (10, 20, 39, 5) I could not draw much of a conclusion (see figure one.) After reevaluating, I decided to take a more systematic approach, going along number by number to work out the T total. I was unable to start at T1 because of the number grid, therefore the first starting point was T2 and so on (see figure two.)…

    • 760 Words
    • 4 Pages
    Improved Essays
  • Improved Essays

    The game “Hero” is a strategy board game that uses a turn based pattern to create a dynamic game board. The thing that intrigued me the most about Hero is the sheer amount of possible strategies one can do in order to win. Players are given the choice to play in various board configurations (10x10, 15x15, and 20x20). The amount of moves exponentially increases as the board increases in size, which can cause a great deal of movement variations for each game piece. Now onto the gameplay itself.…

    • 1337 Words
    • 6 Pages
    Improved Essays
  • Superior Essays

    The game Hex was invented by the Danish mathematician Piet Hein in the 1940s. This game has been of great interest to mathematicians around the world since its introduction, including Martin Gardner who explores it in chapter eight of his first Scientific American Book of Mathematical Puzzles and Games (1959). The game is normally played on a board of 11x11 hexagons with two edges labelled black and the other two labelled white. It is a two-person game in which both players (using black and white counters) attempt to create a chain connecting both of their respective sides of the board. This chapter will stray away from the basics of Hex and instead explore a more specific aspect of the game: ladders.…

    • 1597 Words
    • 7 Pages
    Superior Essays
  • Great Essays

    These visual search principles are absolutely vital for any video game on the…

    • 1113 Words
    • 5 Pages
    Great Essays
  • Great Essays

    Aphorism On Chopsticks

    • 1324 Words
    • 6 Pages

    Last time we were here we learned how talent is not an excuse to not work hard. Let’s take out our homework from last class. How many of you practiced using chopsticks? Who would like to show us?…

    • 1324 Words
    • 6 Pages
    Great Essays
  • Improved Essays

    Game activities in English classroom teaching The new English curriculum standard suggests that the purpose of English teaching in primary school is to cultivate students’ interest in English. Game teaching conforms to the psychological characteristics of elementary students, which is conducive to the students’ physical and mental development. The game should not be “trick” but the bridge between learning and using in the class(Zhang Zhiyuan,2002). Primary school students love playing, singing, drawing, all full of curiosity.…

    • 966 Words
    • 4 Pages
    Improved Essays
  • Improved Essays

    Fun plays an essential role in learning, because students retains more information and learns better when they are enjoying what they are studying, but when we look at the concept of fun, it’s not helpful because it’s not just about being a fool or simple games. Fun in education means engagement. We learn better about what we are doing, when it has a meaning and a purpose, making us challenge ourselves to do new things, to create new things, forcing our minds to be creative while we enjoy what we are doing, perhaps combining fun and education will help us build a better personality, improves knowledge and skill, and providing a feeling of well being of a person, important factors in life; however, the problem with education these days is that…

    • 715 Words
    • 3 Pages
    Improved Essays