4
2011
Imagescraper a small Ruby project using Sinatra
Imagescraper is a small project I built using Ruby together with the Sinatra microframework. If you aren’t familiar with Sinatra you can browse the project’s main website at http://www.sinatrarb.com/. In a nutshell Sinatra is light weight framework for Ruby that lets you rapidly build web applications using as few lines of code as possible. To install Sinatra as a Ruby gem, just type $ gem install sinatra into your terminal window assuming that you have [...]
5
2011
Build An Application Launcher With Android
This tutorial will build a complete launcher style app that can call any installed app on your phone via intents. By the end of the tutorial you app will look like the images below. To start off create a new Android application project within Eclipse. Whenever I develop Android apps I usually start with the layout of the application and add functionality via Java classes later. Since our app will display the users installed apps [...]
17
2011
Building A Simple Text Based Multiplayer RPG In C++ Part 7(Final)
Click here for part 6 In the last part of this series we’re going to develop the server logic to host our game and end with a short demonstration of how it works in action. Just as you performed it in part 6, create a new Visual C++ CLR project within Visual Studio and add the following files leaving them empty for now; “Common.h”, “database.h”, “server.h”, “database.cpp”, “main.cpp” and “server.cpp”. Solution Navigator should appear similar [...]
16
2011
Building A Simple Text Based Multiplayer RPG In C++ Part 6
Click here for part 5 In this tutorial we are going to build the client code which will be used by players to access the server where the game is hosted. However for this part of the tutorial we’re going to transition over from pure C++ to C++/CLI for access to the .Net framework’s networking libraries. If you haven’t been following this tutorial using Windows don’t feel left out because you can still take the [...]
15
2011
Building A Simple Text Based Multiplayer RPG In C++ Part 5
Click here for part 4 In this part of the tutorial we will complete the test and methods necessary to get the full functionality for the stand alone single player version. In the next part of the tutorial part 6, we will begin to develop both the client and server code that allows other users to connect and play our game over a local area network. So lets continue with the testing and move onto [...]
11
2011
Building A Simple Text Based Multiplayer RPG In C++ Part 4
Click here for part 3 In part 4 we’re going to implement the methods for two classes, the Monster class and the Room class. Due to its overall small code base we’ll look at the Monster class first. To jog your memory, below are the declarations for the Monster class from “database.h”. class Monster { public: Monster( string name, int maxHp, int strength, int defence ) ; //~Monster() void setHp( int newHp ) ; [...]
10
2011
My Ruby on Rails Demo Project Is Running, Go Check It Out
Last winter I began playing around with the Ruby programming language and seeing whether or not I would like to begin building software in it as opposed to Python or PHP. Well after going through various online tutorials and a spending about 2 months(while I was still in college) reading through a well rounded intro book on the Ruby language I decided that it would be best to start learning about the Rails web development [...]
9
2011
Building A Simple Text Based Multiplayer RPG In C++ Part 3
Click here for part 2 Where we left off we had just implemented the unit test for the Item class. However, before we can even run the test we have to first write out the methods. So create a new C++ file, title it “database.cpp” and add it to your project’s directory. Now go ahead and type in the following. 1 2 3 4 // Filename database.cpp #include "Database.h" using namespace MUD ; For [...]
8
2011
Building A Simple Text Based Multiplayer RPG In C++ Part 2
Click here for part 1 In this part of the tutorial we are going to write the methods and implement unit testing for the Item class introduced in part 1. Using a test driven development style means that we have to think of the class design first as a set of tests which we want it to meet before we begin writing any of the code. However, before any of that we have to first [...]
4
2011
Building A Simple Text Based Multiplayer RPG In C++ Part 1
Click here for a review on pointers if you need to brush up. Click here for a review on C++ iterators, if you can’t follow it then read the pointer review first. If you happen to be curious as to what exactly a “text based role playing game(rpg)” is in my own words a text based rpg is simply a game in which the player or players input commands into a terminal and are [...]


An article by


