Menus and stuff
I got a very simple menu system working finally.. although for some reason Direct3D.Font throws an exception when the application closes.
It's just a bunch of colored blocks and some text in them, drawn by a bunch of generic drawing functions I wrote.. faster than the old crap ones, yes. They are coupled with a Menu class which handles clicks and returns values if the user clicked on a button on the menu.
Also doing some clean-up work on the main game "State" which contains the functionality to draw the map, detect clicks and other crap.. States are basically something which can be given to the Engine, which then calls the Render and Think methods in the state... So one can have a bunch of states, like a "Main menu state" which draws a main menu like thing and contains the logic for everything that happens there and another state class which handles the game itself or something like that.
Here's a screenshot of the game.
Now I need to rework some of the game state mechanics since it was originally somewhat quickly written just to test the engine and most of the functionality was just bolted on top of it later... so it needs clean up and other work.
on the IRL side of things, only two weeks of school to go... I have no idea what I'm gonna do when the summer holiday begins... I'll probably sleep too much, stay up too long and stay in too much and look pale in the autumn compared to everyone else.. "So what have you done this summer?" - "Um, I was coding C# and IRCing"
Someone donate me a laptop and a WLAN switch/router so I can go outside and code there in the sunshine ;)
1 Comments:
This comment has been removed by a blog administrator.
By Anonymous, at 2:58 AM
Post a Comment
<< Home