element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet & Tria Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • About Us
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Cypress Kits
  • Products
  • Dev Tools
  • Cypress Kits
  • More
  • Cancel
Cypress Kits
Forum PSoC 4 Pioneer Kit Community Project#022 – “Kill The Ghost” Game
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Cypress Kits to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • Replies 2 replies
  • Subscribers 25 subscribers
  • Views 688 views
  • Users 0 members are here
  • 100projects
Related

PSoC 4 Pioneer Kit Community Project#022 – “Kill The Ghost” Game

cy.wbz
cy.wbz over 12 years ago

Hello!

 

It is Friday so we’ll end the week with another fun post. Today we have a game called “Kill The Ghost”. This example uses the GLCD shield that we have been showcasing for the last few weeks. The goal of the game is for the user to take out the Ghost with arrows. You are given a number of Arrows to hit the Ghost with. If you are successful then the Ghost is no more, if you lose, well…you get slimed. The Ghost has a life meter on the screen so you know if you are getting close.

 

image

 

Forum Post Attachments:

 

At the bottom of this post we are including the following items:

  • Example Project Zip File
  • Zip File of Images
  • Project Schematic
  • Component Configurations

 

Components Used:

 

The user can download the example project at the bottom of this post. The project uses the following list of Creator Components:

  • SPIM (SCB based)
  • TCPWM
  • CyClock
  • Logic High ‘1’
  • CapSense
  • CyPin

 

The components are configured by right clicking on the component in your Top Design schematic view and selecting Configure. Please enable the following selections in the Configuration windows for the listed components above.

 

Firmware Description:

 

The main.c firmware is included in the example project. Please review the commented sections for more details.

The Kill The Ghost game is similar to our previous games released earlier in this example series. In this example we are not using the GLCD component, but instead using the SPIM component to drive the GLCD display. In this game we are displaying text onto the screen as a general messaging, informing the user of the game functionality.

 

Once the game starts the Ghost will appear and begin moving around the screen in a random manner. The user then moves their finger along the CapSense Slider to move the arrow’s flight pattern. The Slider centroid value is used to calculate the arrow’s display position. The user moves up and down the slider as the arrow flies across the game screen. If the arrow strikes the Ghost, then down goes the Ghost’s ‘life’ meter (disregard the fact that the Digital Ghost is already dead J). Once you have reduced the Ghosts ‘life’ meter to zero you have won and the game presents you with a victorious message.

 

Hardware Connections:

 

There are two connections needed to play this game. First the user will need to connect the GLCD shield to the Pioneer board and also connect a wire between the RX and Pin 9 connections

 

image

 

Test Your Project:

 

Once the kit is programmed you will see the main messaging on the LCD screen, place your finger on the CapSense slider to move the flight of the arrow to hit the Ghost.

 

image

 

I hope this example can help you out in your design.

 

Best,

Matt

Attachments:
7888.Project Images.zip
Kill The Ghost.zip
  • Sign in to reply
  • Cancel
Parents
  • jesusantoniocar
    jesusantoniocar over 12 years ago

    Thanks Matt  for this project.

    in shorty i will received my shield to play with all lcd color projects that cypress give us in this post.

    is very interesting to play with color display, so all this projects  can teach to us how can we uses and make application's using this kind of lcd's .

     

    best regards,

     

    Jesus Antonio.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Reply
  • jesusantoniocar
    jesusantoniocar over 12 years ago

    Thanks Matt  for this project.

    in shorty i will received my shield to play with all lcd color projects that cypress give us in this post.

    is very interesting to play with color display, so all this projects  can teach to us how can we uses and make application's using this kind of lcd's .

     

    best regards,

     

    Jesus Antonio.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
Children
  • jesusantoniocar
    jesusantoniocar over 12 years ago in reply to jesusantoniocar

    Hello Matt.

    it is the project using the color lcd shield from:

    http://www.elecfreaks.com/store/color-lcd-shield-p-462.html

     

    best regards,

     

    Jesus Antonio.

    You don't have permission to edit metadata of this video.
    Edit media
    x
    image
    Upload Preview
    image

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Cancel
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube