I have now fixed some bugs with stackable items and support for stackable items in the crafting window.
My current solution to my window managing system sucks.. I have two classes WindowManager and Window, every window contains the variables for all possible window types, this is fugly as hell. It will also lead to huge cpp & h files with unnecessary complexity, so i will rewrite it with polymorphism instead.
http://www.cplusplus.com/doc/tutorial/polymorphism/
Now i will do it as i should have done it from the beginning. Every window type is a own class that inherits from the window class. and the WindowManager class makes sure that all the windows behaves.
This should not take to much time (but i am sure that it will), it will just be a lot of copy & paste on my side. (at least i hope so)
Visar inlägg med etikett GameDev. Visa alla inlägg
Visar inlägg med etikett GameDev. Visa alla inlägg
söndag 13 februari 2011
lördag 12 februari 2011
Chrex is starting to take form
Chrex is my latest game project. The game will be a Sandbox Acrade/Action multilayer game, but there will be single player support too. The player gather materials that are used to build/craft new objects that can be used to (re)build the ship or build & configure weapons. Chrex will be a fast phased and brutal game, when you get shot down, you lose everything. On the other hand, it should not take to long time to gather new resources and rebuild your ship & weapons and then get your revenge.
The picture above shows how to craft a small reactor, the reactor is used to give power to the ship.
The picture above shows how to craft a iron cylinder, the cylinder can be used to build missiles.
Every super pixel on the ship is an iron bar, you can use them to build your ship by clicking in the build window. The light blue lines are just a preview of the wiring system, which as i stated before, is not implemented yet. This window will get a lot more complex when the functionalities are added. You shall be able to place missile launchers, lasers, reactors, command-center (bridge), thrusters and more. Then wire everything together and bind keys to the different functionalities.
Chrex is in very early development, basically this is what is implemented:
An window-manager have been implemented.
The crafting system have been implemented.
The Ship building have been partly implemented, (weapon, wiring & other functionalities needs to be added)
A key binding interface have been implemented but there are no user API yet.
A Ship preview where the ship faces the mouse pointer have been implemented.
The first release will be a preview release to get some feedback about the interface and it will be released when i have finished the ship building implementation.
The picture above shows how to craft a small reactor, the reactor is used to give power to the ship.
The picture above shows how to craft a iron cylinder, the cylinder can be used to build missiles.
Every super pixel on the ship is an iron bar, you can use them to build your ship by clicking in the build window. The light blue lines are just a preview of the wiring system, which as i stated before, is not implemented yet. This window will get a lot more complex when the functionalities are added. You shall be able to place missile launchers, lasers, reactors, command-center (bridge), thrusters and more. Then wire everything together and bind keys to the different functionalities.
Prenumerera på:
Inlägg (Atom)