Jump to content

Christian

Members
  • Content Count

    13
  • Joined

  • Last visited

  • Days Won

    2

Reputation Activity

  1. Like
    Christian got a reaction from Czar in TIniFile Question   
    omg, sorry i suppose i found the problem.
    ini := TIniFile.Create; ini.loadFromUrl('res/apps.ini', procedure() begin writeln(ini.ReadString('0','Url','')) end); ini.free Ini.free is executed before the value has been loaded. Sorry for the circumstances. 
  2. Like
    Christian got a reaction from jarto in Pixelbuffer   
    The gameplay is simple. Just click on a part of the map and your player moves to this position. By pressing the space bar you place a bomb (max. 10 bombs can be placed at a time). If you are in Range of the bomb you activate the timer by right mouse click. Aim is to bomb the builders and the building.
    I skip 2 frames in order to have at least 22fps. The performance can be increased by minimizing the for loops in the render procedure and the access to the arrays. It was just a proof of concept how to paint and i'm happy to figured it out.
     
    Christian
  3. Like
    Christian got a reaction from jarto in Pixelbuffer   
    Hi, to be honest i already answered myself yesterday while studying the RTL code. It took a while to fiddle out how to deal with TW3ImageData.
    The result is attached to this post. Feel free to do whatever you want with this code. The render routine is extremely slow, but this is also the case in the original. You could drastically speed it up by replacing the tons of for loops. 
    The gameplay is easy: Move your little buddy with the mouse and place bombs at the buildings while the constructors are assembling them. They will run away if they do not work. The right mouse button will activate the timer if you are nearby. Don't blow up yourself if you are in range. 
    Before you ask: It is a remake of an very old java game. 
    blowit.zip
  4. Thanks
    Christian got a reaction from Czar in Pixelbuffer   
    The gameplay is simple. Just click on a part of the map and your player moves to this position. By pressing the space bar you place a bomb (max. 10 bombs can be placed at a time). If you are in Range of the bomb you activate the timer by right mouse click. Aim is to bomb the builders and the building.
    I skip 2 frames in order to have at least 22fps. The performance can be increased by minimizing the for loops in the render procedure and the access to the arrays. It was just a proof of concept how to paint and i'm happy to figured it out.
     
    Christian
×
×
  • Create New...