作者:empty 页数:679 出版社:empty |
Hi there, and welcome to the world of Android game development.My name is Mario; IT be yourguide for the next fourteen chapters.You camg here to leam about game developmen f onpresent the material in away that not only gives you helpful code snippet store use, but actuallyTogether we'llc over quite a range of materials and topics:Android basics, audio andGame programming can be easy if you know what you'redoing.Therefore I've tried toshows you the big picture of game development.Understanding the underlying principles is thekey to tackling evermore complex game ideas, You H not only be able to write games similar tothe ones developed over the course of this book, but youll also be equipped with enoughwowedgerogooeWeboreboo korean dlkeonaewarasorgdvloment onyour own.
A Word About the Target AudienceThis book is aimed first and foremost at complete beginners in game programming You dontneed to assume a little knowledge on your end about lava.If you feel rusty on the matter, Tdsuggest ref ie shing your memo ty by reading the on need ii on of Thinking in Ja tu, by Bruce Eckel(Prentice Hall, 20D6l, an excellent introductory text on the programming language.Other thanbeast at times, and this book should be considered your battle guide.How This Book Is OrganizedThis book takes an iterative approach in that we'l slowly but surely work our way from theOver the course of the chapters, well buildup a reusable codebase.soTd suggest going throughthe chapters in sequence.More experienced readers can of couse skip cet a in sections they feelcon dent wth.Just make sure to read through the code lit ings of sections you skim over a ltteso you will understand how the classes and interfaces are used in subsequent, more advancedsections,
Getting the SourceCodeThisbookisfullyself-contained:allthecadenecessarytoruntheexamplesandgamesisincluded.However, copying the listings from the book to Eclipse is error prone, and games do noprocess of copying code from the brok's text to Eclipse can introduce errors.Robert{the book'sbut the gremlins are always hard at work.To make this a smooth ride, I created a Google Codepro jeet that offers you the folow ng:i ramework classes over the course of the book.Each project therefore stands on its own.The codefor both Chapters 5and6iscontaiedinthech of-mr nom projectmeGoopecadeprofacehoundsfhet:/aaoole.cm/pbeginnigandrod.ganes.The complete sourcecode and assets, licensed under the GPL version 3,available from the project's Subversion fe posi tory.Aaushiormwdahaeiniahast amnehaproicsinloEcipseintextual form, and a video demonstration for the same.An issue tracker that allows you to report any errors you find, either in thebook is el for i the code accompanying the book.Once you tie an issue inthe is suc tracker.I can incorporate any fixes in the Subversion repository.A discussion group that is free for everybody to join and discuss thecontents of the book.I'I be on there as well of course,Android, the New Kid onthe BlockAs a kid of the early nineties, I naturally grew up with my trusty Nintendo GameBoy.lspent countless hours helping Mario rescue the princess, getting the highest score inTetris, and racing my friends in RC Pro-Am via link cable.I took this awesome piece ofhardware with me everywhere and everytime l could.My passion for games made mewant to create my own worlds and share them with my friends, I started programmingon the PC but soon found out that I couldn't transfer my little masterpieces to the GameBoy, I continued being an enthusiastic programmer, but overtime my interest in actuallyplaying videogames faded.Also, my GameBoy broke.Fastforward to 2010.Smartphones are becoming the new mobile gaming platforms oftheera.competing with classic dedicated handheld systems such as the NintendoDSor the Playstation Portable.That caught my interest again, and I started investigatingwhich mobile platforms would be suitable for my development needs.Apple'siOSseemed like a good candidate to start coding games for.However.I quickly realized thatthe system was not open, that I'd be able to share my work with others only if Appleallowed it, and that Id need a Mac to develop for the iOS.And the nl found Android.l immediately fell in love with Android.Its development environment works on all themajor platforms, no strings attached.It has a vibrant developer community happy tohelp you with any problem you encounter as well as comprehensive documentation.Ican share my games with anyone without having to pay a fee to do so, and if l want tomonetize my work, I can easily publish my latest and greatest innovation to a globalmarket with millions of users in a matter of minutes.The only thing I was left with was actually figuring out howto write games for Androidand howto transfer my PC game development knowledge to this new system.In thefollowing chapters, I want to share my experience with you and get you started withAndroid game development.This is of course a rather selfish plan:I want to have moregames to play on the go!