From 6bd2dbf11f908abb225fb160c568462e95da2da7 Mon Sep 17 00:00:00 2001 From: Vito Caputo Date: Thu, 10 Nov 2022 09:59:51 -0800 Subject: bonus-node: add bonus node for bonus quantities This shows a numeric display with an API for tracking a position until released. Once released the node self-animates and frees itself from its own rendering function. Post-release the node stops accessing the tracking position, intended for allowing the associated entity to become reused or discarded immediately upon release. For this to work smoothly the release must be accompanied by a storing of the last position within the bonus node via the provided pointer, which the bonus node's render function then uses as the origin of its self-animating before destruction. See comment at start of bonus-node.c for more information/issues. This only adds the node without integrating into the game, a subsequent commit will integrate into game.c. Initial impetus for adding this is making teepee quantities visible. --- src/Makefile.am | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index 5f55d86..32bfdb0 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -12,6 +12,8 @@ sars_SOURCES = \ baby-node.h \ bb2f.h \ bb3f.h \ + bonus-node.c \ + bonus-node.h \ clear-node.c \ clear-node.h \ cp437.h \ -- cgit v1.2.3