TAILIEUCHUNG - 3D Game Programming All in One- P12

3D Game Programming All in One- P12: During the past several years while working on the Tubettiland “Online Campaign” software and more recently while working on the Tubettiworld game, I figure I’ve received more than a hundred queries from people of all ages about how to get started making games. There were queries from 40-year-olds and 13-year-olds and every age in between. Most e-mails were from guys I would estimate to be in their late teens or early 20s. | Game Initialization 237 Exec . server Exec . server Exec . server Exec . server --------------- package Common function DisplayHelp Parent DisplayHelp Error Common Mod options n @ -fullscreen -windowed -autoVideo -openGL -directX -voodoo2 -noSound -prefs configFile function ParseArgs Parent ParseArgs Starts game in full screen mode n @ Starts game in windowed mode n @ Auto detect video but prefers OpenGL n @ Force OpenGL acceleration n @ Force DirectX acceleration n @ Force Voodoo2 acceleration n @ Starts game without sound n @ Exec the config file n Arguments override defaults. for i 1 i Game argc i arg Game argv i nextArg Game argv i 1 hasNextArg Game argc - i 1 switch arg --------------------- case -fullscreen pref Video fullScreen 1 argUsed i Team LRN 238 Chapter 7 Common Scripts --------------------- case -windowed pref Video fullScreen 0 argUsed i --------------------- case -noSound error no support yet argUsed i --------------------- case -openGL pref Video displayDevice OpenGL argUsed i --------------------- case -directX pref Video displayDevice D3D argUsed i --------------------- case -voodoo2 pref Video displayDevice Voodoo2 argUsed i --------------------- case -autoVideo pref Video displayDevice argUsed i --------------------- case -prefs argUsed i if hasNextArg Exec nextArg true true argUsed i 1 i else Error Error Missing Command Line argument. Usage -prefs path Team LRN Game Initialization 239 function OnStart Parent OnStart Echo n--------- Initializing MOD Common ---------- InitCommon function OnExit Echo Exporting client prefs Export pref . client False Echo Exporting server prefs Export Pref Server . server False BanList Export . server OpenALShutdown Parent OnExit Common package activatePackage Common Two key things that happen during game initialization are calls to InitBaseServer and InitBaseClient both of which are defined in common . These .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.