Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/PrimaryFeather/Memory3D
A simple implementation of "Memory" (also known as "Concentration") showcasing Starling's Sprite3D functionality.
https://github.com/PrimaryFeather/Memory3D
Last synced: 3 months ago
JSON representation
A simple implementation of "Memory" (also known as "Concentration") showcasing Starling's Sprite3D functionality.
- Host: GitHub
- URL: https://github.com/PrimaryFeather/Memory3D
- Owner: PrimaryFeather
- Created: 2014-10-23T08:15:03.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-09-07T15:55:52.000Z (over 8 years ago)
- Last Synced: 2024-08-04T05:03:36.394Z (6 months ago)
- Language: ActionScript
- Size: 290 KB
- Stars: 20
- Watchers: 6
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-actionscript-sorted - Memory3D - A simple implementation of "Memory" (also known as "Concentration") showcasing Starling's Sprite3D functionality. (3D Engines / Other Engines)
README
# Memory3D
This game is a simple implementation of "Memory" (also known as "Concentration") that showcases [Starling][]'s Sprite3D functionality.
The repository contains three tags that you can use to look at different states of development.
* **2D** is the starting point: turning cards is achieved by animating the "scaleX" property, which creates a pseudo-3D effect.
* **3D** changes the "Card" and "PlayingField" classes to inherit from "Sprite3D". That way, the dealing and flipping animations can be converted to real 3D.
* In **3D-optimized**, the flipping logic is changed so that the cards do not contain any 3D transformations while lying down flat. That way, they can be batched on rendering, which is normally not possible for Sprite3D objects. (Enable the 'showStats' property of Starling to see the number of draw calls.)I also recorded a [video][] that explains the first two steps of this process.
This project requires at least Starling v1.6; it's also compatible with v2.0 and above.
[Starling]: http://www.starling-framework.org
[video]: http://vimeo.com/109564325