Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Kivy Blueprints
  • Table Of Contents Toc
  • Feedback & Rating feedback
Kivy Blueprints

Kivy Blueprints

By : Vasilkov
3.7 (10)
close
close
Kivy Blueprints

Kivy Blueprints

3.7 (10)
By: Vasilkov

Overview of this book

This book is intended for programmers who are comfortable with the Python language and who want to build desktop and mobile applications with rich GUI in Python with minimal hassle. Knowledge of Kivy is not strictly required—every aspect of the framework is described when it's first used.
Table of Contents (12 chapters)
close
close
Free Chapter
1
1. Building a Clock App
In Progress | 0 / 9 sections completed | 0%
3
3. Sound Recorder for Android
In Progress | 0 / 6 sections completed | 0%
5
5. Making a Remote Desktop App
In Progress | 0 / 5 sections completed | 0%
10
A. The Python Ecosystem
In Progress | 0 / 1 sections completed | 0%
11
Index
In Progress | 0 / 1 sections completed | 0%

Designing a reusable particle system


In this section, we're going to write a particle system that will be later used to create pretty much everything in the game—spaceships, bullets, and so on. This is the generic approach used in situations where you have many similar objects on the screen with very little logic for movement and interaction.

This topic will capitalize on the previous chapter's code. In fact, the starfield screensaver from the previous chapter as a whole is a fine example of a particle system; however, it lacks the necessary configurability and cannot be easily repurposed. We're going to change that without significantly altering the GLSL and related code.

Note

It's worth mentioning that the chosen approach—rendering textured quads for each particle—isn't the most optimal in terms of low-level rendering. On the plus side, it's very straightforward, easy to reason about, and compatible with any implementation of OpenGL that supports GLSL at all.

If you choose to learn OpenGL...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech

Create a Note

Modal Close icon
You need to login to use this feature.
notes
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Delete Note

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY