TOP Contributors

  1. MIKROE (2762 codes)
  2. Alcides Ramos (374 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (139251 times)
  2. FAT32 Library (71749 times)
  3. Network Ethernet Library (57120 times)
  4. USB Device Library (47430 times)
  5. Network WiFi Library (43082 times)
  6. FT800 Library (42403 times)
  7. GSM click (29835 times)
  8. mikroSDK (28077 times)
  9. PID Library (26885 times)
  10. microSD click (26198 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
Example

Mikromedia 3D Sprites

Rating:

10

Author: Andrew Hazelden

Last Updated: 2014-10-22

Package Version: 1.0.0.0

Example: 1.0.0.0

Category: Gaming and Fun

Downloaded: 460 times

Followed by: 2 users

License: MIT license  

This firmware example uses the Libstock TFT Graphics library to render animated 3D Sprites on a Mikromedia PIC32 board. The demo can be controlled using the touch panel or the Mikromedia Gaming Shield.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Mikromedia 3D Sprites" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Mikromedia 3D Sprites" changes.

Do you want to report abuse regarding "Mikromedia 3D Sprites".

  • Information
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

Example Blog

This example plots 3D sprites on a Mikromedia PIC32 screen using the TFT Graphics library. You can use the buttons on a MikroElektronika Mikromedia Gaming Shield to control the rotation of the shapes, and change the active model between a plane, jack, cube, pyramid, and a octahedron. The code was written using MikroC Pro for PIC32 and VisualTFT.

This example is based upon the classic 1990's Metal Basic sprite demo "TriCube" by Ivan Freyman.

Demo Video

Here is a quick demo of the Mikromedia 3D Sprites firmware.

Watch on YouTube

User Input

  • Tap the Mikromedia screen to change the model.

Gaming Shield Controls:

  • Press the START button to change the model.
  • Press the CIRCLE button to show coordinates.
  • Use the ARROW/X/Triangle buttons for rotation.
  • The square button will pause the screen for 5 seconds.

Installation

  1. Install Firmware: Flash the firmware file mmbSprites-PIC32.hex to your Mikromedia PIC32 board.
  2. Power up the Mikromedia board and get ready to try out the MMB Sprites demo!

Development Tools Used

Compatible SW:

mikroC PRO for PIC32
http://www.mikroe.com/mikroc/pic32/

VisualTFT
http://www.mikroe.com/eng/products/view/627/visual-tft/

TFT Graphics by Bitwise (required download)
http://www.libstock.com/projects/view/914/tft-graphics-library

Andrew Hazelden's Mikromedia Gaming Shield Library (included with the current source code)
http://www.libstock.com/projects/view/389/andrew-hazelden-s-mikromedia-gaming-shield-library

Hardware Required:

Dev.Board:
Mikromedia PIC32
http://www.mikroe.com/mikromedia/pic32/

Controller:
Mikromedia Gaming Shield
http://www.mikroe.com/mikromedia/shields/gaming/    

ALSO FROM THIS AUTHOR

Cozy Fire Example for the Mikromedia Board

5

The Cozy Fire example creates an animated fireplace for the both Mikromedia PIC32 and dsPIC33 boards. The Cozy Fire example was created to show how the VisualTFT resource collection feature can be used to create animated sprites. The code was written using VisualTFT and MikroC Pro.

[Learn More]

mikroBirthday

5

Celebrate a birthday by blowing out a virtual candle. This example was created in celebration of MikroElektronika's 10th Birthday! You get to blow out the candle on a cupcake by tapping the touch screen on a mikromedia dsPIC 33 board. After two seconds the candle lights itself up again and you can repeat the process.

[Learn More]

Fireworks for Mikromedia PIC32

0

The fireworks example creates an animated fireworks show on the Mikromedia PIC32 development board. The fireworks firmware demonstrates a way to use the VisualTFT resource collection feature to create movies. The code was written using VisualTFT and MikroC Pro for PIC32.

[Learn More]