games/invaders: review graphical assets in code (fix #236) #394

Merged
Burer merged 4 commits from nitinsoni4115/kolibrios:fix-invaders-bullet-asset into main 2026-05-16 08:37:38 +00:00
Contributor
  • Remove the unused gif_bullet2 file definition
  • Remove the unused gif_bullet2 decodeimg call
  • Remove the unused img_bullet2 memory allocation
  • Fix gif_menu4.size to use gif_menu4
  • Comment out the unused img_alienpiece allocation
  • Preserve img_bullet from bullet2.gif for bullet rendering
- Remove the unused `gif_bullet2` file definition - Remove the unused `gif_bullet2` `decodeimg` call - Remove the unused `img_bullet2` memory allocation - Fix `gif_menu4.size` to use `gif_menu4` - Comment out the unused `img_alienpiece` allocation - Preserve `img_bullet` from `bullet2.gif` for bullet rendering
nitinsoni4115 added 1 commit 2026-03-29 17:27:23 +00:00
Fix #236: Remove unused bullet asset from invaders game
Build system / Check kernel codestyle (pull_request) Has been cancelled
Build system / Build (pull_request) Has been cancelled
ad68015044
Issue: Both gif_bullet and gif_bullet2 referenced the same file (bullet2.gif),
and img_bullet2 was never actually used in the game logic, leading to:
- Redundant asset decoding on startup
- Wasted memory allocation (BULLET_X*BULLET_Y*3+8 bytes)
- Unused bullet.gif file in the repository

Solution: Remove the unused img_bullet2 variable and all related code:
- Remove gif_bullet2 file definition
- Remove gif_bullet2 decodeimg call
- Remove img_bullet2 memory allocation

The game continues to use img_bullet (from bullet2.gif) for all bullet rendering.
nitinsoni4115 added 1 commit 2026-03-29 17:27:32 +00:00
Merge branch 'main' into fix-invaders-bullet-asset
Build system / Check kernel codestyle (pull_request) Has been cancelled
Build system / Build (pull_request) Has been cancelled
b998b3fb89
nitinsoni4115 added 1 commit 2026-04-25 14:38:53 +00:00
Merge branch 'main' into fix-invaders-bullet-asset
Build system / Check kernel codestyle (pull_request) Successful in 24s
Build system / Build (pull_request) Successful in 13m28s
18149971cc
Burer added 1 commit 2026-04-26 05:23:03 +00:00
games/invaders: review graphics assets in code
Build system / Check kernel codestyle (pull_request) Successful in 50s
Build system / Build (pull_request) Successful in 10m7s
ec92b1a5d7
Burer changed title from Fix #236: Remove unused bullet asset from invaders game to games/invaders: review graphical assets in code (fix #236) 2026-04-26 05:25:08 +00:00
Burer approved these changes 2026-04-26 05:46:12 +00:00
Member

Just for reference, this bullet was originally intended to be shot from the enemy to the player, but the associated game logic was never implemented

Just for reference, this bullet was originally intended to be shot from the enemy to the player, but the associated game logic was never implemented
Burer merged commit fac0425ac0 into main 2026-05-16 08:37:38 +00:00
Burer deleted branch fix-invaders-bullet-asset 2026-05-16 08:37:39 +00:00
Sign in to join this conversation.
No Reviewers
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: KolibriOS/kolibrios#394