PHP Game Programming docx

377 298 0
PHP Game Programming docx

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

[...]... to create his own scripting engine to parse input from an HTML form The first version of PHP was born; it was called PHP/ FI The programming community quickly grew out of PHP/ FI, and PHP soon became the API as you know it today If you know C/C++ or Java then learning the basic PHP constructs will be extremely easy PHP is a wonderful tool with quick, on-the-fly, compilation It also offers you a ton of... first create a Scorched Earth game remake called Battle Tank After you have created the initial game you will add dynamic terrain ■ Chapter 10 PHP and Sockets This chapter introduces you to socket programming with PHP It describes how to send and receive data through sockets ■ Chapter 11—Kiddy Cartel—Creating Your Own MMO Here you will create your very own MMO game In this game you will control your own... of how you might pass the session id along the query string in PHP < ?php if(!session_is_registered(‘nCount’)) { session_register(‘nCount’); $nCount = 1; } else { $nCount++; } ?> Hello, you have seen this page < ?php echo $nCount; ?> times. To continue, ”>click here (sompage .php? < ?php echo strip_tags(SID)?>) In this example we check to... exposure to PHP I suggest that you read the book in this manner However, if you already have a knowledge of PHP you can feel free to skip around from chapter to chapter This book is broken into four main parts The first part of this book walks you through setting up PHP and your Web server The second part introduces you to PHP itself In the third part of this book you start creating your very own PHP Web-based... the PHP CGI Interpreter This chapter will also show you some of the basics for configuring PHP ■ Chapter 3—I Have Conquered the Server, Let Me at the Code! This chapter will teach you the basics of HTML It also includes a brief explanation of how images work in the World Wide Web ■ Chapter 4—Say Hello to PHP This chapter introduces you to the PHP language itself You will learn the basic points of PHP, ... take all of these tools and give you the knowledge and power to create turn-based games on the Web xiii xiv Introduction Why PHP? You might ask, why PHP? What is the difference between PHP and another embedded scripting language such as ASP? The main difference between these languages is obviously syntax But beyond that PHP offers you tons of libraries, all for free The interpretation of code is faster... cover only so much in the way of installing PHP If something goes wrong during installation it will help if you know your operating system This book is not for someone with advanced PHP skills What’s On the CD? ■ ■ ■ ■ ■ ■ All the source code in the book The PHP installer for Windows and UNIX PHP libraries Evaluation edition of Jasc Paint Shop Pro 8 ST Software’s PHP Integrated Development Environment MySQL... dynamic, robust, extensible, rich multimedia content Five years ago you would never have thought of playing a game on the Web, but today, with current scripting languages, you can do just that PHP has transformed the Web as we know it PHP provides quick, dynamic, real-time tools to bring life to Web sites PHP (otherwise known as the hypertext preprocessor) burst onto the scene in 1994 when Rasmus Lendorf released... of PHP is that it is an object-oriented language, which inherently gives you a great deal of flexibility in your games Who Should Read This Book? This book is for anyone who wants to implement any Web-based games An understanding of HTML would be helpful I have included, however, a section dedicated to teaching you some basics of HTML Knowledge of your operating system will be helpful too Since PHP. .. Introduction ■ Chapter 12—Building Your PHP Skills In this final chapter you will take a look at additional applications for PHP, such as using Ming to create dynamic Flash movies ■ Appendix A—HTML Language Reference ■ Appendix B PHP Language Reference ■ Appendix C—Support—Debugging Applications ■ Appendix D—GD SDK Language Reference PART I Introduction to the World of PHP Chapter 1 So What Is All This Server . time to get involved in online game development. And with PHP, a completely free tool, it has never been cheaper or easier! That’s what’s so exciting about PHP Game Programming. Matt Rutledge has. parse input from an HTML form. The first version of PHP was born; it was called PHP/ FI. The programming community quickly grew out of PHP/ FI, and PHP soon became the API as you know it today. If. 4—Say Hello to PHP. This chapter introduces you to the PHP language itself. You will learn the basic points of PHP, such as how to create a PHP page, how to declare variables in PHP, and how

Ngày đăng: 27/06/2014, 12:20

Tài liệu cùng người dùng

Tài liệu liên quan