Sign in to follow this  
  • entries
    108
  • comments
    319
  • views
    137695

Hello SourceForge

Sign in to follow this  
Rob Loach

271 views

We submitted our 4E4 contest entry to SourceForge and it was approved so for the past while I've been fooling around with the CVS. I think I've finally figured it out now by using PuttyGen, PuttyAnt, Putty and TortoiseCVS. It's all setup now, although having to try and get it setup again on another machine might be a challenge. Hopefully Cibressus will stop being lazy and do it on his machine [smile]. Sorry, no screenshots yet until we have something to show. Most of the impressive stuff has to do with the design and the backend anyway, so I might post some code later on. Apparently SourceForge is planning to implement SubVersion into their system, which would be much better, but that won't be in effect for about a year I'm guessing.

Sure, here's a small demo to display Hello World:

using System;
using kEngine;

namespace HelloWorld
{
class HelloWorld
{
public HelloWorld()
{
// Start up engine
kEngine.WindowCaption = "kEngine - Writer Test";
kEngine.Initialize(new MainState());
kEngine.FillColor = Color.Wheat;
}

public static void Main(string[] args)
{
HelloWorld t = new HelloWorld();
kEngine.Run();
}



// Main state
private class MainState : kState
{
// We need to paint the state
public override void DoPaint()
{
kWriter.Write("Why, Hello World!",
kEngine.Screen.Width/2, kEngine.Screen.Height,
ContentAlignment.TopCenter,
Color.DarkBlue);
}

// When they press a key
public override void DoKeyDown(kEngine.Key key)
{
switch(key)
{
case kEngine.Key.Escape:
kEngine.Quit = true;
break;
}
}
}
}
}






As for the actual development of it. We finally got a logging system working that documents the filename and line number in a log file. Might implement the good ol' XML logging goodness that Evolutional and jollyjeffers brought up a while ago. Cibressus says he'll have a sprite class up and running today. I did one yesterday that worked, but he seems to be determined [smile]. FMOD in the audio system has been acting up recently so we might switch to see if we can get it working with SDL_mixer. It's rather different working through the interface of SDL.NET. I'm use to using normal SDL.

Random Interest


Click Image
Sign in to follow this  


2 Comments


Recommended Comments

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now