4. Load 2D Image (Psd)

Chapters

            4.1 Understand 2D resolution and coordinate.

                        4.1.1 2D resolution

List of Tablet and Smartphone Resolutions and Screen Sizes

http://www.binvisions.com/articles/tablet-smartphone-resolutions-screen-...

Graphics display resolution

https://en.wikipedia.org/wiki/Graphics_display_resolution

iOS Resolution Quick Reference

http://www.iosres.com/

                        4.1.2 coordinate

Introduction To 2D Graphics

http://rbwhitaker.wikidot.com/introduction-to-2d-graphics

General Game Structure

http://centurion2.com/XNA/GameProgrammingBasics/GPB100/GPB110/GPB110.php

            4.2 2D image type

                        4.2.1 Bitmap

                        4.2.2 Vector

            4.3 ARSA Framework use Photoshop image .psd as main display format.

              4.3.1 Why use Photoshop format ?

               4.3.1.1 Maybe Photoshop is standard 2d graphics program.

                4.3.1.1 Popular in almost target groups. e.g. artist, programmer or marketing.

              4.3.2 Benefit of Photoshop format

                        4.3.2.1 Layer and Layer Name

                        4.3.2.2 Use layer name as script

                        4.3.2.3 Transparent

                        4.3.2.4 Transformation

                        4.3.2.5 Visible

                        4.3.2.6 Opacity

                        4.3.2.7 Sprite memory pool

                        4.3.2.8 Use as sprite editor or map editor

            4.4 Code write at init function

                        g_psd->load("image.psd");

            4.5 Build and Run then you will see your sprite on screen and device.

NOTE:

            A.) When run on Android device must copy any assets to assets folder.

[your_project_name]/android/assets

            B.) Be careful filename on android device is case sensitive. e.g. If in code load psd file is Image.psd but filename on storage is image.psd program cannot found that!!!.

            C.) Load psd from cloud.

g_psd->load("http://www.sarosworld.com/chars4_bg.psd");

 

NOTE: PSD loading cadidate.

1. PSD LIBRARY SDK 900 Euro (33,942 Bath, excl. VAT)

http://molecular-matters.com/products_psd_sdk.html

2. psdparse (ARSA Framework included)

http://telegraphics.com.au/svn/psdparse/trunk

3. psdlite

https://github.com/ipkn/psdlite

4. Import Adobe Photoshop (.psd) images

https://www.codeproject.com/articles/10398/import-adobe-photoshop-psd-images

5. PSD.js

https://meltingice.github.io/psd.js/

6. psd: A general purpose Photoshop file parser.

https://www.npmjs.com/package/psd

7. psd-tools

https://github.com/psd-tools/psd-tools

8. PSD-parser

http://blog.alternativaplatform.com/en/2007/07/09/parser-psd-formata/

9. libqpsd: PSD (Photoshop Document) & PSB (Photoshop Big) Plugin for Qt/C++ (Qt4/Qt5)

https://github.com/Code-ReaQtor/libqpsd

Tags: