game: small animation duration adjustments and adjust window color bits

This commit is contained in:
2024-01-23 22:13:55 +02:00
parent 8dde0c06b6
commit 43da578ff2
3 changed files with 10 additions and 2 deletions
+2 -2
View File
@@ -59,9 +59,9 @@ Game :: struct {
}
@private
TILE_ANIM_DURATION :: time.Millisecond * 300
TILE_ANIM_DURATION :: time.Millisecond * 250
@private
TILE_SPAWN_DURATION :: time.Millisecond * 300
TILE_SPAWN_DURATION :: time.Millisecond * 200
@private
GAMEOVER_ANIM_DURATION :: time.Millisecond * 300
+4
View File
@@ -6,6 +6,10 @@ Drawable :: x11.XID
RENDER_TYPE :: 0x8011
RGBA_BIT :: 0x00000001
RED_SIZE :: 8
GREEN_SIZE :: 9
BLUE_SIZE :: 10
ALPHA_SIZE :: 11
DEPTH_SIZE :: 12
DOUBLEBUFFER :: 5
SAMPLES :: 100001
+4
View File
@@ -884,6 +884,10 @@ x11_create_window :: proc(window_title: cstring, window_size: Vec2, icon_path: c
visual_attributes := []i32 {
glx.RENDER_TYPE, glx.RGBA_BIT,
glx.RED_SIZE, 8,
glx.GREEN_SIZE, 8,
glx.BLUE_SIZE, 8,
glx.ALPHA_SIZE, 8,
glx.DEPTH_SIZE, 24,
glx.DOUBLEBUFFER, 1,
glx.SAMPLES, 4, // MSAA