microsoft visual basic game programming with directx phần 9

Trong chương này thưởng, chúng tôi sẽ quay trở lại trò chơi mẫu đầu tiên của chúng tôi, Nettrix, và cập nhật nó để làm cho nó chạy trên một Apress © 2003 (696 trang) Pocket PC (xem hình 1). Sẽ không có các tính năng mới, ngoại trừ một vài điều chỉnh giao diện để làm cho nó có thể chơi Theaauthors của văn bản này | Bonus Chapter Porting .Nettrix to Pocket PC In this bonus chapter we ll go back to our first sample game .Nettrix and update it to make it run on a Pocket PC see Figure 1 . There ll be no new features except for a few adjustments to the interface to make it playable on a Pocket PC and an update on the score counting. Figure 1 .Nettrix II running on a Pocket PC Before starting the migration of our game let s talk a little more about creating programs for mobile devices in the next section. Programming for Mobile Devices The .NET framework opens whole new horizons to all programmers and especially to game programmers with its property of running the same code across different devices running different operating systems. In this first version .NET is most of the time a simple wrapper to the operating system functions which are still present running everything in the background but Microsoft and other companies are already working on operating systems based on the .NET Framework so we can expect the compatibility to grow ove r the next few ye ars. Note Of course this compatibility will never be 100 percent since every device has its own characteristics with its own strengths and weaknesses but it s really great to be able to write our program for a PC and make it run on a Pocket PC with just a few adjustments Creating Smart Device Applications in .NET In versions of Visual Studio prior to .NET if we wanted to create a program to run on a mobile device such as the Pocket PC we had to use a specific version of the compiler and there was no compromise from the operating system in providing compatible functions. Therefore porting a program was sometimes a matter of erasing and rewriting everything. This porting problem was especially true when dealing with graphical functions. Even simple programs sometimes needed adjustments before running on a different device. Visual Studio .NET 2003 code-named Everett already has built-in support for the .NET Compact Framework with the

Không thể tạo bản xem trước, hãy bấm tải xuống
TỪ KHÓA LIÊN QUAN
TÀI LIỆU MỚI ĐĂNG
Đã 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.