1. Trang chủ
  2. » Công Nghệ Thông Tin

PHP Game Programming 2004 phần 1 pdf

38 304 0

Đ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

Thông tin cơ bản

Định dạng
Số trang 38
Dung lượng 661,82 KB

Nội dung

[...]... 10 4 10 5 10 6 10 8 11 0 11 2 11 7 13 2 Playing with Chess and Databases 13 3 Non-Relational Databases 13 4 Creating and Opening a Database 13 4 Looping through the Database 13 6 Inserting an... 13 7 Updating an Entry in Your Database 13 9 Deleting an Entry from Your Database 14 0 Chess Programming: A Quick Overview 14 0 Starting the Chess Game 14 1 Working with the Pieces 14 3 Getting the User Input and Modifying the Database 15 1 Conclusion... 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... Dynamic Terrain 19 3 Planning Battle Tank Creating the Graphics Creating the Game Logic Creating Dynamic Terrain Conclusion Part IV Chapter 10 19 3 19 5 19 6 205 209 Extras and Final Projects 211 PHP and Sockets... 15 6 Contents Chapter 8 GD Graphics Overview 15 7 What Is GD? 15 7 Installing GD 15 8 Creating and Using a New Image 16 0 How to Use Colors 16 1 Allocating Colors to an Image 16 1 Filling the... set anywhere using the ini_set() 7 8 Chapter 1 ■ So What Is All This Server Stuff? Table 1. 1 Session Configuration Options Option Name Default Value save_path “/tmp” name “PHPSESSID” save_handler “files” auto_start 0 serialize_handler php gc_probability 1 gc_dividend 10 0 gc_maxlifetime 14 40 cookie_path “/” cookie_domain “” cookie_secure “” use_cookies 1 use_only_cookies 0 cookie_lifetime 0 referer_check... 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... 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... 16 2 Setting Your Transparent Color 16 3 Converting a True-Color Image to a Palette Image 16 5 Counting Colors in an Image 16 5 Retrieving a Color at a Point 16 6 Drawing Basic Shapes on Your Empty Canvas 16 7 Pixels and Lines 16 7 From Lines... 16 9 From Rectangles to Polygons 17 2 From Polygons to Arcs and Ellipses 17 4 Creating Images with Text 17 9 Saving Your Images 18 4 Using Existing Images 18 5 Conclusion 19 2 Chapter 9 Creating . specific needs. ISBN: 1- 59200 -15 3-X Library of Congress Catalog Card Number: 20040 907 31 Printed in the United States of America 04 05 06 07 08 BH 10 9 8 7 6 5 4 3 2 1 Course PTR, a division. . . . . . . . . . . . . . . . . . 11 0 Sorting Arrays . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 2 Your First PHP Game . . . . . . . . . . . . . . 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

Ngày đăng: 12/08/2014, 21:21

TỪ KHÓA LIÊN QUAN