Click here to close now.

Welcome!

.NET Authors: Greg O'Connor, Aria Blog, Pat Romanski, Elizabeth White, Hovhannes Avoyan

Related Topics: .NET

.NET: Article

Book Review: "Beginning .NET Game Programming"

A beginner's guide in both VB.NET and C#

If you are interested in writing computer games or simulations in .NET, then the Apress book Beginning .NET Game Programming will prove to be a valuable resource. A trio of authors, notably David Weller, Alexandre Santos Laboa, and Ellen Hatton, wrote this book, which introduces the reader to many of the fundamental concepts that go into programming a game. All topics are illustrated in .NET using Visual Basic .NET or C# along with the .NET Framework managed wrapper APIs for DirectX and GDI+.

The book is organized principally around four game projects, including a .NET version of Tetris, as well as a space arcade game called Spacewar. Nearly every section of the book is accompanied by several source code listings that demonstrate the concept at hand. Because the source code plays an important role in introducing the reader to a particular concept, most will appreciate that this book is available in either a Visual Basic .NET or C# edition. Thus if you prefer to read source code examples from one language to another, be sure to find the edition that matches your language preference.

There are a dozen or so core programming concepts that are fundamental in developing a graphics-based computer game or simulation, and they include the base game object, the field or world, image manipulation, sprites and sprite animation, the game or simulation loop, collision detection, and path finding. In addition to these concepts, there is a myriad of fundamental concepts and technical details involving the APIs used for 2D and 3D graphics display and rendering, as well as sound output. Finally, there are intermediate to advanced topics that most games require such as network I/O for multi-user gaming as well as applying AI algorithms to implement intelligent or challenging strategies for interactive game objects.

This book touches on all of these topics to varying degrees. The material is divided into seven chapters with the first chapter tackling the basics of GDI+ and collision detection. Although the authors do a good job of introducing algorithms such as Axis Aligned Bounding Boxes (AABB) for implementing collision detection, I would have preferred that more basic game programming concepts such as sprites (introduced in chapter 2, after the introduction on applying AI in games) be developed for the reader first.

Chapter 3, "Managed DirectX First Steps" is packed with several key topics. The first part of the chapter launches into the managed DirectX API and also provides an overview of DirectX, DirectX 3D, and GDI+. This introduction takes you through devices, device parameters and capabilities, and display modes and into 3D coordinate systems, scene creation, camera placement and textures, as well as a very brief introduction to matrices and transformations that are part and parcel of 3D computer graphics. If your focus is on developing a 3D game or simulation, you'll want to supplement the material found here with additional resources (to help the reader here, the authors provide a resource section at the end of nearly every chapter to present additional information).

Chapter 4 provides an introduction to key concepts that include vector and trigonometric functions (used to calculate object velocity, etc.) and the game field, and also delves further into sprites with an introduction to sprite animation. In addition, the authors devote coverage to developing a game project proposal (in this context, the proposal is used to define the scope of the game and the requirements that are involved). Chapters 5 through 7 develop the Spacewar arcade-style game, illustrating the concepts introduced in the first four chapters while also introducing more advanced concepts such as point sprites. As a bonus chapter, they walk the reader through porting .NETTrix to the Pocket PC compact framework.

Beginning .NET Game Programming (in C# or VB.NET) will provide you with a good start toward developing 2D or 3D games or simulations. Although the book was written with .NET 1.x in mind, all of the fundamental game programming concepts that this book presents are independent of a particular .NET release, and thus are applicable to both .NET 2.0 as well as .NET 1.1.

SIDEBAR

Title: Beginning .NET Game Programming in VB.NET, Beginning .NET Game Programming in C#
Authors: David Weller, Alexandre Santos Lobao, and Ellen Hatton
Publisher: Apress paperback/414 pp.

More Stories By Kevin Wittmer

Kevin Wittmer works for SmartSignal Corporation as a technical lead. His programming interests span .NET, Java, C++, and Perl.

Comments (2) View Comments

Share your thoughts on this story.

Add your comment
You must be signed in to add a comment. Sign-in | Register

In accordance with our Comment Policy, we encourage comments that are on topic, relevant and to-the-point. We will remove comments that include profanity, personal attacks, racial slurs, threats of violence, or other inappropriate material that violates our Terms and Conditions, and will block users who make repeated violations. We ask all readers to expect diversity of opinion and to treat one another with dignity and respect.


Most Recent Comments
David Weller 03/01/06 10:26:58 PM EST

Thanks for the kind words, Kevin!

SYS-CON Belgium News Desk 02/27/06 03:10:20 PM EST

If you are interested in writing computer games or simulations in .NET, then the Apress book 'Beginning .NET Game Programming' will prove to be a valuable resource. A trio of authors, notably David Weller, Alexandre Santos Laboa, and Ellen Hatton, wrote this book, which introduces the reader to many of the fundamental concepts that go into programming a game. All topics are illustrated in .NET using Visual Basic .NET or C# along with the .NET Framework managed wrapper APIs for DirectX and GDI+.

@ThingsExpo Stories
Cloud data governance was previously an avoided function when cloud deployments were relatively small. With the rapid adoption in public cloud – both rogue and sanctioned, it’s not uncommon to find regulated data dumped into public cloud and unprotected. This is why enterprises and cloud providers alike need to embrace a cloud data governance function and map policies, processes and technology controls accordingly. In her session at 15th Cloud Expo, Evelyn de Souza, Data Privacy and Compliance Strategy Leader at Cisco Systems, will focus on how to set up a cloud data governance program and s...
Containers and microservices have become topics of intense interest throughout the cloud developer and enterprise IT communities. Accordingly, attendees at the upcoming 16th Cloud Expo at the Javits Center in New York June 9-11 will find fresh new content in a new track called PaaS | Containers & Microservices Containers are not being considered for the first time by the cloud community, but a current era of re-consideration has pushed them to the top of the cloud agenda. With the launch of Docker's initial release in March of 2013, interest was revved up several notches. Then late last...
Roberto Medrano, Executive Vice President at SOA Software, had reached 30,000 page views on his home page - http://RobertoMedrano.SYS-CON.com/ - on the SYS-CON family of online magazines, which includes Cloud Computing Journal, Internet of Things Journal, Big Data Journal, and SOA World Magazine. He is a recognized executive in the information technology fields of SOA, internet security, governance, and compliance. He has extensive experience with both start-ups and large companies, having been involved at the beginning of four IT industries: EDA, Open Systems, Computer Security and now SOA.
HP and Aruba Networks on Monday announced a definitive agreement for HP to acquire Aruba, a provider of next-generation network access solutions for the mobile enterprise, for $24.67 per share in cash. The equity value of the transaction is approximately $3.0 billion, and net of cash and debt approximately $2.7 billion. Both companies' boards of directors have approved the deal. "Enterprises are facing a mobile-first world and are looking for solutions that help them transition legacy investments to the new style of IT," said Meg Whitman, Chairman, President and Chief Executive Officer of HP...
The industrial software market has treated data with the mentality of “collect everything now, worry about how to use it later.” We now find ourselves buried in data, with the pervasive connectivity of the (Industrial) Internet of Things only piling on more numbers. There’s too much data and not enough information. In his session at @ThingsExpo, Bob Gates, Global Marketing Director, GE’s Intelligent Platforms business, to discuss how realizing the power of IoT, software developers are now focused on understanding how industrial data can create intelligence for industrial operations. Imagine ...
Operational Hadoop and the Lambda Architecture for Streaming Data Apache Hadoop is emerging as a distributed platform for handling large and fast incoming streams of data. Predictive maintenance, supply chain optimization, and Internet-of-Things analysis are examples where Hadoop provides the scalable storage, processing, and analytics platform to gain meaningful insights from granular data that is typically only valuable from a large-scale, aggregate view. One architecture useful for capturing and analyzing streaming data is the Lambda Architecture, representing a model of how to analyze rea...
SYS-CON Events announced today that Vitria Technology, Inc. will exhibit at SYS-CON’s @ThingsExpo, which will take place on June 9-11, 2015, at the Javits Center in New York City, NY. Vitria will showcase the company’s new IoT Analytics Platform through live demonstrations at booth #330. Vitria’s IoT Analytics Platform, fully integrated and powered by an operational intelligence engine, enables customers to rapidly build and operationalize advanced analytics to deliver timely business outcomes for use cases across the industrial, enterprise, and consumer segments.
The explosion of connected devices / sensors is creating an ever-expanding set of new and valuable data. In parallel the emerging capability of Big Data technologies to store, access, analyze, and react to this data is producing changes in business models under the umbrella of the Internet of Things (IoT). In particular within the Insurance industry, IoT appears positioned to enable deep changes by altering relationships between insurers, distributors, and the insured. In his session at @ThingsExpo, Michael Sick, a Senior Manager and Big Data Architect within Ernst and Young's Financial Servi...
SYS-CON Events announced today that Open Data Centers (ODC), a carrier-neutral colocation provider, will exhibit at SYS-CON's 16th International Cloud Expo®, which will take place June 9-11, 2015, at the Javits Center in New York City, NY. Open Data Centers is a carrier-neutral data center operator in New Jersey and New York City offering alternative connectivity options for carriers, service providers and enterprise customers.
The explosion of connected devices / sensors is creating an ever-expanding set of new and valuable data. In parallel the emerging capability of Big Data technologies to store, access, analyze, and react to this data is producing changes in business models under the umbrella of the Internet of Things (IoT). In particular within the Insurance industry, IoT appears positioned to enable deep changes by altering relationships between insurers, distributors, and the insured. In his session at @ThingsExpo, Michael Sick, a Senior Manager and Big Data Architect within Ernst and Young's Financial Servi...
PubNub on Monday has announced that it is partnering with IBM to bring its sophisticated real-time data streaming and messaging capabilities to Bluemix, IBM’s cloud development platform. “Today’s app and connected devices require an always-on connection, but building a secure, scalable solution from the ground up is time consuming, resource intensive, and error-prone,” said Todd Greene, CEO of PubNub. “PubNub enables web, mobile and IoT developers building apps on IBM Bluemix to quickly add scalable realtime functionality with minimal effort and cost.”
Sensor-enabled things are becoming more commonplace, precursors to a larger and more complex framework that most consider the ultimate promise of the IoT: things connecting, interacting, sharing, storing, and over time perhaps learning and predicting based on habits, behaviors, location, preferences, purchases and more. In his session at @ThingsExpo, Tom Wesselman, Director of Communications Ecosystem Architecture at Plantronics, will examine the still nascent IoT as it is coalescing, including what it is today, what it might ultimately be, the role of wearable tech, and technology gaps stil...
With several hundred implementations of IoT-enabled solutions in the past 12 months alone, this session will focus on experience over the art of the possible. Many can only imagine the most advanced telematics platform ever deployed, supporting millions of customers, producing tens of thousands events or GBs per trip, and hundreds of TBs per month. With the ability to support a billion sensor events per second, over 30PB of warm data for analytics, and hundreds of PBs for an data analytics archive, in his session at @ThingsExpo, Jim Kaskade, Vice President and General Manager, Big Data & Ana...
In the consumer IoT, everything is new, and the IT world of bits and bytes holds sway. But industrial and commercial realms encompass operational technology (OT) that has been around for 25 or 50 years. This grittier, pre-IP, more hands-on world has much to gain from Industrial IoT (IIoT) applications and principles. But adding sensors and wireless connectivity won’t work in environments that demand unwavering reliability and performance. In his session at @ThingsExpo, Ron Sege, CEO of Echelon, will discuss how as enterprise IT embraces other IoT-related technology trends, enterprises with i...
When it comes to the Internet of Things, hooking up will get you only so far. If you want customers to commit, you need to go beyond simply connecting products. You need to use the devices themselves to transform how you engage with every customer and how you manage the entire product lifecycle. In his session at @ThingsExpo, Sean Lorenz, Technical Product Manager for Xively at LogMeIn, will show how “product relationship management” can help you leverage your connected devices and the data they generate about customer usage and product performance to deliver extremely compelling and reliabl...
The Internet of Things (IoT) is causing data centers to become radically decentralized and atomized within a new paradigm known as “fog computing.” To support IoT applications, such as connected cars and smart grids, data centers' core functions will be decentralized out to the network's edges and endpoints (aka “fogs”). As this trend takes hold, Big Data analytics platforms will focus on high-volume log analysis (aka “logs”) and rely heavily on cognitive-computing algorithms (aka “cogs”) to make sense of it all.
One of the biggest impacts of the Internet of Things is and will continue to be on data; specifically data volume, management and usage. Companies are scrambling to adapt to this new and unpredictable data reality with legacy infrastructure that cannot handle the speed and volume of data. In his session at @ThingsExpo, Don DeLoach, CEO and president of Infobright, will discuss how companies need to rethink their data infrastructure to participate in the IoT, including: Data storage: Understanding the kinds of data: structured, unstructured, big/small? Analytics: What kinds and how responsiv...
Since 2008 and for the first time in history, more than half of humans live in urban areas, urging cities to become “smart.” Today, cities can leverage the wide availability of smartphones combined with new technologies such as Beacons or NFC to connect their urban furniture and environment to create citizen-first services that improve transportation, way-finding and information delivery. In her session at @ThingsExpo, Laetitia Gazel-Anthoine, CEO of Connecthings, will focus on successful use cases.
Sensor-enabled things are becoming more commonplace, precursors to a larger and more complex framework that most consider the ultimate promise of the IoT: things connecting, interacting, sharing, storing, and over time perhaps learning and predicting based on habits, behaviors, location, preferences, purchases and more. In his session at @ThingsExpo, Tom Wesselman, Director of Communications Ecosystem Architecture at Plantronics, will examine the still nascent IoT as it is coalescing, including what it is today, what it might ultimately be, the role of wearable tech, and technology gaps stil...
The true value of the Internet of Things (IoT) lies not just in the data, but through the services that protect the data, perform the analysis and present findings in a usable way. With many IoT elements rooted in traditional IT components, Big Data and IoT isn’t just a play for enterprise. In fact, the IoT presents SMBs with the prospect of launching entirely new activities and exploring innovative areas. CompTIA research identifies several areas where IoT is expected to have the greatest impact.