does not launch game window
When running the examples as described in the documentation, "basic.jl" throws the following error:
ERROR: MethodError: Cannot `convert` an object of type
String to an object of type
ARGB
Closest candidates are:
convert(::Type{C}, ::Color, ::Any) where C<:TransparentColor at /home/jts/.julia/packages/ColorTypes/7OlxI/src/conversions.jl:78
convert(::Type{C}, ::C) where C<:Colorant at /home/jts/.julia/packages/ColorTypes/7OlxI/src/conversions.jl:72
convert(::Type{C}, ::Colorant) where C<:Colorant at /home/jts/.julia/packages/ColorTypes/7OlxI/src/conversions.jl:73
...
Stacktrace:
[1] ARGB(x::String)
@ ColorTypes ~/.julia/packages/ColorTypes/7OlxI/src/types.jl:528
[2] GameZero.Screen(name::String, w::Int64, h::Int64, color::String)
@ GameZero ~/.julia/packages/GameZero/e03cc/src/screen.jl:11
[3] initscreen(gm::Module, name::String)
@ GameZero ~/.julia/packages/GameZero/e03cc/src/GameZero.jl:64
[4] initgame(jlf::String, external::Bool)
@ GameZero ~/.julia/packages/GameZero/e03cc/src/GameZero.jl:246
[5] rungame(jlf::String, external::Bool)
@ GameZero ~/.julia/packages/GameZero/e03cc/src/GameZero.jl:195
[6] rungame(jlf::String)
@ GameZero ~/.julia/packages/GameZero/e03cc/src/GameZero.jl:194
[7] top-level scope
@ REPL[2]:1
"basic2.jl" warns about being unable to find ALSA libraries but otherwise simply does not launch a game window:
┌ Warning: No audio device available, sounds and music will not play.
│ ALSA: Couldn't open audio device: Aucun fichier ou dossier de ce type
└ @ GameZero ~/.julia/packages/GameZero/e03cc/src/GameZero.jl:303
versioninfo():
Julia Version 1.6.3
Commit ae8452a9e0 (2021-09-23 17:34 UTC)
Platform Info:
OS: Linux (x86_64-unknown-linux-gnu)
CPU: AMD Ryzen 5 5600X 6-Core Processor
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-11.0.0 (ORCJIT, generic)
Environment:
JULIA_LOAD_PATH = :
JULIA_DEPOT_PATH = :/home/jts/.guix-profiles/julia/share/julia/:/home/jts/.guix-profiles/julia/share/julia/
GameZero: 0.2.1
This same bug was brought up in #42, a workaround was discussed there that should help you
Sorry I just saw this - pointing an environment variable at the alsa conf file, as is suggested in the issue linked in the issue you linked, just gets me what sounds like bugged audio, but still no game window, for basic.jl
for basic2.jl, I just get ALSA lib control.c:1481:(snd_ctl_open_noupdate) Invalid CTL hw:0
It shows up in the tracebacks but I should probably explicitly mention: I'm on Guix GNU/Linux