Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Python Game Programming By Example

You're reading from   Python Game Programming By Example A pragmatic guide for developing your own games with Python

Arrow left icon
Product type Paperback
Published in Sep 2015
Publisher
ISBN-13 9781785281532
Length 230 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Toc

Creating game assets

We will need a few basic images for our cocos2d sprites. They will be the visual representations of the player's cannon and the different types of aliens.

The following image shows how these sprites can be drawn with an image editor program, with the help of a grid:

Creating game assets

Unfortunately, the usage of image manipulation tools is beyond the scope of this book. There is a wide variety in these programs, and for basic sprites (such as the ones shown in the previous image), you can use MS Paint on Windows systems.

Under the img folder, you can find the different images that we will use in our game. Feel free to edit them and change their colors. However, do not modify their size as it is used to determine the width and the height of the Sprite and its Cshape member.

Tip

Creating your own "pixel art"

There are more advanced applications that can be run on any platform. This is the case of GIMP, an open source program that is part of the GNU project. The sprites used in...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime