Erick's Blog
  • Home
  • Blog
  • Apps
    • Mortgage Calculator
  • PowerShell
    • Blog & Examples
    • Excel Reference
  • Windchill
    • Document Exporter
    • Document Worker
    • E.P.L.E.S.
    • Export Released
    • Property Checker
    • Windchill Business Analytics >
      • Part 01 - Program Logic
      • Part 02 - Getting Data with SQL Queries
      • Part 03 - Automating SQL Queries
      • Part 04 - Converting SQL Results to XML
      • Part 05 - Data Processing and Manipulation
      • Part 06 - Displaying XML in HTML
      • Part 07 - Auto Updating Displayed Data
      • Part 08 - Hosting Webpage with an Existing Apache Installation
      • Part 09 - Running Multiple Queries In Sequence
      • Part 10 - Calculating Data Trends
      • Part 11 - Making It Modular
    • Windchill Quick View
  • Reviews
  • Music
  • Contact

Game In A Day: SwipeRun

4/7/2016

0 Comments

 
Picture
After spending many months programming what seems to be a large and complicated game that will never be finished, I decided to take a break and challenge myself.  I want to see if I could make an entire game in one day from concept to playable.  I quickly came up with what I call SwipeRun.
The premise of the game is simple and familiar.  
Rules:
  • You need to utilize both hands (one if you are a cheater) and accurately slide your fingers from the white box below to the white box above.  The finger must begin touching the screen on the bottom white box and end touching the screen on the top one.  
  • As you start a swipe, the middle portion between the white boxes begins a visual timer indicating how long you have to reach the other side.
  • A successful swipe results in the white boxes getting smaller (increase in difficulty) and an increase in speed.
  • Each side is completely independent of each other so if you are really good one side, you will see much smaller white boxes on that side as you progress.  This forces you to have to find a rhythm in order to keep a good pace going.  Sometimes you may find yourself purposely slowing down you more dominate side so the other side can catch up and make the game easier.
  • You gain momentum the more successful swipes you have in a row as well as bonus speed for a specified roll streak number.
  • Lives are taken away automatically as you speed ever drops to zero.  You speed will immediately jump to a set number when a life is lost in order to prevent the game from quickly costing you lives due to slow reaction speed.
  • Levels are passed when any one side reaches it shrink limit.  (The point where the shrinking white boxes restart to a larger side.)  This is accomplished by getting enough swipes in on any one side.
  • There is a certain amount of friction with each new level making it harder to keep up speed and prevent loss of life.
Penalties:
  •  If you lift your finger outside of the top white boxes, you will take a hit on speed which will get you closer to losing a life.  This also causes you to have to restart your roll streak.
  • Fingers cannot cross to the other side, the game knows when you try to do this.
  • If you do not make it to the other side and lift your finger before the visual timer runs out, you also lose speed.
Picture
Goal:
  • ​As you may have guessed, the goal of the game is to simply have the highest score which is a function of distance, max speed, and roll streak.  You may also celebrate if you have a significantly higher number of any one of these compared to your friends.
Future Ideas:
​I stopped myself after 1 day of programming because that was the goal of this project.  I did have other ideas that I wanted to implement but I simply ran out of time.  If I decide to go back and continue this game, I would incorporate:
  • High Score (Online score storage so everyone can see and compete)
  • Every so often, force the game to turn horizontally so you have to physically rotate phone.
  • Implement power ups to further increase potential scores and fun.
  • Better graphics of course.
  • Add some sound.  I was thinking EDM would be the best kind for this game.
The Code:
The code is very simple.  There are no sprites.  Everything is inside two objects (obj_Game_Controller, obj_End_Game_Controller).  These objects control all the user interaction, graphics drawings, scoring, and game logic.
Feel free to download the code separated by object below.
You can recreate the game your self by downloading GameMaker from: ​http://www.yoyogames.com/get
You should be able to make the game using the free version for Windows.  I have attached an exported Android version that you can install manually on your phone to get the full multi-touch experience.

MD5 checksum: ​
a68ec623eab8b10aeb038e99ac94c0df​
swiperun-default-1.0.0.apk
File Size: 10506 kb
File Type: apk
Download File

0 Comments



Leave a Reply.

    Author

    PLM engineer while "on the clock", programmer, designer, dreamer all other times.

    Archives

    July 2017
    May 2017
    February 2017
    January 2017
    December 2016
    August 2016
    July 2016
    June 2016
    May 2016
    April 2016
    March 2016

    Categories

    All
    ASP.NET
    Batch Script
    C#
    Career
    Computers
    Creo
    Creo API
    Flash
    GameMaker
    GitHub
    Home Loan
    How To
    HTML5
    Java
    JavaScript
    MAME
    Mortgage
    Music
    .NET Core
    Office
    PC Games
    PfSense
    PowerShell
    Reviews
    Robot
    SQL
    Video Games
    Web App
    Windchill
    Windchill API

    RSS Feed

Copyright © 2018 Erick Johnson
  • Home
  • Blog
  • Apps
    • Mortgage Calculator
  • PowerShell
    • Blog & Examples
    • Excel Reference
  • Windchill
    • Document Exporter
    • Document Worker
    • E.P.L.E.S.
    • Export Released
    • Property Checker
    • Windchill Business Analytics >
      • Part 01 - Program Logic
      • Part 02 - Getting Data with SQL Queries
      • Part 03 - Automating SQL Queries
      • Part 04 - Converting SQL Results to XML
      • Part 05 - Data Processing and Manipulation
      • Part 06 - Displaying XML in HTML
      • Part 07 - Auto Updating Displayed Data
      • Part 08 - Hosting Webpage with an Existing Apache Installation
      • Part 09 - Running Multiple Queries In Sequence
      • Part 10 - Calculating Data Trends
      • Part 11 - Making It Modular
    • Windchill Quick View
  • Reviews
  • Music
  • Contact