Tom Ortega II

Posts Tagged ‘Flex Programming’

Cooking Up a Storm Makes You a Better Coder

In Cooking, Learning, Programming on January 28, 2011 at 8:21 am

Sidenote: A companion piece to this post, entitled “Family Dinner: Cooking it and Making it Important”, can be found over on my spiritual blog.

(Re)Learning to Cook

In a recent post, I talked about being a Jack of All trades. I love to learn and do new things. One thing that I’ve forgotten I loved to do was cook. Last year, I travelled a lot. I rarely had time to cook other than some occasional grilling on the weekends. However, now that I work from home, I have time again to cook.

In addition to having time, I also want to start cooking more of the food that I eat. See, I created my own diet called One Minute Bite.(Yes, I really did create my own diet!) The diet requires fewer bites so I need to make sure each bite tastes good! Plus, if I’m eating fewer bites, I want to make sure I’m eating more real foods vs preservatives. I know, it’s a crazy notion, but I’m a crazy guy. LOL

The Books

When I want to learn a new tech, I go buy a book. I figure the same should apply to cooking. To jump-start my skills, I bought this two-volume set from Julia Child: “Mastering the Art of French Cooking”.

Julia's Books

Julia’s Books

Read the rest of this entry »

Building Games with Flex: Tic-Tac-Toe V1 Code Explained Pt 2

In Flash*Flex*AS, Game Programming, Programming, Technology and Software, Video Games on October 3, 2008 at 8:24 am

In my last post, I explained my logic/thinking behind 2 of the 3 files that make up Tic-Tac-Toe V1: Main.mxml and GamePiece.mxmlClick here to play the game (right click to view/download the source).  In this post, I’ll breakdown the remaining piece.

GameBoard.mxml
This piece is the real workhorse of the game.  It houses not only the board where the pieces are laid out, but also the game logic itself.

Was that the best decision?

Probably not.  If I wanted to swap out the game rules but keep the same pieces, I couldn’t do that.  It’s not so common with Tic-Tac-Toe, but think of a card game.  One deck of 52 cards can play an almost infinite number of games.  Would it make much sense to put the Solitaire logic right inside the CardDeck class file?  Nope, it surely wouldn’t.  I was in a hurry though so I did. Read the rest of this entry »

Building Games with Flex: Tic-Tac-Toe V1 Code Explained Pt 1

In Flash*Flex*AS, Game Programming, Programming, Technology and Software, Video Games on September 30, 2008 at 8:37 am

Part of my goals with these posts is teaching Flex for those just getting started.  What better way to learn Flex than by building a game of Tic-Tac-Toe.  Code is code and lessons can be learned/shared despite the final output.  You’ll (hopefully) learn tricks and methodologies for helping you code non-game projects via the code that I share and explain in this series.

There are  3 files that make up the complete game (right click to view/download the source) :

  1. Main.mxml – This has the Application tag
  2. GamePiece.mxml – This is the X/O game piece
  3. GameBoard.mxml – This is the tic-tac-toe gameboard

I’ll go over the 3 files, explaining logic on why/what from both the Flex and gaming perspective. Read the rest of this entry »

Building Games with Flex: Tic-Tac-Toe Version 1

In Flash*Flex*AS, Game Programming, Programming, Technology and Software, Video Games on September 25, 2008 at 9:16 am

Getting Started

Note,  while this isn’t anything like PlayCrafter, it is my small step into the huge world that is game making.  To get into gaming, I figured it would be best to start with the language I use day in and out: Adobe Flex.  To be honest, I can’t remember the last time I coded just for fun with Flex.  Most non-Workday Flex code I’ve built on my own time has been for 360Conferences, for some technical training/presentation or for my articles on Adobe’s sites.  I forgot just how fun programming can be.

I set out late Friday night/early Saturday morning with one goal:  Exit the weekend with a working version of a game.  I didn’t want to put much game theory in.  I didn’t want to OOP the heck out of the code.  I just wanted to build something that I could play and post on the net to share. Read the rest of this entry »