Báo cáo tài liệu vi phạm
Giới thiệu
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Sức khỏe - Y tế
Văn bản luật
Nông Lâm Ngư
Kỹ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
THỊ TRƯỜNG NGÀNH HÀNG
NÔNG NGHIỆP, THỰC PHẨM
Gạo
Rau hoa quả
Nông sản khác
Sữa và sản phẩm
Thịt và sản phẩm
Dầu thực vật
Thủy sản
Thức ăn chăn nuôi, vật tư nông nghiệp
CÔNG NGHIỆP
Dệt may
Dược phẩm, Thiết bị y tế
Máy móc, thiết bị, phụ tùng
Nhựa - Hóa chất
Phân bón
Sản phẩm gỗ, Hàng thủ công mỹ nghệ
Sắt, thép
Ô tô và linh kiện
Xăng dầu
DỊCH VỤ
Logistics
Tài chính-Ngân hàng
NGHIÊN CỨU THỊ TRƯỜNG
Hoa Kỳ
Nhật Bản
Trung Quốc
Hàn Quốc
Châu Âu
ASEAN
BẢN TIN
Bản tin Thị trường hàng ngày
Bản tin Thị trường và dự báo tháng
Bản tin Thị trường giá cả vật tư
Tìm
Danh mục
Kinh doanh - Marketing
Kinh tế quản lý
Biểu mẫu - Văn bản
Tài chính - Ngân hàng
Công nghệ thông tin
Tiếng anh ngoại ngữ
Kĩ thuật công nghệ
Khoa học tự nhiên
Khoa học xã hội
Văn hóa nghệ thuật
Y tế sức khỏe
Văn bản luật
Nông lâm ngư
Kĩ năng mềm
Luận văn - Báo cáo
Giải trí - Thư giãn
Tài liệu phổ thông
Văn mẫu
NGÀNH HÀNG
NÔNG NGHIỆP, THỰC PHẨM
Gạo
Rau hoa quả
Nông sản khác
Sữa và sản phẩm
Thịt và sản phẩm
Dầu thực vật
Thủy sản
Thức ăn chăn nuôi, vật tư nông nghiệp
CÔNG NGHIỆP
Dệt may
Dược phẩm, Thiết bị y tế
Máy móc, thiết bị, phụ tùng
Nhựa - Hóa chất
Phân bón
Sản phẩm gỗ, Hàng thủ công mỹ nghệ
Sắt, thép
Ô tô và linh kiện
Xăng dầu
DỊCH VỤ
Logistics
Tài chính-Ngân hàng
NGHIÊN CỨU THỊ TRƯỜNG
Hoa Kỳ
Nhật Bản
Trung Quốc
Hàn Quốc
Châu Âu
ASEAN
BẢN TIN
Bản tin Thị trường hàng ngày
Bản tin Thị trường và dự báo tháng
Bản tin Thị trường giá cả vật tư
Thông tin
Tài liệu Xanh là gì
Điều khoản sử dụng
Chính sách bảo mật
0
Trang chủ
Công Nghệ Thông Tin
Đồ họa - Thiết kế - Flash
Building XNA 2.0 Games- P15
Đang chuẩn bị liên kết để tải về tài liệu:
Building XNA 2.0 Games- P15
Mộng Vi
57
30
pdf
Không đóng trình duyệt đến khi xuất hiện nút TẢI XUỐNG
Tải xuống
Building XNA 2.0 Games- P15: I would like to acknowledge John Sedlak, who saved this book from certain doom, as well as all of the great guys in the XNA community and Microsoft XNA team, who helped me with all of my stupid programming questions. (That is actually the term used—“stupid programming question”—and it is a question that one should not have to ask if one has been approached to write a book about the subject.) | 408 APPENDIX A DESIGNING THE WRAITH Our shockwave in action is shown in Figure A-8. Figure A-8. Shockwave in action Hit Logic We ll need to add some functionality to HitManager.CheckHit to implement the nolifty status rocket strikes and chainsaw smashes. The way that we ll set up the nolifty character will primarily prevent the monster from being lifted into the air by uppercut attacks but also will cause the monster s animation to sometimes not be affected by attacks. This means you ll be able to smash away on the wraith for a couple of seconds and he will be reacting to every hit but then for the next three seconds he will be able to attack in the midst of your barrage. We ll add a flag to the Character class called stunFrame which will decrease at a rate of 1f per second if above Of. If stunFrame is between Of and 3f the monster won t be affected by attacks. We get the previous state and previous location of the wraith. If we don t want him lifted we ll check to see if he is currently airborne and previously grounded if this is the case we return him to his previous state. Also we now need to check for noAnim before every trajectory and animation change to prevent us from moving characters that shouldn t be moving. int pState c i .state Vector2 pLoc c i .loc bool noAnim false if c i .stunFrame Of c i .stunFrame 3f noAnim true if c i .noLifty APPENDIX A DESIGNING THE WRAITH 409 if c i .stunFrame of c i .stunFrame 5.2f c i .stunFrame 5.5f if typeof Bullet .Equals p.GetType . else if typeof Rocket .Equals p.GetType pMan.MakeExplosion p.GetLoc 1f hVal 5f if noAnim c i .trajectory.X p.GetTraj .X of 600f -600f c i .SetAnim jhit c i .SetJump 300f Gamel.slowTime 0.25f r true else if typeof Hit .Equals p.GetType . if noAnim c i .SetAnim idle c i .SetAnim hit switch p.GetFlag case Character.TRIG_WRENCH_SMACKDOWN case Character.TRIG_CHAINSAW_DOWN hVal 15f pMan.MakeBloodSplash p.GetLoc new Vector2 -50f tX 150f c i .SetAnim jfall c i .SetJump -900f Gamel.slowTime 0.125f .
TÀI LIỆU LIÊN QUAN
Building XNA 2.0 Games: A Practical Guide for Independent Game Development
Building your First Mobile Game using XNA 4.0
Windows Phone 7.5: Building Location-aware Applications
Professional Windows Phone 7 Game Development: Creating Games using XNA Game Studio
Building XNA 2.0 Games- P1
Building XNA 2.0 Games- P2
Building XNA 2.0 Games- P3
Building XNA 2.0 Games- P4
Building XNA 2.0 Games- P5
Building XNA 2.0 Games- P6
Đã 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.