Thursday, February 16, 2017

ChessKISS still alive

ChessKISS won two minor leagues, I'm very proud of this little creature :-)

Nothing spectacular, but hey..., I think soon I will try to create a new version, let's see

62ND AMATEUR SERIES

Final Standings

39.0 - ChessKiss 1.7c 64-bit
36.0 - Dorpsgek Cosmopolitan 2 64-bit
30.5 - Isa 1.9.51 64-bit
29.0 - Obender 03.2016 64-bit
25.5 - Blitzkrieg rev337 64-bit
22.5 - Barbarossa 0.4.0 DJ 64-bit
21.5 - Cinnamon 2.0 64-bit
20.0 - BigLion 2.23x

MARCH OF THE MINNOWS

Final Standings

19.0 - ChessKiss 1.7c 64-bit
19.0 - Obender 03.2016 64-bit
15.5 - Blitzkrieg rev337 64-bit
15.0 - RamJet 0.13
14.5 - NGplay 9.86 64-bit
14.5 - Napoleon 1.6.0b 64-bit
13.5 - Isa 1.9.51 64-bit
13.5 - Soldat III 0.178 64-bit
13.0 - Cinnamon 2.0 64-bit
10.5 - BigLion 2.23x
10.5 - Ecce 1.0 64-bit
8.5 - Abbess 2016.11.12
8.0 - Smash 1.0 3 64-bit

When performance matters

First entry of the year, one month and half later... , found binaries at OneDrive

I've been focus this past two months on improving the performance, in some screens mixing many elements, enemies, particles, lasers, liquids and moving backgrounds was affecting the performance, so I did what I love, to dig into the code and start measuring and comparing, I'm quite happy with the results, now I can throw many particles here and there that performance is not affected.

I did focus on DirectX buffers: hash created only when needed, buffers only sorted when needed, tailor-made drawing triangle functions, RGB to int conversions.

Surfaces are now generated faster when they are in 32 bits.

Also the new TFastPool<T> used in particles it excels, and indexed array for fast access with a pool mechanism in the same structure (maybe I will explained in another post)

What's new:

BB)
Clear camera also clear perturbation values
New StartSize/EndSize particle properties, autoSize particle removed
Camera constructor does not longer sets the size in the constructor
All primitives now use InView() to check whether this primitive has to be rendered or not
Line with thickness is now done properly with perpendicular vectors
Now GlowLine() uses a line with thickness
Now particles have X and Y radius
Fixed some Z issues in primitives Line() and Triangle()
New TScreen.WaitBehaviour, buffers can be only resorted when creating new buffers
General improvement in the hash keys of the maps
New TLayer.FindProperty()
Glow rendering improved
Particles now can have a trail
New TMath.CircleInRectangle(): bool
TScreen.DrawSurface() fully improved
Particles.Gravity is now a vector
TScreen.Circles() now has a solid parameter
TRGB.Multiply() & Add() improved
New TRGB.ToInt32()
TScreen.TexCol_Triangle() improved
TVectorEx non operators improved
Particle Editor/Engine vastly improved
New TRGB.AsString()
New TPriorityQueue<T>
New TScreen.CircleGlow()
New TScreen.LineGlow()
New TVectorEx.AsString()
Particles can have Attractors
More triangle buffer optimizations
Added BigFile to Particles
New TFastPool<T>
New TParticleEmitter Sleep and SleepEvery properties
Now Particles uses TFastPool<TParticle2D>
Particles can be glowed
Alpha32 surface detection improved
Particles generated in Sphere fixed
All internal sin/cos calculations in particles are done in RAD so no conversion needed (extra multiplications)
Particle generator loop improved
Render buffer improved
Color performance in buffer improved for surfaces
Queue<T> improved
TPolygon.GetHash() improved
TScreen.FillSurface() improved
Surface cache improved
Sprites now maintain the hash of the buffers
Surface.AndMask() performance improved
Buffer hash generation had collisions (bad key)
Now particles work by time and not steps
Now TObjectEx implements IGroup
Added friction to particles
Some critical functions checks are executed only in debug mode
Particles now do some kind of occlusion via BB
New particles spread mode Expand
Now particles can take the form of shapes
Now Particles can have up to 8 different textures by default
An emitter can be inactive

HBF)
Cables throws more sparks
Camera size is update when resolution is changed
In menu the text scroller is left/right
New ColorTile element
Fixed an issue when a throwable weapon landed on a moving platform
Now reverse Disintegration works 100%
Now there is a global Gravity
Now color tiles got a tail
Lasergrid was not shown properly
New Path helper to create entities following map attributes
New enemy Rotator
Shover is shown properly when gravity is up
New Achievement "burn the block!"
Hero input code moved to Hero class
Added moving tapes to some levels
New element Wheel (HL2?)
Now all entities might target a tile (by name) and do something
Lava melting ice code fixed
Now demos can also track input from attack and action
New item Wand
Hero does no longer breathe in lava
Some elements now are glowed
TGameSprite.IsUnderneathOf() improved
Game can now load particles from map and/or triggers
Beetle and Titan show sparks when colliding
Flame was not working properly
Background are no longer mandatory in each level
Handling of entities on top of tapes improved
Arrows emit particles when collide
Now boomerang returns when collides with an item
All particles effect are now read froma file
New fireworks with forms
Hero's dust when landing is now done with particles
Air bubbles is now done with particles
In game menus, input is reset to not interfere with hero input
Hero now is got a candle on dark screens
Some backgrounds are now blurred






Thursday, December 22, 2016

Last entry of the year, glowing...

I've been playing a bit with glows and ropes, the result in this new version, merry xmas!!!

Found binaries at OneDrive 

What's new?

HBF)
  • Lava throws now go always outside the magma
  • Lava trail is made by particles 
  • Now hero can be idle but facing left or right
  • Equipment upgrades are now activated by default
  • New triggers AddItem() and Deposit() and Concatenate()
  • Item is removed from Inventory just after execution (if applies) and not when has finished
  • New Item Shovel 
  • Coin is no longer Static
  • Focus is now centered properly
  • Now shop is shown differently, also some items are no longer available...
  • Liquid was sounding even when height was zero
  • Extras search improved
  • Items can yield coins 
  • New achievement "Full Equipment"
  • New achievement "Find the Soul of Ginkgo"
  • New achievement "Blue Green Red"
  • New achievement "Destroy the Balls"
  • Some achievements removed 
  • Better achievement visuals
  • Nuclear explosion from Bomb fixed (it was also killing the own explosions)
  • Hover get excited with lava or electricity 
  • Items.pas split into different files
  • Hero refresh the equipment at the beginning of every level
  • Hero steps back when pushed with an arrow and is having a shield
  • Added in some levels a new layer in front of hero (just eye candy)
  • Game over state is not set immediately after dying but after fading is finished
  • Now all entities can do a monologue 
  • New Rope element 
  • New lamp style
  • Cables can excite hovers
  • Fixed small issues when contacting platforms
  • When Hero crushes is got a new sound 
  • When Hero is not facing then it cannot attack 
  • Inventory screen easier to understand
  • Sound system now uses a dictionary rather that an array, also direct access to sounds are avoided since the sound system might desired to free a non used sound, therefore creating an AV
  • Spotlight now can be killed
  • Scores were not inserted properly
  • Now property TGameSprite.IsSlow
  • Remove TileSetFromSolid stuff in sprite factory, it was redundant
  • Rays collision element adjusted
  • Menu font now does some transparency
  • Rope are no longer simulated with bezier curves but with newton's physics 
  • New Volcano element  (experimental)
  • Menu preparation logic moved from game to menu screen
  • Sky stars are now random per game 
  • Snowball now also freezes ceiling (when gravity is up)
  • Sprites can be glowed
  • New labyrinth aspect
  • Exit menu, shop and inventory screens got a sound when moving cursors

BB)
  • Buffer hash is also constructed with Alpha
  • Fixed an error with particles alpha when using primitives
  • Particles alpha handling improved as rgba
  • Negativing TVectorEx was totally wrong!
  • Camera zoom is now taken into account
  • New style Inverse in particles 
  • New TSurface.ExtractAlpha() and Glow()
  • Bezier curves do not longer creates a result class per calculation but rathern reuse a global list



Sunday, November 6, 2016

Itemising

Is quite funny to mentally visualize an item and then trying to find an use and a fit in the game

Found binaries at OneDrive

HBF)
  • Big enemies now have achievements
  • Joy reading improved a bit
  • Boomerang will not get stuck in a wall
  • Many new extras like: potion, bell, magnet, ancient
  • Many new achievements like: "do magic on a key"
  • Now menu shows % of achievements
  • Some graphics changed
  • Lava eruption do not longer splash in the bottom of lava
  • Highscores fixed
  • Now there is only one key with Key property to select the type of key
  • Screen code cleaned
  • GameSprite new properties, DieText, SpawnItem and SpawnClass
  • TSpawner new property WaitingTime
  • New class TItemResolver, it helps creating items and entities when breaking walls
  • New THero.WeaponInUse()
  • All checkpoints are now in layer 2
  • Now FadeIn()/FadeOut() can be used properly in triggers
  • New enemy Triangle
  • Beetle now jumps when close to an edge
  • Now game has scoring
  • Fixed memory leak with ingame screens
  • Weapons also kill chandeliers
  • New TBouncingEnemy
  • Fixed an issue were a player could take infinite flying coins exiting/entering the levels continuously
  • Fixed an issue were a player could avoid having one less live when dying if level was exited immediately
  • New candle
  • Terminal show different scripts
  • Kurkani fixed
  • Fixed an issue replaying previous music

BB)
  • New Sprite.Locked property
  • TPolygon.GetHash() performance boost
  • Now screen buffers and sorted buffers are mixed into one unique queue
  • New TSprite.ClearTimers()
  • Fixed an issue when rotating the screen quad
  • Buffer rendering improved for some fix situations (like sprites...)



Sunday, October 16, 2016

Inventorying...

 Every time I implement a new thing lots of ideas come to my mind, like with inventory, many new things were changed thanks to this new feature.

Found binaries at OneDrive

HBF)
  • New inventory screen that can be accessed via return key or Y gamepad
  • Equipment is set via RTTI
  • Equipment code improved
  • New unit Items
  • Now Hero can have extras, like torch, horn, map, etc...
  • Screen exiting code improved
  • Coins now have a quantity property (default is 1)
  • Hero can wear an armor
  • New options for Continuous jumping entities like force and decay
  • New TJumpingCoin entity
  • New extras: Map, Bomb, Clock, Parasol, Horn, etc
  • Now Minimap works in any level
  • New item Double Shoes...
  • Coin classes renamed
  • Crepuscule lights move a bit...
  • New NPC property Thanks, be kind...
  • New chest element
  • Hidden levels are shown in main menu (if reached)
  • New property Gamesprite.AutoCenter
  • Finally all classes are created based on names (via RTTI)
  • HUD shows Runes in a frame
  • New Tucan bird
  • New action button, so that hero can use weapons
  • Some new graphics ...
  • Extra life shows a different graphics
  • Inventory is rendered in the HUD
  • Now inventory can have more than one unit of an item
  • Some changes in the expirable items
  • Post can have codified messages
  • New element Sparks
  • Bird chances reduced
  • New music achievement
  • NPC now properly says "a" or "an"
  • Princess now will be in a cage
  • New weapons...
  • Slope collision fixed
  • Magic?!
  • Fixed some bugs with collisions and no gravity elements (since it was not used...)
  • New method IInventory.FindByClass()
  • New achievements
  • Highscores now shows reached level
  • More versatile inventory
  • Fixed memory leak in shop screen
  • GameSprite IsMoving() improved
  • Many code lines "A mod B" changed to "A and B" when possible
  • Cadency now always works in milliseconds
  • Weapons volume is adapted to the distance to hero
  • Since new Windows 10 anniversary update game didn't restore once the focus was lost, weird but fixed
  • Huge performance boost in the creation of the object by name, by simply creating the context once and not on every call
  • Now Shop open/closes door
  • Jumping coins when created in the air do not initially jump
  • Updated to latest BASS library
  • NPC can have monologues...
  • Timer was started on a wrong event
  • New Terminal element
  • New achievements...
  • Game shows a menu when pressing escape or joy start
  • Extras can also yield coins

BB)
  • New T2DParticles properties AutoAngle and Elasticity
  • When a surface is destroyed and then the buffer, the search is faster
  • New helpers in TInputKeys.IsButton()
  • FFont.Render() now returns a boolean indicating whether it was painted or not
  • Laser ending was drawing even when no segments were set
  • Added thickness in drawer.Box()

The inventory



Weapons and Shields...

Thursday, September 15, 2016

Hero goes shopping


I always love games that allow you to buy items, games like wonder boy in monster land or black tiger, so this is my little tribute...

  IShopItem = interface
    ['{D6EFA6AF-05C3-4A54-984E-37F6A4809FC0}']
    function GetCost: integer;
    function GetDescription: string;
    function GetId: string;
    function GetType: string;
    function GetLevel: integer;
    function GetProperties: IMemVar;
  end

  IShop = interface
    ['{93AD660B-79F0-4CED-A37C-EFE384228D51}']
    function Count: integer;
    function Exists(const aItem: string): boolean;
    function Enter(aInventory: IInventory): boolean;
    function Find(const aItem: string): IShopItem;
    function GetCategories: TList<string>;
    function GetItems(const aCategory: string): TList<string>;
    function Purchase(const aItem: string; aInventory: IInventory): boolean;
    procedure Remove(const aItem: string);
  end;

Found binaries at OneDrive

HBF)
  • New Enemy Octopus
  • NPC talk is more accurate
  • Doors now can be hidden
  • All entities can have a Hint
  • Adding a shop
  • New inventory class
  • Now taken coins are shown and not left coins
  • When in finish screen, last level is not shown
  • New music when shopping
  • New element cauldron
  • When hero got a shield it can stop arrows
  • Render screens code refactored
  • NPC can yield coins
  • Hero can attack if proper item is owned (sword, axe and knive)
  • Enemy energy is now used
  • Now shop offers boots! (faster walk, jumping, slippery...)
  • Screen Prepare() method more handy
  • Blocks can contain hidden coins
  • New element Idol
  • GameServices.GetHero returns now IHero
  • Hero's shield is affected by arrows depending on its level  (pushed backwards)
  • Enemies killed with a weapon spawns a coin
  • Shopping menu slowly improved
  • During the same game, already taken coins do not appear again when revisiting a level

BB)
  • New TMasterDetail<M, D> class
  • Some functions changed parameters of type TDummySprite to ISprite
  • TLevels simplified
  • New TObjectHelper.CreateByName(), it creates any kind of class by name, very handy for the inventory


Hero with his sword and shield after purchasing them in the futuristic shop :-)


Monday, August 8, 2016

Say hello to Non Player Characters

In summer is not easy to find the necessary inspiration to tackle this project, but at the end I found interesting to introduce the so called NPC in the game. They are implemented in an easy way:

  INPC = interface
    function GetItems: string;
    function GetNeeded: string;
    function GetAchievement: string;
    function GetDelay: cardinal;
    function IsDeal(aInventory: IMemVar): boolean;
    function Interact(aInventory: IMemVar): TNPCResult;
    procedure StopWalking;
    function Talk(out aText: string): boolean;
  end;


 Just chatting, expecting some items and give new items..., nothing fancy

Found binaries at OneDrive

HBF)
  • Minimap also prints teleport, enemies and doors
  • New class TDead for handling disintegrate effects
  • Blood has more colors in the same range
  • Door can take you to specific levels
  • Water can flow to already existing reservoir
  • New level Asphyxia!
  • Game now can have more than one door, so keys are related to door groups
  • Now doors can be upside-down
  • Better handling of door keys
  • Some pools are now based in lava
  • Liquid now have texture, Thrownrate, Sound and SplashCadency properties
  • class TSpawner improved
  • Lava can do ice heating
  • Quake is now done with camera
  • Birds spawning code improved
  • TDust now has orientation  (horizontal/vertical)
  • New TLiquid.IsResetable()
  • New bee (replacing bird...)
  • All Direction stuff removed, it was useless
  • Deadly liquid does not sound like water anymore
  • New class TFloater, barrel inherits from it
  • New element Boat, inherits from TFloater
  • Waterfalls streams work 100% now
  • New Achievement regarding waterfalls
  • Adding NPC
  • Now game shows inventory
  • New achievement related with NPC (talk to them...)
  • Menu option continue on removed, now when entering a level one can freely choose another level (if reached of course)
  • Optimizer now can load from multiple folders

BB)
  • Main engine render loop finally done in a proper way
  • Particles now have friction
  • New default buffer timeout is infinite
  • Triggers can be linked to other triggers, so until related trigger is not executed current one cannot be executed
  • Liquid might have textures (used for lava)
  • Fonts rendering improved
  • Fixed an error with buffer size increments
  • Liquid now has thickness
  • Liquid now is got some optimization when big areas
  • Particles now have emission type (continuous, once)
  • TLaser now inherits from TDummySprite
  • Trying to add some noise to the laser
  • Fixed some offset issues with some primitives
  • New TSpriteEngine.Find(name)
  • Now Triggers can target any entity that implement IExecutor
  • Liquid edges are shown properly
  • All sprites now can have texture offsets
  • Sprites can now also load from big File
  • Laser can now have a texture assigned
  • New utils.fmod (float modulo)


New secret and hidden level!


Old man giving me something...


Saturday, May 7, 2016

Fluids flowing

Time to post!, now that particles are used and abused, then I was playing a bit with liquids

Found binaries at OneDrive

What's new since the last update?

 HBF)
  • Dust and starfield are no longer split into render/tick, so looping twice is avoided
  • When hero dies in lava, particles are shown in a different color
  • Fireworks done with particles
  • Many Trunc() and Round() removed
  • Scepter does not appear in the same position as in the previous iteration
  • Replaced all possible TGraphicsDriver.Instance by new interfaces from IGameServices
  • Waterfalls are always fully developed since the very first frame
  • Ending changed a bit...
  • Runes class improved
  • Shunenbukaidesu improved
  • Since blood was everywhere now it got its own class
  • In final enemies energy is shown centered and with alpha
  • Kurkani also disintegrates and bleeds
  • Fireworks are now nicer (I guess...)
  • Platforms handling code moved from game to sprites
  • New elements AirBubble, Hit, LavaSplash  and Spark
  • New animation for scepter
  • New pickup Minimap
  • New explosion sprites sheet
  • When water finds a hole it flows
  • Barrel movement improved
  • Some name changes in levels
BB)
  • Sprites have now X & Y also as int
  • Particles now can have many emitters
  • Particles now have autozoom
  • New particle visible property
  • Now when screen buffer is overflow then it is skipped (avoiding AV)
  • Improved sleeping code
  • Surfaces can have gamma
  • TGraphicsDriver.Triangle() was not drawing properly...
  • Improved how sprites internally do Render() & Tick()
  • Internal list in SpriteEngine changed from TList<T> to TLinkedList<T>
  • Handled platforms in some cases were removed from list incorrectly
  • New animation property wait, used to change the cadency of the first frame (used in sceptor)
  • Camera2d adding zoom functionality... (WIP)


Friday, March 25, 2016

Particles everywhere...

Since 2d particles engine is now fast enough then I was happy playing around, the outcome is that  some parts now are based on particles.

Found binaries at OneDrive

HBF)
  • New element Dust that can be propagated in Sphere and Cube
  • Dust is not rendered when parent is not painted
  • Starfield is not rendered when parent is not painted
  • Smoke in Ventilator looks better
  • Crepuscule, Candle, Lamp and Focus gets dust
  • Some more animations in background tiles (ice levels)
  • Teleports got some particles
  • When hero was entering a teleport and gravity was changed hero was not behaving properly
  • Now platforms might attach a FireWheel
  • if bird was locked by a web it was still using the bezier path
  • EffectDispatcher is less memory hunter
  • Waterfall is done now with particles
  • Snow is done with particles
  • New ice explosion with particles
  • Now rain is also done with particles
  • New magma particles effect (used in Lava Love)
  • Some map changes
  • Mirror was static..., cannot be otherwise laser would not bounce
  • Eye code improved a bit
  • Hero does no longer set the game state to gameover, that might caused AV!
  • New element Cortain
  • New bar for Gatashi live
  • New bar for oxygen
  • Gatashi disintegrates when dying
  • Horus makes sparks
  • Rain now uses wind
  • Fixed a weird glitch were hero could jump when graviting
  • HUD shows coins left in different way
  • The static class SpriteAttribute was not freed
  • The cloud sprite from menu was not freed

BB)
  • Fixed memory leak when surfaces were not cached
  • TParticle2D improved
  • TSurface.Noise() improved
  • Screen buffers aging code improved
  • Configuration .ini files can have any published property from sprites
  • New TObjectHelper.SetProperty(name, value)
  • Particles now use a linked list + dictionary, for insert + delete + iterate fits better than a simple list
  • Dictionary from Pool<T> removed, it was not really needed (consumer has to return used objects before clearing the pool)
  • New TLinkedList.DeleteCurrent()
  • Particle2d has more properties
  • Particles internally use now a Pool<T>
  • TPool<T> now internally uses a Linkedlist rather than two simple lists
  • Particle engine improved
  • New Events.AddTimer()
  • New sprite.GetAngleFromDir()
  • Minor cleaning in sprites
  • 2d particles improved
  • TSurface minor improvements
  • Shadow surface was not freed when parent surface was not Cached
  • The polygon created when rendering water was not freed
  • The polygons in TScene3d were not freed properly
  • New TSimpleLinkedList<T>
  • Collisions are now based on CRC and not artificial key




Sunday, February 28, 2016

First entry of 2016, it was about time...

Two months without updating the blog does not mean not doing anything..., here we go!

Found binaries at OneDrive

BB)

  • New TSpriteEngine.SpritesAt<T: class>(const aRect: TRect; aCallback: TSpriteCallback<T>): boolean; very helpful
  • Removed speed stuff from Camera2D
  • New TDummySprite.IsEmpty() true when surface is not created yet
  • New collision method with callback for detailed info
  • Added some optimizations to the collision system
  • New camera.Lerp() and CameraHelper ideas
  • New property TDummySprite.TickCadency (tick and render calls can now be different)
  • New CameraLerp helper
  • New TCamera2D SetWindow() and InsideWindow(), useful for camera lerp 
  • Maps now can indicate a custom colorkey 
  • Tiles outside the camera view are also update (not rendered)
  • Laser now can have zoom
  • New property TSprite.AlphaSpeed 
  • When a sprite is attached to another one, horizontal and vertical speeds are set to zero
  • TBigFile file search functions improved
  • Now .ani files can setup the bounding boxes (rectangle for collisions)
  • New TSurface.SetBB() to manually define it
  • New TRGB.Blend()
  • TAnimationSprite refactored, it was quite a mess...
  • Fixed a bug when saving a layer with assigned colorkey 
  • Debug property removed from SpriteEngine  and Sprite 
  • TLayer, when map has no width or no height it does not do anything
  • 2d particle engine finished
  • New TSurface.Desintegrate()
  • New TSurface.CreateChannels()
  • Nasty bug where textures already freed were used in screen buffers
  • Now Rectangles can have an angle 
  • Now Shadow property is assigned only when Engine is assigned
  • Static sprites do not reach collision matrix
  • Collision grid can now be shared among different engines
  • If a leyer, if an animation has only one frame and cell tile has changed then animation is updated with the new info
  • Z selection bar from TMenu is now taken from Z Font 


HBF)

  • Heavy use of new function SpritesAt<T>()
  • Main menu is now easier to use
  • When beetle touches a mechanic enemy it changes its direction
  • Long silly bug, I was not counting rotating coins...
  • Music after pause could not be not recovered
  • Ticks also count when game is locked (not paused)
  • All screens can be skipped with jump Key
  • When game is paused messages cannot be skipped
  • Finally shadows are cast properly when no tiles behind
  • Coins and key info now is back to main game structure
  • Time achievement changed from 15 to 20 minutes
  • New concave collisions (experimental)
  • Fixed an issue with the collision of the balls
  • Improved triggering code
  • UFO has now a different texture
  • Side tiles do not cast shadows (avoids ugly shadows...)
  • When hero lands there is a quake 
  • New tiles arriving! :-) (big thanks goes to https://twitter.com/co_Opernicus/status/698463878703947776)
  • Quake new parameter Intensity
  • Gatashi laser now uses the zoom
  • Weird enemy now properly works at any speed 
  • New element fly 
  • Now arrows when hitting mechanic or indestructible entities it will fall like it does when hitting arrows
  • Now arrows get nailed to entities when they are hit (and normal)
  • Steps in catchers can now be configured
  • New TGameSprite.Ready() to make easy "one time" calls (executed after all published properties are parsed)
  • Post do not way for input
  • Web and wheel textures changed
  • Bubbles rotate a bit while moving up
  • Bomb texture changed
  • New enemy Fire Skeleton (testing it...)
  • Fixed an issue when on platform and gravity changes
  • New hero texture (experiment...)
  • Game does not longer needs file graphics.data
  • Now Horus looks different
  • The first level is no longer shown in the continue option menu
  • Foot steps on platforms and tiles is now calculated on the fly analyzing the bitmap
  • Weird texture looks different
  • New enemy rat
  • New enemy serpent
  • Now after a fight is win then hero gets immunity
  • Triggers can now make visible/invisible the layers and background
  • Door is got a starfield
  • Bubbles can catch mechanical enemies 
  • A level can have now many waterfalls
  • The music volume in the settings was ignored
  • When Gatashi throws its laser it creates a quake 
  • Gatashi stays one second without moving at the beginning of the level
  • Debug property added to TGameSprite 
  • Hero dies in a totally new way (I believe much cooler)
  • Hero dying code improved
  • New enemy Penguin 
  • Finally the game creates all entities via rtti and attributes (hooray!)
  • New element troya horse
  • Bat does not longer gets stick in walls
  • When hero lands on a platform the quake intensity depends on impulse
  • Now Gatashi also bleeds
  • Gravity can also affect pushable objects
  • Minor map changes
  • Doors can now be fake, beware!
  • Now ending is done in a proper way
  • Fixed an issue when in TSea splash was too heavy 
  • Scepter replaces book 
  • New blood textures
  • New enemy robot 
  • New element Rainbow 
  • Hud objects do not cast shadows
  • Some Z priorities changed
  • Fixed a bug with achievement "all runes"
  • New element Bell and achievement
  • When Gatashi heats an ice cube it changes to another tile
  • When HBF dies drowned particles are blue
  • Entities that emit light in darkness are properly tagged
  • Flash effect now takes a color as parameter
  • More background tiles
  • Focus can now point up and down 
  • Droid laser now also shakes
  • Lava kill spider web




Wednesday, December 23, 2015

2015 is ending very soon, very intense year...

This is what I was able to change in the last month, let's hope 2016 is our year (and yours)

Found binaries at OneDrive

HBF)

  • Moving balls bounces when hero is on top and touches a wall
  • Electricity also kills enemies  (but only if camera is there to make it funny)
  • TGameSprite.IsBellow() is more accurate now
  • Grass shakes with any moving entity
  • Chandelier goes back to original position with a proper animation
  • Frogs jumps higher
  • Skeleton only throws bone when facing hero
  • Spider is now slower
  • Enemies are no longer stuck in non moving platforms
  • Clouds in menu are now red
  • Timeout was not reset when clearing screens, therefore after loosing a fight tunes would not appear anymore
  • HUD refactored
  • Spring improved
  • Snow ball now dies when is too small
  • Worm attack pattern changed
  • TryEnterVehicle moved from Game to GameSprite
  • HandleTeleports and HandlePosts moved from Game to GameSprite
  • Gatashi laser now shakes water if it is on the way
  • Game is rule by a proper state machine
  • Princess now "talks" to hero when close enough
  • Jump system improved
  • When skull is taken, crepuscule lights go away
  • New trigger functions TextSelection() and QuestionAndSet()
  • Dialog now has a color parameter
  • Firebug speed increased a bit
  • Head fire once option implemented
  • Cloud priority changed
  • Enemies can also now teleport and shield (although they don't do it...)
  • Achievements can be reset
  • Unlocked achievements are shown differently
  • Banners can now be horizontal
  • Dialogs can have portraits
  • Triggers are executed only when walking and flying
  • Messages can be waiting for confirmation
  • Screen code improved with machine state events
  • When hero dies colors are different


BB)

  • Layer removed from sprites (makes no sense)
  • New interface IBackground implemented in TBackground
  • New TMemVar AsBool, AsInt, AsString, AsFloat
  • TSimpleSprite AddTrigger now has a closure version (very handy)
  • State machine now includes the current value as param in events so it can be modified


Sunday, October 18, 2015

The never ending story?

While waiting for graphics, code is improved and refactored...

Found binaries at OneDrive

BB)

  • Now triggers define width and height
  • sprite Z always is ANDed with object id
  • TRandom.AImLuckyF(), Delphi cannot distinguish between cardinal and single..., WTF?!
  • Fixed a bug in data length with joystick buttons

HBF)

  • TrySpawnXXX now uses non float random functions
  • Full day/night cycle
  • Improved spring behaviour
  • Gatashi handles better the collisions (avoids slowdown)
  • New enemy skeleton
  • Skeleton throws bones
  • New interface for global vars, so they can be accessed from trigger engine (files is game.vars)
  • Jump method now has a power parameter
  • New element Circles 
  • Hero cannot enter door while on an item
  • After game over camera X offset was not reset
  • New enemy block
  • Teleport code cleaned
  • HandleMovingPlatforms() refactored
  • Teleporting is now a sprite state
  • More accurate handling of platforms
  • Posts cannot duplicate text anymore
  • All actions can now be done with joystick
  • New TBug element and achievement
  • New fireworks element
  • Posts rolls when pressing up
  • When Gatahsi dies fireworks are fired
  • Spiders web are removed after 10 seconds
  • New enemy Ram (not finished)
  • Only 5 sounds of same type at the same time
  • Bird does not longer die with blood when path is finished
  • Achievement system refactored
  • THud refactored
  • Profile is saved to disk on demand not when class is destroyed


Saturday, July 4, 2015

ChessKISS 1.7c, finally!

After three years I found some motivation to recheck the sources and try to play a bit, the version and date is not a coincidence at all.

These are the main changes:
  • Optimized TPiece.SetTo() and TPiece.GetColorPiece()
  • TMove, removed GetIndex(), optimized SetTo()
  • TMoveGenerator.GenerateCastlingMoves() fixed
  • TEvaluation, fixed some issues with outpost and corners
  • TBoard.States optimized a bit, no need for Index
  • New overloaded TUtils.Switch()
  • New TScore.Null()
  • TPiece.SetIndex() improved
  • New TMove.SetFrom()/SetFromTo()
  • TBoard, backup()/restore() improved, new PieceValue()
  • TBoard.IsPinned() removed
  • Now uses polyglot book 
  • TChessboard.CanTraverse() uses faster approach to get the offset
  • TMoveGenerator.GeneratePawnCaptures() and MovesToSquare() improved a bit
  • TSearch.AlphaBeta() improved a bit
  • Improved a bit the performance in history 
  • Trying to speedup the moving generation with new silly ideas
  • Now killers are part of the stack in search 
  • History is updated when the cache is hit (makes sense)
  • New see() approach, let's see, also now return zero when move is castling 


Found binaries and sources at OneDrive

Tuesday, January 20, 2015

First entry of the year 2015!

Happy new to year to you stranger!

What's new?

HBF:

  • Arrows code finally refactored
  • New TEnemyKiller class, this is an enemy that can also kill other enemies, now many classes inherit from it
  • When hero is being teleported controls are blocked
  • All screens are fine now at any resolution (up to 1920x1080)
  • Hover will wear a xmas hat if it is cold :-)
  • Kurkani code simplified
  • Snow effect is no longer static but part of the scroll system
  • Chandelier line can be cutted by hero
  • New triggers MoveEntity() and MoveHero(), used in Last level for tricky paths
  • New enemy worm
  • Stones break into pieces when crashing
  • Bat can relax again (bug fixed)
  • Blob jumps with different forces
  • Fixed some minor issues in Bird and Droid 
  • Head becomes white when shooting
  • Mine now can move and interact with bound attributes (only if Gravity equal gNone)
  • Now when discovering a new platform, State is set to ssWalking in order to remove weird behaviors
  • New interface IFloater that helps elements that might float with water
  • New element post, that's basically a signal that can be read by hero
  • New sprite state ssReading used for reading signs and entering teleports
  • Graphics are no longer read from compiler file but from graphics.data
  • Screen code improved
  • Game services now includes information regarding highscores, levels and bigfile
  • Fixed nasty bug where parent sprite was dead and children didn't have to render since it was going go be freed and therefore the render buffer would have a reference to it, therefore  a nice access violation error (only with enemies containing children not attached to an engine, like Droid and its laser, difficult to reproduce since hero needs its shield in order to kill parent sprite)
  • Now OnOff blocks can also move to other Positions
  • Gatashi now moves with bezier curves
  • Day and night effect 


BB:

  • Turn out that random functions were too slow...
  • New property for triggers RemoveWhenTake, default is true
  • Bezier decimal type changed from TFloat to Double
  • Dead sprites are not longer rendered
  • Triggers now can define width and height
  • sprite Z now adds ObjectId and 63 in order to avoid flickering with other sprites in same Z

Day and night effect




Thursday, December 25, 2014

Last post of the year 2014

There are some chances of getting proper graphics, hooray!

Binary can be download at OneDrive as HBF_bin.zip

What's new?

BB)

  1. Finally fixed a bug with the seamless backgrounds with H/V speeds
  2. New methods TLayer.AddAnimation() / RemoveAnimationAt()
  3. Sprite animation flow moved to Tick()
  4. BB Rect calculated now on demand in sprites
  5. SetDefaultBB removed from sprites
  6. Some more functions inlined
  7. Default screen quicksort buffer sorting changed from 31 to 63 (in order to make it stable)
  8. Some warnings removed
  9. New TLayer.AsRect
  10. New TLayer GetAnimationInfo() and NewAnimation()
  11. New TLayer MoveCell() and MoveAnimation()
  12. New TSprite IsMoving()
  13. Collisions rotations matrix not calculated if no angle
  14. Bezier curves finally working properly
  15. New TWater class in sprites  (based on springs)
  16. Collision matrix now check boundaries properly
  17. When drawing surfaces, if not angle set then rotation matrix are not calculated
  18. Layer cells with no tile but attribute also dispatch event OnReadCell
  19. TRandom.NextFloat(max) improved
  20. SpriteEngine.Render method cleaned a bit more
  21. TLayer.Render refactored
  22. Some important fields in sprites are now stored in variables (like width, height, bpp and colorkey), to make faster access
  23. More fields moved to TDummySprite so they can be inlined
  24. New sprite property Active
  25. TObjectEx now implements IData


HBF)

  • New element Lamp that emits some light
  • Ball now has bouncing delays
  • UFo's laser now shrinks properly with colliding against solid stuff
  • Coins can now be also affected by gravity
  • New enemy mild
  • New enemy torno
  • Ray optimized a bit
  • TrapDoor code was a bit messy
  • New enemy Bouncer
  • Falling blocks are activated when hero is close
  • New TGameSprite.IsVisibleWithCam() in order to reduce the overhead in entities
  • Spotlight hitting code improved
  • Auxiliary sprites also get the Paused property from parent
  • Trapdoor also kills enemies
  • Arrows stuff moved to Tick()
  • Arrows code cleaned a bit
  • Spider net code improved
  • Water will try to fill gaps
  • Collision code improved
  • Crushing code refactored
  • Removed duplicated code for exploding bubbles
  • Fixed some collision priorities with tiles and items when gravity is up
  • Snow falls slower
  • Collision against moving platforms with reversed gravity will work much better
  • Collision against left and right slightly modified in order to be more accurate
  • Blob was falling when it should not
  • Book info instance reference was totally wrong
  • More cases for collision against tile/item
  • Bubbles when exploding become inactive (they are not gone since exploding takea a while)
  • Only active platforms are checked
  • Now HBF can also display yes/no dialogs
  • Hero now always faces none when jumping
  • Runes index was not set properly
  • New class TNeutral
  • New class TLight put it on top of tiles to make cool effects
  • Blob and Weird now are gray based and then randomly colorized
  • New element barrel, the only special thing is that inside water it floats...
  • ApplyEnvironment removed
  • Now fishes collapses if no water
  • TNeutral = TStatic
  • Pause code is more implicit (pause <> locked)
  • New demos
  • Grass only moves when hero is close
  • New enemy Head
  • Water flow refined
  • Water/Lava improved
  • Generic platform code refactored
  • Bird moves are now based on bezier curves
  • New enemy firebug
  • Enemy thing now more stable
  • Liquid stuff improved
  • New gamesprite helpers SameRow() and SameCol()
  • Bird now uses some TFuture<> for calculations
  • GearWheel now detects properly slopes
  • Slopes can be seen in debug mode
  • Water now uses spring system
  • Weird now keeps direction when current block disappears (so does no longer gets crazy)
  • Now lasers also stops with items (not only tiles)


New dynamic water:


Some new traps:


Slopes...


Saturday, October 18, 2014

Focusing on refactoring code and new backgrounds

As usual some bugs fixed here and there but focusing on creating better code, why?, because it will be the base for the next game.


HBF)

  • Screens code refactored
  • New method IDriving. JumpTogether()
  • Added some fading in menus
  • Better use of IBubble rather than TTBubbleSpawner
  • Trail now has a timeout of 10 seconds 
  • More animated tiles in backgtounds
  • Fade speed can be adjusted via game property
  • Normal and mechanic enemies can now be crushed by moving items
  • Some class cast changed to IGameSprite 
  • Weird uses different colors 
  • All pickups now execute their specific code
  • Some pickup specific code moved to its corresponding class
  • New IDoor and IProfile interfaces
  • All own counters removed and now using Ticks
  • Gatashi flapping sound stops after he dies
  • Many new background s
  • More stuff moved into Tick() rathern than Render()
  • Fight sets zoom to 100 by default
  • New LaserGrid element, beware
  • Stone does not rotate when on top of a carry item
  • Achievements update is not called every frame but on certain triggers
  • Fixed an issue where an achievement could also be valid for next level  
  • Some maps changes
  • New interface ISettings 
  • TSettings is no longer a singleton class
  • Shadows are cast only if there is a solid block behind
  • Background effects, autofit, seamless, etc can be configured from editor
  • New class TVehicle 
  • TCardRide now inherits from TVehicle 
  • Fixed a bug while walking on top a vehicle
  • New enemy UFO 
  • New enemy Thing 
  • New enemy Horus
  • Any entity can use vehicles not just hero
  • New property GameSprite.Child, TVehicle uses it in order to know who is using the vehicle
  • New animation when hero is landing 
  • Cardride now set its own state properly
  • New status ssLanding, hero uses it
  • Fixed a bug where unlocking coin achievement could be applied to next level


BB)

  • Manual timeout is not override with value equal one  if there is no configuration
  • New property in Sprite ShadowZoomDelta
  • TSprite.HandlerTriggers() is now executed on Tick()
  • New Ticks counter 
  • Tick() is no longer attached to sprite engine but to the own sprite render 
  • New interface IData is related to ITag in order to pass info to objects
  • New interface ISpriteEngine 
  • New property TGraphicDriver.BuffersUsed
  • Removed all *2 variables for keeping values and now all is done properly when paused via Tick()
  • Tick() now also handles sleep/timeout/speed aspects
  • Beam size of Laser can now be adjusted
  • TLevels has now some new handy methods like Previous, IsCompleted, First, Last and Next

New backgrounds)