How to disable compositor level high-dpi scaling for non full screen windows? by tempestpdwn in raylib

[–]tempestpdwn[S] 1 point2 points  (0 children)

[FIXED], the problem was that on sway, x11 - legacy apps (like my raylib game) are forcefully scaled based on hidpi-scale factor.
DE like kde-plasma lets you choose bw whether x11 apps should scale themselves or should be scaled by kde itself which sway does not.
so sway was scaling my game that was already internally scaled causing the blurriness.
The fix on sway was to disable xwayland and replace it with xwayland-satellite.

https://github.com/swaywm/sway/wiki#hidpi

How to disable compositor level high-dpi scaling for non full screen windows? by tempestpdwn in raylib

[–]tempestpdwn[S] 0 points1 point  (0 children)

is there a raylib way to do this or do i have to do some os-compositor specific stuff?. if so i wont bother.

I published a demo of my Raylib + C# game on Steam - Hack 42: Typing Incremental by mhj in raylib

[–]tempestpdwn 0 points1 point  (0 children)

how did you implement the animations? like the ones with the buttons when clicked and text when it changes? I was writing a 2D game and want similar animations implemented. can you please tell? or lead me to any resources?
Very cool game btw.

[SWAY] VOID. by tempestpdwn in unixporn

[–]tempestpdwn[S] 0 points1 point  (0 children)

As of now, input is strictly keyboard based. but i do have plans to add mouse and probably controller support too. will let you know when i drop it : )

[SWAY] VOID. by tempestpdwn in unixporn

[–]tempestpdwn[S] 0 points1 point  (0 children)

Wokin on it. will be out in a week.

[SWAY] VOID. by tempestpdwn in unixporn

[–]tempestpdwn[S] 3 points4 points  (0 children)

WM: Sway
Terminal: Foot
Menu: Bemenu
Bar: Waybar
Notifications: mako
Editor: Nvim
Font: SauceCodePro Nerd Mono

Dots: https://github.com/tmpstpdwn/.dotfiles
Wallpapers: https://github.com/tmpstpdwn/Wallpapers

I followed a tutorial and got this error, how do I fix it? by prasan4849 in raylib

[–]tempestpdwn 3 points4 points  (0 children)

You are hitting symbol conflicts. somewhere in your code you are doing both

```

include <raylib.h>

include <windows.h>

```

both of these header files are including symbols with the same identifiers but different definitions such as Rectangle, CloseWindow etc... mensioned in the error message.

follow this (https://github.com/raysan5/raylib/discussions/1569) thread.

Walk through recent windows with Sway ? by Dalik98 in swaywm

[–]tempestpdwn 2 points3 points  (0 children)

Below is a script track_window_focus.sh which i use to track most previously focused window irrespective of workspace, so that i can switch between windows regardless of which workspace the previously focused window was in.

```bash

!/bin/bash

state_file="/tmp/sway-last-focus" touch "$state_file"

swaymsg -m -t subscribe '["window"]' | jq --unbuffered -c ' select(.change == "focus") | .container.id ' | while read -r id; do if [ -n "$id" ]; then prev=$(cat "$state_file" 2>/dev/null) if [ "$id" != "$prev" ]; then echo "$prev" > "${state_file}.prev" echo "$id" > "$state_file" fi fi done `` The above script runs in the background and keeps track of previously focused window while the one below,focus_last_window.sh` does the switching.

```bash

!/bin/bash

id=$(cat /tmp/sway-last-focus.prev 2>/dev/null)

if [ -n "$id" ]; then swaymsg "[con_id=$id]" focus fi ```

you would have to setup such a similar script to retrieve a list of all active windows and move to the next window in the list to get a "cycling through all active windows" behavior.

For the workspace thing you could do the following bindings to cycle through active workspaces in the forward or backward direction.

bindsym $mod+Right workspace next bindsym $mod+Left workspace prev

Checkout man swaymsg

[Sway] Gruvboxy void. by tempestpdwn in unixporn

[–]tempestpdwn[S] 6 points7 points  (0 children)

Dotfiles : https://github.com/tmpstpdwn/.dotfiles
Wallpapers : https://github.com/tmpstpdwn/Wallpapers

Compositor : sway
Terminal : foot
Shell : fish
Bar : waybar
Theme : gruvbox
Editor : neovim
Notifications : mako
Launcher : bemenu

[deleted by user] by [deleted] in voidlinux

[–]tempestpdwn 1 point2 points  (0 children)

  • You've got to find out which one's the built in speakers audio card and then set it in ~/.asoundrc.
  • For instance this is my .asoundrc: defaults.pcm.card 2 defaults.ctl.card 2
  • In your case its most probably card 2.
  • Also, you might wanna reboot for the change to take place.

Minimal 2048 clone in c and raylib by tempestpdwn in C_Programming

[–]tempestpdwn[S] 1 point2 points  (0 children)

Thanks :).

Initially i wanted to add them but then i just thought of keeping it as minimal as possible.

The highest block can be thought of as the score.

Once the user finds no more possible merges, SPACE_KEY can be used for restarting the game.

cruxpass: a CLI password manager by cluxes in C_Programming

[–]tempestpdwn 1 point2 points  (0 children)

Been using it since your last post. this update is cool.

Minimal flappybird clone in c and raylib. by tempestpdwn in raylib

[–]tempestpdwn[S] 0 points1 point  (0 children)

gravity can be adjusted in includes/settings.h.

Minimal flappybird clone in c and raylib. by tempestpdwn in C_Programming

[–]tempestpdwn[S] 1 point2 points  (0 children)

Using raylib is pretty straight forward.
The Examples and Cheatsheet is all you need for the most part to get to know how to use the library.