PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

December updates

New month, new update thread. :D

- The graphic engine has been optimized quite a bit today, the sorting of sprites is now more efficient and done only when neccessary.

- The isometric engine is now fully fonctionnal.

- New sprite options: SO_BACKGROUND, SO_TOPMOST (for z ordering) and SO_ISOTILE. The SO_ISOTILE will tile the sprite in an isometric way.

- New ISODEMO.PPL demo.

This release should be out by the end of the week (Friday probably).
Small update:

- Pause() function, to pause all sprites already created. You can then create new sprites for menus or user inputs, delete the new sprites and then unpause the sprites at the end.

- DelSprites() function, to delete sprites based on their Id's.

- AdjustXY() function, to calculate the mouse grid cell location based on a Map Width and Map Height cell dimension. This can be used for isometric grids also (ex: like the Jagged Alliance games).
Latest pre-release beta 0.8 is now available to download.

New features:

- New functions:
CopySurface() : Copy a surface to another one.
CloneSurface() : Create a copy a surface.
SurfaceEffect() : Apply, Blur, Negative, AlphaBlending or GreyScale to a surface.

- Can't use NULL parameter for main surface buffer anymore. A new variable is used. BUFFER%.

- New functions:
Classes() : Return a list of all defined classes.
Assign() : Assign a pointer to an object. Can also be done this way: &object;$ = pointer$;

- The graphic engine has been optimized quite a bit today, the sorting of sprites is now more efficient and done only when neccessary.

- The isometric engine is now fully fonctionnal.

- New sprite options: SO_BACKGROUND, SO_TOPMOST (for z ordering) and SO_ISOTILE. The SO_ISOTILE will tile the sprite in an isometric way.

- IsoDemo.ppl

- Implemented ZLib library for PC and PPC.

- ZlibDemo.ppl

- Pixel-perfect collision detection now works even if sprite sizes changes and even if rotation applied.

- Pause() function, to pause all sprites already created. You can then create new sprites for menus or user inputs, delete the new sprites and then unpause the sprites at the end.

- DelSprites() function, to delete sprites based on their Id's.

- AdjustXY() function, to calculate the mouse grid cell location based on a Map Width and Map Height cell dimension. This can be used for isometric grids also (ex: like the Jagged Alliance games).


Fixes:

- Major Object-Oriented language feature fixes and enhancements.

- Fixed debugger hangs.

- Sprite sorting bug fixed. (ZOrdering now works correctly).

- Fixed PIDE NewSubMenu() form generation error.

- Fixed SetRenderTarget() function.

- And a lot more...

Have fun, I hope you guys enjoy it! :)
Excellent job, the isometric demo is pretty neat too.

*begins work on isometric tile based engine ;)*
No, please finish the other game first (it is very promising)! ;)
New update is available now.

New features:

- DrawGrid() function.
- Alternate alpha and index functions for sprites. In an isometric game, when a character goes behind a wall, this method will make the wall either transparent or the wall can become shorter to let you view the character behind, this is all done automatically.

Fixes:

- Updated ISODEMO.PPL.
- Fixed AdjustXY() function.
- Origins are now being handled properly.
- Fixed Sprites() and DelSprites().
New version of PPL pre-beta release is now available.

New features:

- Typecasting can replace #object statement from now on.

- ShowSprite() and DelSprite() functions will process children sprites too.

- New WM_CREATE event for sprites procedure.

- RenderBackSprite(), SetBackSprite() functions.

- New SO_PROCESSONLYVIEW sprite option to call sprite's procedure only when sprite in view.

- New SO_TRANSPARENT sprite option for cheap transparency.


Fixes:

- Fix map origins positionning.

- Fix sprite sorting, it is faster now.

- Fixed nasty bug with the delete() function.

- Fixed linker bug when removing unused procedures or functions.

- Fixed bug with the return() statement.

- Fixed IsoDemo.ppl.

- Many small bugs fixed.
Update:

I would just like to let everyone know that I have worked on the Object-Oriented language again in the last few days and I came up with a nicer approach. You don't need to typecast an object variable almost everytime before calling an object method. PPL doesn't check for the methods existence at compile-time but at runtime now. Therefore this type of code is now going to work properly:

Code:
#class Tobj1
Public(x$);
public proc Test1
ShowMessage(x$);
end;

#endclass

#class Tobj2

public(
x$
);

list(objList1$); //List of Tobj1

proc test1
ShowMessage(x$ + 10);
end;

public proc Test2
test1;
ShowMessage(x$);
end;

#endClass

proc test(o$)
o.test2;
end;

proc main
#object TObj2 o2$
o2.x$ = 10;
test(o2$);
end;


If the method called doesn't exist, the error will only appear at runtime.
There is a new update available today.

I will not list all the changes, I kinda lost track of where I was while I was sick, therefore it won't be very accurate.

Here are a few highlights:

- Faster GameAPI.
- ObjCall() function to call a object method by address.
- Fix assignment operator.
- Fix SetSpriteAngle to support degree angle.
- And more...