Posts Tagged: ‘Book Conversion Project’

Beginning Game Programming: Two Chapters Down

September 10, 2021 Posted by zachary

As of today, I have completed the first two code examples from Beginning Game Programming by Michael Morrison. So far, this project has started off fun and even slightly challenging. I am really enjoying it. Here are some of the things I have learned.

Chapter 2: Blizzard Example

This chapter was not too challenging. In the book, this chapter had the reader create a basic game engine in C++. Since we are working with HaxeFlixel, I didn’t need to worry about that. But you do need to know how HaxeFlixel structures its projects. In a barebones HaxeFlixel project you have an assets folder (where all the game’s sprites, sounds etc live), a source folder (where all your source code goes), and a project xml file. The source file starts off with the AssetPaths, Main, and PlayState Haxe files.

The AssetPaths file is a class that scans the assets directory and creates pointer objects that you can use for your games. The Main file Loads in your game and sends the player to the PlayState. The PlayState file is where the core of your game is going to run from. In this file you have the create function, which is where you do all your initialization for your game, and the update function which is where all your game’s core logic will execute from.

In the Blizzard example, I also created a SnowFlake class file which is a basic class file that extends the HaxeFlixel FlxSprite class. The “game” doesn’t have a lot happening other than a timer and counter that controls how many and when to add snowflakes to the game screen.

(more…)

New Game Development Training Program

September 3, 2021 Posted by zachary

Hey Game Development Fans,

My name is Zachary Knight, I am one of the Co-Founders of Divine Knight Gaming. A long while back, we found and fell in love with Flixel, an Actionscript engine for creating 2d sprite based games for Flash. When that engine got ported to the cross platform language Haxe, becoming HaxeFlixel, we couldn’t be more excited about the possibilities. While I have made a lot of progress in learning this engine, there is still much more to learn. That is why I am taking up this new challenge.

(more…)