https://github.com/2DGD-F0TH/2DGD_F0TH Skip to content Navigation Menu Toggle navigation Sign in * Product + GitHub Copilot Write better code with AI + Security Find and fix vulnerabilities + Actions Automate any workflow + Codespaces Instant dev environments + Issues Plan and track work + Code Review Manage code changes + Discussions Collaborate outside of code + Code Search Find more, search less Explore + All features + Documentation + GitHub Skills + Blog * Solutions By company size + Enterprises + Small and medium teams + Startups By use case + DevSecOps + DevOps + CI/CD + View all use cases By industry + Healthcare + Financial services + Manufacturing + Government + View all industries View all solutions * Resources Topics + AI + DevOps + Security + Software Development + View all Explore + Learning Pathways + White papers, Ebooks, Webinars + Customer Stories + Partners + Executive Insights * Open Source + GitHub Sponsors Fund open source developers + The ReadME Project GitHub community articles Repositories + Topics + Trending + Collections * Enterprise + Enterprise platform AI-powered developer platform Available add-ons + Advanced Security Enterprise-grade security features + GitHub Copilot Enterprise-grade AI features + Premium Support Enterprise-grade 24/7 support * Pricing Search or jump to... Search code, repositories, users, issues, pull requests... Search [ ] Clear Search syntax tips Provide feedback We read every piece of feedback, and take your input very seriously. [ ] [ ] Include my email address so I can be contacted Cancel Submit feedback Saved searches Use saved searches to filter your results more quickly Name [ ] Query [ ] To see all available qualifiers, see our documentation. Cancel Create saved search Sign in Sign up Reseting focus You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} 2DGD-F0TH / 2DGD_F0TH Public * Notifications You must be signed in to change notification settings * Fork 15 * Star 237 [CC BY-NC-SA] A compendium of the community knowledge on game design and development therealpenaz91.itch.io/2dgd-f0th/ License View license 237 stars 15 forks Branches Tags Activity Star Notifications You must be signed in to change notification settings * Code * Issues 24 * Pull requests 0 * Discussions * Projects 1 * Wiki * Security * Insights Additional navigation options * Code * Issues * Pull requests * Discussions * Projects * Wiki * Security * Insights 2DGD-F0TH/2DGD_F0TH master BranchesTags [ ] Go to file Code Folders and files Name Name Last commit Last commit message date Latest commit History 1,721 Commits .github .github .gitlab .gitlab chapters chapters docs docs dynamic_listings dynamic_listings filters filters images images output output raw_resources/ raw_resources/ images images scripts scripts template template .gitignore .gitignore CODE_OF_CONDUCT.md CODE_OF_CONDUCT.md CONTRIBUTING.md CONTRIBUTING.md CONTRIBUTORS.md CONTRIBUTORS.md LICENSE LICENSE Makefile Makefile README.md README.md build.sh build.sh deploy.sh deploy.sh metadata.yaml metadata.yaml View all files Repository files navigation * README * Code of conduct * License Logo 2D Game Development: From Zero To Hero A compendium of the community knowledge on game design and development Get the Ebook >> GitLab Repo * GitHub Repo Table of Contents 1. About The Project + Project Health 2. Getting The Book + Ready-to-read Version + Source Code 3. Screenshots 4. Contributing 5. License 6. My stance on AI About the project This project aims to be a Creative Commons Licensed body of knowledge about game design and development. As well as being a source of knowledge this project aims to be a learning experience for everyone involved too, by gathering contributions from the community, teaching others how to make a game, explaining algorithms but also learning tips and tricks from people who are more experienced. Project Health Latest Version License GitHub Stars GitHub Forks GitLab Stars GitLab Forks Commits: GitHub last commit (master) GitHub last commit (develop) (back to top) Getting the book Ready-to-read version As of March 21st, 2021 the ready-to-read versions of this book will be available (for free) only through Itch.io Link to the Itch.io page I decided to use only Itch as it's more stable and not influenced by any kind of CI/CD issue or tantrum. I have to make the files and upload them there anyway, so I may as well use that page as my main point of download for the project. Versions currently available: PDF and EPub Source Code The source code for this ebook is available through the following official repositories: * Link to the GitLab Repository * Link to the GitHub Repository You can learn how to build the book yourself in the Wiki! (back to top) Screenshots Cover Game Loop Collision Detection (back to top) Contributing Hi! Penaz here. After over 500 pages of content, I am reaching the point where I poured the majority of my knowledge inside this e-book, and simplifying and explaining takes away a lot of time. With the little time I have, research can only get me so far. I'd love to translate the currently available listings many other languages, as well as add new algorithms, containers, tips and tricks and design patterns. Though my work leaves me very little free time (and energy) to study and re-work things in a more understandable way. If you are a programmer, game designer, game developer, artist, writer or "game dev aficionado" that wants to contribute to a completely free and open resource for new game developers that want to start seriously; feel free to fork the repository and pour your knowledge in this magic soup that is this book! I'm more than happy to take a look at pull requests, it would be a honor. Also remember to put yourself in the CONTRIBUTORS section! If instead there is something unclear about the book, or something you would like to see added, drop by the ISSUES section and leave a ticket there, I will try to fix it, or at least add a placeholder for the future. Another way to contribute is to translate the entire book in another language! Check the Wiki for more information. All contributions will be handled with maximum respect and in accordance to our Code of Conduct. Thank you for reading. (back to top) License This project is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike License. Learn more (back to top) My stance on AI Even though AI can be an undeniably useful tool in some situations, I seriously don't like the thought of seeing my (and other people's) hard work being mixed into what is essentially a probabilistic melting pot that can be used by unprincipled people for their own personal gain. This means that any contribution that is found to be the product of generative AI will also immediately be deleted and the contributor may be banned from making further contributions if the usage of AI was done in bad faith. This also means that any use of this book to train generative AI is forbidden. AI is an ethical mess right now: books, blogs, microblogging posts are all melded together without any regard for copyright, correctness or quality into a result that is "semantically and syntactically probably correct" but is of inferior quality to the sum of its sources. To that we have to add the issue of AI self-feeding: AI-generated solutions and posts are invading the Internet, which in turn will enter the generative AI training loop, lowering the quality of responses further. I know that this is a further restriction on the "free as in freedom" principle of this project, and this book may not be "the ultimate Body of Knowledge" on game development, but I want it to be at least somewhat curated. (back to top) About [CC BY-NC-SA] A compendium of the community knowledge on game design and development therealpenaz91.itch.io/2dgd-f0th/ Topics javascript game python gamedev development games programming knowledge algorithms cpp game-development ebook resources game-2d teaching programming-languages game-programming game-design game-dev Resources Readme License View license Code of conduct Code of conduct Activity Custom properties Stars 237 stars Watchers 10 watching Forks 15 forks Report repository Releases 30 tags Contributors 4 * @Penaz91 Penaz91 Daniele Penazzo * @Doublestuf Doublestuf * @LuosRestil LuosRestil Brian Smith * @Rei2229 Rei2229 Luca Violato Languages * Lua 24.1% * Python 24.0% * C++ 23.8% * JavaScript 21.8% * TeX 3.8% * Makefile 0.8% * Other 1.7% Footer (c) 2025 GitHub, Inc. Footer navigation * Terms * Privacy * Security * Status * Docs * Contact * Manage cookies * Do not share my personal information You can't perform that action at this time.