<feed xmlns='http://www.w3.org/2005/Atom'>
<title>xavi/rts/src/player, branch master</title>
<subtitle>Minimalistic real-time strategy video game.
</subtitle>
<id>https://gitea.privatedns.org/xavi/rts/atom?h=master</id>
<link rel='self' href='https://gitea.privatedns.org/xavi/rts/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/rts/'/>
<updated>2022-09-20T14:56:30+00:00</updated>
<entry>
<title>Remap calls to pad/mouse/keyboard to input</title>
<updated>2022-09-20T14:56:30+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2022-09-20T11:43:18+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/rts/commit/?id=4c5630b0d409419d6de905379a06893eac64996b'/>
<id>urn:sha1:4c5630b0d409419d6de905379a06893eac64996b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>human_player_gui.c: use gui_container for top gui_bar</title>
<updated>2022-07-02T02:47:50+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2022-07-02T02:47:50+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/rts/commit/?id=7bc58ab0e6e9349fe3e4d121f772bd74d5a814dc'/>
<id>urn:sha1:7bc58ab0e6e9349fe3e4d121f772bd74d5a814dc</id>
<content type='text'>
</content>
</entry>
<entry>
<title>human_player_gui.c: fix segfault when selecting one unit</title>
<updated>2022-06-27T19:43:32+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2022-06-27T19:43:29+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/rts/commit/?id=a746ecd0b6422ef5454ceba801fae1f73bdf0203'/>
<id>urn:sha1:a746ecd0b6422ef5454ceba801fae1f73bdf0203</id>
<content type='text'>
Checking against `sel` is just plain wrong, since it always expected to
be non-NULL, since `h-&gt;sel` is an array defined in `struct
human_player`. Instead, `sel-&gt;d.i` is the pointer that should be
checked.
</content>
</entry>
<entry>
<title>human_player: deprecate memset(3) for zero-init</title>
<updated>2022-06-26T21:42:48+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2022-06-26T21:41:15+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/rts/commit/?id=e869bfd0f66a6107c764d9bd27b14e129e4b404f'/>
<id>urn:sha1:e869bfd0f66a6107c764d9bd27b14e129e4b404f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>human_player.c: reset deselected instances</title>
<updated>2022-06-26T21:42:48+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2022-06-26T21:40:35+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/rts/commit/?id=4305732e0a09a9e8ae8da6c076c4f65fa0c9c280'/>
<id>urn:sha1:4305732e0a09a9e8ae8da6c076c4f65fa0c9c280</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fix hp bar not being displayed when carrying</title>
<updated>2022-06-26T21:42:34+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2022-06-26T21:39:46+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/rts/commit/?id=7196c6a0cc89ea3683e67ee34b90dbadb69aebfe'/>
<id>urn:sha1:7196c6a0cc89ea3683e67ee34b90dbadb69aebfe</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Revamp gui component</title>
<updated>2022-06-26T18:00:27+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2022-06-24T14:55:18+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/rts/commit/?id=7c75118429596dcfd86dbefb32e9ae79585c4da0'/>
<id>urn:sha1:7c75118429596dcfd86dbefb32e9ae79585c4da0</id>
<content type='text'>
`gui` was tighly coupled to game logic, and could not be extended for
other purposes. Therefore, a generic GUI implementation, loosely
inspired by well-known GUI frameworks such as GTK, is now provided, with
the following properties:

- Does not depend on dynamic or static memory allocation, only automatic
(i.e., stack) memory allocation required.
- Portable among existing implementations.
- Simple to extend.
- Tiny memory footprint.

`gui` is now composed by GUI elements that can be chained to form a tree
structure. This is useful e.g.: to calculate X/Y coordinates for a given
GUI element given its parent(s).

This commit also refactors the older implementation, moving
game-specific logic into `player` and making use of the new component.
</content>
</entry>
<entry>
<title>Deprecate memset(3) over C99 compound literals for zero-init</title>
<updated>2022-06-26T18:00:27+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2022-06-26T17:50:32+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/rts/commit/?id=f938bb790eea27a4ae9db6fe0f6f0300a1e1ae86'/>
<id>urn:sha1:f938bb790eea27a4ae9db6fe0f6f0300a1e1ae86</id>
<content type='text'>
Using memset(3) does not ensure pointers are assigned to NULL for all
platforms.
</content>
</entry>
<entry>
<title>player: limit data sizes for resources and population</title>
<updated>2022-06-26T17:58:46+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2022-06-26T17:58:46+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/rts/commit/?id=eee1205446e3b1832b256dfebac66f0a0f42e528'/>
<id>urn:sha1:eee1205446e3b1832b256dfebac66f0a0f42e528</id>
<content type='text'>
- All platforms should allow for the same resources.
- Population is not expected to exceed UCHAR_MAX on any platform.
</content>
</entry>
<entry>
<title>peripheral: provide common actions</title>
<updated>2022-06-24T15:28:38+00:00</updated>
<author>
<name>Xavier Del Campo Romero</name>
<email>xavi.dcr@tutanota.com</email>
</author>
<published>2022-06-24T15:28:38+00:00</published>
<link rel='alternate' type='text/html' href='https://gitea.privatedns.org/xavi/rts/commit/?id=992e7fb9358a0d0a5d99ba119cf584477bda8d72'/>
<id>urn:sha1:992e7fb9358a0d0a5d99ba119cf584477bda8d72</id>
<content type='text'>
Whereas some actions are context-specific (e.g.: selecting a player),
some are context-independent and can be executed for all screens
(e.g.: exiting the game).
</content>
</entry>
</feed>
