From e2c8b4635005112699c9d7cb468f516dc9e3a1df Mon Sep 17 00:00:00 2001 From: Rich Saupe Date: Fri, 1 Mar 2024 23:09:43 -0600 Subject: [PATCH 1/3] fixed the header levels in the sprite doc changed doc subsection header renamed old subsection --- .python-version | 1 + doc/programming_guide/sprites/spritelists.rst | 15 +++++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 .python-version diff --git a/.python-version b/.python-version new file mode 100644 index 000000000..62b104567 --- /dev/null +++ b/.python-version @@ -0,0 +1 @@ +arcade-dev diff --git a/doc/programming_guide/sprites/spritelists.rst b/doc/programming_guide/sprites/spritelists.rst index 72e8adfd2..df0fc4353 100644 --- a/doc/programming_guide/sprites/spritelists.rst +++ b/doc/programming_guide/sprites/spritelists.rst @@ -1,7 +1,10 @@ .. _pg_spritelists: +Drawing with Sprites and SpriteLists +------------------------------------ + What's a Sprite? ----------------- +^^^^^^^^^^^^^^^^ Each sprite describes where a game object is & how to draw it. This includes: @@ -16,12 +19,12 @@ sprites to the screen. .. _pg_spritelists_why: Why SpriteLists? ----------------- +^^^^^^^^^^^^^^^^ .. _pg_spritelists_why_hardware: They're How Hardware Works -^^^^^^^^^^^^^^^^^^^^^^^^^^ +"""""""""""""""""""""""""" Graphics hardware is designed to draw groups of objects at the same time. These groups are called **batches**. @@ -38,7 +41,7 @@ should avoid trying to draw sprites one at a time. .. _pg_spritelists_why_faster_dev: They Help Develop Games Faster -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +"""""""""""""""""""""""""""""" Sprite lists do more than just draw. They also have built-in features which save you time & effort, including: @@ -50,8 +53,8 @@ you time & effort, including: .. _pg_spritelists_minimal_sprite_drawing: -Drawing with Sprites and SpriteLists ------------------------------------- +Using Sprites and SpriteLists +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Let's get to the example code. From c2dcc0f39544e0c8528469f40eddd64f74557806 Mon Sep 17 00:00:00 2001 From: Rich Saupe Date: Fri, 1 Mar 2024 23:17:09 -0600 Subject: [PATCH 2/3] Revert "fixed the header levels in the sprite doc" This reverts commit e2c8b4635005112699c9d7cb468f516dc9e3a1df. --- .python-version | 1 - doc/programming_guide/sprites/spritelists.rst | 15 ++++++--------- 2 files changed, 6 insertions(+), 10 deletions(-) delete mode 100644 .python-version diff --git a/.python-version b/.python-version deleted file mode 100644 index 62b104567..000000000 --- a/.python-version +++ /dev/null @@ -1 +0,0 @@ -arcade-dev diff --git a/doc/programming_guide/sprites/spritelists.rst b/doc/programming_guide/sprites/spritelists.rst index df0fc4353..72e8adfd2 100644 --- a/doc/programming_guide/sprites/spritelists.rst +++ b/doc/programming_guide/sprites/spritelists.rst @@ -1,10 +1,7 @@ .. _pg_spritelists: -Drawing with Sprites and SpriteLists ------------------------------------- - What's a Sprite? -^^^^^^^^^^^^^^^^ +---------------- Each sprite describes where a game object is & how to draw it. This includes: @@ -19,12 +16,12 @@ sprites to the screen. .. _pg_spritelists_why: Why SpriteLists? -^^^^^^^^^^^^^^^^ +---------------- .. _pg_spritelists_why_hardware: They're How Hardware Works -"""""""""""""""""""""""""" +^^^^^^^^^^^^^^^^^^^^^^^^^^ Graphics hardware is designed to draw groups of objects at the same time. These groups are called **batches**. @@ -41,7 +38,7 @@ should avoid trying to draw sprites one at a time. .. _pg_spritelists_why_faster_dev: They Help Develop Games Faster -"""""""""""""""""""""""""""""" +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Sprite lists do more than just draw. They also have built-in features which save you time & effort, including: @@ -53,8 +50,8 @@ you time & effort, including: .. _pg_spritelists_minimal_sprite_drawing: -Using Sprites and SpriteLists -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +Drawing with Sprites and SpriteLists +------------------------------------ Let's get to the example code. From ae8fdbeaf0910531ed498b31136e6ff141740c29 Mon Sep 17 00:00:00 2001 From: Rich Saupe Date: Sun, 3 Mar 2024 21:29:38 -0600 Subject: [PATCH 3/3] added recommended class to fix error --- doc/tutorials/shader_toy_particles/index.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/tutorials/shader_toy_particles/index.rst b/doc/tutorials/shader_toy_particles/index.rst index 52e096e58..7a56dc20a 100644 --- a/doc/tutorials/shader_toy_particles/index.rst +++ b/doc/tutorials/shader_toy_particles/index.rst @@ -4,7 +4,8 @@ Shader Toy - Particles ====================== .. contents:: - + :class: this-will-duplicate-information-and-it-is-still-useful-here + .. raw:: html