Kamis, 15 Mei 2014

[G546.Ebook] Ebook Making Games with Python & Pygame, by Al Sweigart

Ebook Making Games with Python & Pygame, by Al Sweigart

Get the connect to download this Making Games With Python & Pygame, By Al Sweigart and also start downloading and install. You could want the download soft documents of the book Making Games With Python & Pygame, By Al Sweigart by undertaking various other tasks. And that's all done. Now, your turn to read a publication is not consistently taking as well as lugging guide Making Games With Python & Pygame, By Al Sweigart everywhere you go. You could save the soft data in your gizmo that will never be far away and also review it as you like. It resembles reviewing story tale from your device after that. Now, begin to love reading Making Games With Python & Pygame, By Al Sweigart and get your new life!

Making Games with Python & Pygame, by Al Sweigart

Making Games with Python & Pygame, by Al Sweigart



Making Games with Python & Pygame, by Al Sweigart

Ebook Making Games with Python & Pygame, by Al Sweigart

Is Making Games With Python & Pygame, By Al Sweigart book your favourite reading? Is fictions? Exactly how's concerning past history? Or is the best vendor unique your choice to satisfy your extra time? Or perhaps the politic or spiritual publications are you searching for currently? Below we go we provide Making Games With Python & Pygame, By Al Sweigart book collections that you require. Lots of numbers of publications from numerous areas are supplied. From fictions to scientific research and spiritual can be browsed as well as learnt right here. You might not fret not to locate your referred publication to check out. This Making Games With Python & Pygame, By Al Sweigart is among them.

Well, publication Making Games With Python & Pygame, By Al Sweigart will certainly make you closer to exactly what you want. This Making Games With Python & Pygame, By Al Sweigart will certainly be constantly great buddy any type of time. You could not forcedly to consistently complete over reviewing an e-book basically time. It will be simply when you have extra time as well as investing couple of time to make you feel pleasure with what you read. So, you can obtain the definition of the message from each sentence in guide.

Do you understand why you need to read this site and also exactly what the relation to reviewing book Making Games With Python & Pygame, By Al Sweigart In this modern-day age, there are lots of means to acquire the e-book and also they will be a lot easier to do. One of them is by obtaining guide Making Games With Python & Pygame, By Al Sweigart by on the internet as just what we inform in the web link download. The publication Making Games With Python & Pygame, By Al Sweigart could be an option considering that it is so appropriate to your need now. To obtain the e-book on-line is very simple by only downloading them. With this opportunity, you could review guide wherever and whenever you are. When taking a train, awaiting list, as well as hesitating for somebody or other, you can read this on the internet publication Making Games With Python & Pygame, By Al Sweigart as a buddy once more.

Yeah, reading a publication Making Games With Python & Pygame, By Al Sweigart could add your pals lists. This is one of the formulas for you to be successful. As recognized, success does not mean that you have great things. Recognizing and also recognizing greater than various other will provide each success. Next to, the notification and also impression of this Making Games With Python & Pygame, By Al Sweigart could be taken as well as picked to act.

Making Games with Python & Pygame, by Al Sweigart

Making Games with Python & Pygame is a programming book that covers the Pygame game library for the Python programming language. Each chapter gives you the complete source code for a new game and teaches the programming concepts from these examples. The book is available under a Creative Commons license and can be downloaded in full for free from http://inventwithpython.com/pygame This book was written to be understandable by kids as young as 10 to 12 years old, although it is great for anyone of any age who has some familiarity with Python.

  • Sales Rank: #123818 in Books
  • Published on: 2012-01-12
  • Original language: English
  • Number of items: 1
  • Dimensions: 10.00" h x .83" w x 8.00" l, 1.60 pounds
  • Binding: Paperback
  • 366 pages

About the Author
Albert Sweigart (but you can call him Al), is a software developer in San Francisco, California who enjoys bicycling, volunteering, haunting coffee shops, and making useful software. He is originally from Houston, Texas. He finally put his University of Texas at Austin computer science degree in a frame. He is an atheist, a cat person, and fears that he is losing brain cells over time. He laughs out loud when watching park squirrels, which makes people think he’s a simpleton. His web site and blog are located at http://coffeeghost.net

Most helpful customer reviews

31 of 31 people found the following review helpful.
An excellent introduction to Pygame and 2D game creation
By A Warm, Close, Personal Friend of Al
"Making Games with Python and Pygame" is the second in a series of tutorial books from Al Sweigart. Knowing that it can often be a somewhat tedious affair, Sweigart takes the approach that it's easier to learn a new computer language if it's applied to something fun. His first book, "Invent Your Own Computer Games with Python", put this to great effect as it lead the reader through learning basic Python by creating several small and simple games. His latest book continues this concept with more complex games and introduces the Pygame library for manipulating graphics, animation and sound. Well, re-introduces Pygame. The "Invent" book had a chapter on Pygame but it really needs its own book, hence this one.

"Making Games with Python and Pygame" is divided up into ten chapters. Over the course of the book, you will learn to create twelve games and every one of them is fun and very useful in the concepts that they teach. Make no mistake, this is not a book on basic Python syntax or just using the Pygame library. This book teaches you how to make actual games with a nice level of "professional" touches. I was surprised by a number of the hidden gems that were included in the book.

Each chapter follows the same basic formula. First is a brief description of the game that will be created and how it works. Next, is the full source code for the game. Then, he goes through the code, section by section, with a thorough explanation of what the code does and why it does it. At the end of the chapter, is often ideas for expanding the game and a link to "buggy" versions of the game that you can use to practice debugging techniques. The buggy versions can all be downloaded and each version tells you exactly what is wrong with the code. In fact, the book makes several references to supplemental material to be found on the book's website.

One thing about the chapters that I really appreciated was the way that they are organized. Each section of code has its own subchapter heading. This makes it very easy to find information on that section or, more importantly, the concept that section represents. These subchapters are also incorporated into the main table of contents. Another really great idea is that the book's website includes a "diff" tool where you can compare the source code that you typed in to the actual code for the games. This is extremely helpful if you get stuck on a bug and can't figure out what you did differently from the code itself. Combine this with the "buggy" versions available online and you can learn a lot. For example, comparing the working source code to a version where the game character isn't displayed on the screen as expected. This is the first time that I've seen this concept applied and it's a wonderful tool.

Here is a quick breakdown of the chapters and the topics that they cover:

Chapter 1 introduces you to the intent of the book and a few other preliminaries such as getting Python and Pygame installed.

Chapter 2 covers the basics of the game loop, game states, and general concepts such as managing the screen, graphic surfaces (canvases), basic drawing, animation and sound manipulation, and more. It also explains how to manage how fast the screen is drawn (refresh rates and frames per second). These are all very important ideas to understand before you can tackle the games themselves and Sweigart does an excellent job of leading you through them.

Chapter 3 introduces you to your first game, the classic "Memory" puzzle. The purpose of this chapter is to give you some experience with a real game loop and refresh you on your basic Python (conditions, loops, etc), as well as coordinate systems. It also introduces you to some nice additional features - basic animations for starting and ending the game.

Chapter 4 has you creating a Sliding Numbers puzzle. Key concepts such as keyboard and mouse input, screen rendering and animation are used here. I really want to emphasize something that is introduced in this chapter: "flair". Most beginner books that describe how to make games just teach you the basic mechanics of the game itself. Several of the chapters in this book teach you how to add some nice flair to your games. Chapter 4 has you create a nice little animation when the game is restarted. Rather than simply redrawing the board in a reset state, it has you play back every move in reverse, so it looks like the puzzle is being unshuffled. It might sound like a small thing but it helps to add a level of "professionalism" to the game. Especially for a beginner, it helps to give them the feeling that they have created something special. Little touches like this are spread throughout the remaining chapters.

Chapter 5 is built around a Simon-type (copy me) game. For those that may not remember Simon, its an electronic game that has four large buttons, each a different color, that light up and play a sound in sequence. The player then has to push each button in the same sequence. The longer you play, the longer the sequences get. This chapter focuses on the use of sound and controlling it, as well as using time as a feature. It also focuses on a bit of flair called an "attractor". An attractor is often used when a game is sitting idle. This is very common in arcade coin-op games where they will play an animation or sound clip to get your attention. You'll also see it used in games where you control a character on-screen (a la Mario Brothers or Braid) and let them sit idle for a bit and they start to get "bored". They'll start tapping their toes or looking around, maybe whistle... Those actions are all possible with the attractor logic and "idle state" taught in this chapter.

Chapter 6 uses the classic Snake game, here called "Wormy", to teach simple collision detection and mapping concepts. While not explicitly stated in the chapter, his approach to tracking the snake on the playing field and rendering it is very similar to managing levels and drawing their maps onscreen in RPGs. This concept is expanded on later in Chapter 9. Text rotation is also introduced for the title screen.

Chapter 7 expands on what has been learned so far with a Tetris clone. Here we're getting into complex shape manipulation, variable timing for user movements, more collision and rotation techniques and UI layout. A critical element of this chapter's game is that it is played in real time. Anyone that has played Tetris will be all to familiar with how frantic things can get in the later stages. The author takes the reader through some basic algorithms for increasing the complexity as the player progresses. Like Wormy in the previous chapter, on-screen elements are kept track of by using an array to store an object's boundaries, but it works and it works very well. Using the concepts learned here, you can track a complex object in space and move it around with some interaction with the environment (e.g. walls and other pieces). This is revisited again in Chapter 9. A strong emphasis on game logic is the underlying theme of this section and it helps prepare the reader to create more complex games.

Chapter 8 brings autonomous characters into the mix as you create a simple variation of Katamari Damacy. You basically take control of a squirrel that runs around eating other smaller squirrels while avoiding being eaten by larger ones. As you consume the other objects, you increase in size. There are some huge concepts in this chapter such as sprite manipulation, camera manipulation and viewports (essential for side-scrollers, which is alluded to with a reference to Super Mario World). This basically allows you to create games that have very large playing areas while only showing a small section at a time. You also learn how to do some basic sprite movement to make it appear as if your character is jumping/bouncing with the introduction of the Sine mathematical function. Also nice to have if you want to throw a ball up in the air and have it come back down realistically. Not content to show you how to merely move the screen's camera around, a little bit of flair is introduced that gives the player's character some "slack" where he can move on the screen before the camera moves, as well as brief invulnerability when the player first spawns.. Again, just a nice thing to see in a book directed towards beginners.

Chapter 9 is not the last chapter but it is the one that ties everything together in one really nice setup. Here the game is Star Pusher, a clone of Sokoban. This is an isometric game using a tile-set and externally stored maps, actual sprites, collision detection, and more graphic techniques. Upon completion of this chapter, you will have just about everything you could need to build a 2D game.

Chapter 10 finishes things up with four additional games that you can use to reinforce what you have learned and discover new techniques. The games included are variants of Othello, Flood It, Connect Four, and Bejeweled. Of special importance here is the introduction of basic A.I. concepts in Othello and Connect Four.

There are a few things that I would have liked to have seen included. It would have been great to have an actual side-scroller game, since I know that a lot of people are interested in that. Manipulation of background images with basic parallaxing would have been useful in that context, too. Greater use of canvases for more complex UIs would be helpful for people interested in creating RPGs or RTSs. Seeing a little more done with sounds and sound caching (similar to Chapter 9's caching of sprites) would also have been welcome. Speaking of sprites, sprite animation would also be nice. It's one thing to move a character around on the screen. It's a whole 'nother world to see him dance. A demonstration of using multiple screens (beyond a game over one) is another thing that I would have liked to have seen. Lastly, I would have preferred if the concept of basic class objects was introduced as a data structure instead of a dictionary type, as used in Chapter 9. Maybe for the "Making Advanced Games..." book?

One other thing to keep in mind is that this is not a Python tutorial and you will need a reference on hand for both Python and the Pygame library. If you are new to Python, you will definitely want to start with his other book first. Also, much has been said about the fact that this book is available online for free. While that is true, there is a lot to be said for having the physical book in front of you. Al has done a great job with this book and should be rewarded. If you opt for the online version, please, at the very least, consider hitting the PayPal donation link on his site.

I've been a professional software developer and architect for almost 30 years and have used various methods to teach programming to colleagues, friends, and kids. I've found structuring the lessons around games to be a very effective approach. I found Al's first book, "Invent Your Own Computer Games with Python", to be a very useful starter in learning Python. My daughter (who was nine years old at the time) used the first book to learn Python with great success. From it, she came away with the ability to create a small-scale RPG involving a certain well-known teen wizard (yes, that one) that very quickly became an elaborate adventure game. "Making Games with Python and Pygame" has allowed her to more fully flesh out that first game and she is excitedly making plans for a slew of new games. It's great to see her enthusiastic about programming and even better that it didn't involve any coaxing from me. She basically did it all on her own.

If she can do it, so can you.

[Note: A friend of mine asked if I was a close personal friend of the author, based on my username. No, that's a reference to "Weird" Al Yankovic, whose fans are known as "A Warm, Close Personal Friend of Al"].

12 of 12 people found the following review helpful.
A great book for anyone interested in making their own games
By Gabe Sinhorin
Ever since I was around 7, I always wanted to create my own video games. Inspired by games like The Legend of Zelda: Ocarina of Time and Pikmin 2, I decided to finally learn how to make games. I found a pretty well-known program called Game Maker and began building my own games.

I continued using game maker for about 6 years, but by then I felt like I needed something more powerful. Game Maker was great, but it wasn't really what I wanted. After researching different languages to learn, I finally decided on Python, and to my luck, I was given a free review copy of "Making Games with Python and Pygame" from the author, Al Sweigart.

Before reading this book, one needs to know that this is not a book for complete beginners. Fortunately for me, Game Maker has taught me most of the concepts needed to fully understand the book, but someone brand-new to programming may have some trouble with it. Fortunately, Al has another book called "Invent your own computer games with Python" which is up for free download at [...]. This book doesn't touch on Pygame, but it shows you how to make basic games as well as teaching you the basics of Python.

The first thing that I've noticed when reading through the book is of how easy to read it is. I've worked through other textbooks trying to understand how everything works, but the explanations and definitions are too vague to make sense of what everything is. In this book, everything is much clearer. I can finally find out what a module and method is!

The book guides you through making simple games like clones of Tetris and Sokoban. After showing the source code for each of these games, Al breaks down the program and tells you what each line of code does and how it is significant. I found this to be a good way to understand how the code works, because you see it in action for yourself. There is even a glossary at the back if you need a quick explanation on a concept.

All in all, "Making Games with Python and Pygame" is a great book for anyone wanting to begin making their own games. Don't expect your own "Shadow of the Colossus" when you're done, but you will have the knowledge to put together very fun and cool indie games that could even be released online, if you wish. In short, "Making Games with Python and Pygame" is a great read, I recommend it.

8 of 8 people found the following review helpful.
Pygame!
By !linux_user
You know. I really enjoy this book. Al writes a great book; it is an enjoyable read. This prompted me to buy his other book - Invent your Own Computer Games with Python. Buy them both - you won't be disappointed. The quality of the book (Paper, cover, typeset) is very readable and high-quality for a computer book, which makes it a good library addition. Also, you can get the digital edition free, and lots of code/etc from website - so very good value.

Al presents python and pygame concepts in context of re-creating several typical games - like tetris, memory, othello, wormy, etc. Overall excellent pygame book. Pairs well with the rasperry pi computer... hint hint, nudge nudge. ( The games featured in this book are installed on raspberry pi stock image.. )

Honestly it's more fun than slogging through the pygame website, and example code. Pygame and this book allow you to quickly put together some pretty 'low tech' fun and easy games.

Technically:
The book quickly introduces you to core display concepts like surfaces, drawing shapes, colors, blitting graphics, and playing sounds. Then it guides you through 'event handling' concepts over the course of several games. You will be up and running quickly making your own games with sound/graphics/event handling.

So, really a good intro / even intermediate intro / to pygame, which perhaps doesn't touch on pygame's more advanced topics very deeply. Focuses well on game design concepts, but doesn't get extremely deep into every bell and whistle of pygame, which to me was a good thing, and kept the book understandable and concise. It is not a 'reference' type book, and advanced pygame topics were not included.

See all 66 customer reviews...

Making Games with Python & Pygame, by Al Sweigart PDF
Making Games with Python & Pygame, by Al Sweigart EPub
Making Games with Python & Pygame, by Al Sweigart Doc
Making Games with Python & Pygame, by Al Sweigart iBooks
Making Games with Python & Pygame, by Al Sweigart rtf
Making Games with Python & Pygame, by Al Sweigart Mobipocket
Making Games with Python & Pygame, by Al Sweigart Kindle

Making Games with Python & Pygame, by Al Sweigart PDF

Making Games with Python & Pygame, by Al Sweigart PDF

Making Games with Python & Pygame, by Al Sweigart PDF
Making Games with Python & Pygame, by Al Sweigart PDF

Tidak ada komentar:

Posting Komentar