TOP Contributors

  1. MIKROE (2641 codes)
  2. Alcides Ramos (347 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (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 (136215 times)
  2. FAT32 Library (69476 times)
  3. Network Ethernet Library (55703 times)
  4. USB Device Library (45989 times)
  5. Network WiFi Library (41638 times)
  6. FT800 Library (40778 times)
  7. GSM click (28787 times)
  8. PID Library (26327 times)
  9. mikroSDK (26050 times)
  10. microSD click (25136 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: 436 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

PIC32 Soccer Bounce Demo

5

The Soccer Bounce demo uses the accelerometer input to roll a soccer ball around on a Mikromedia PIC32 screen. The code was written using MikroC Pro for PIC32 and VisualTFT. The soccer ball sprite graphics are rendered using Dragan Regodic's excellent TFT Graphics library: http://www.libstock.com/projects/view/914/tft-graphics-library

[Learn More]

Snowburst Game

0

Tap to the screen to melt the falling snowflakes before you get snowed in. If you miss a snow flake the snowbank gets higher. Every 500 points the snowbank starts to melt a bit. You can play with two fingers but be sure to tap only one snowflake at a time. If you tap the status bar at the bottom of the screen you can mute the background music.

[Learn More]

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]