Skip to content

does not launch game window #57

@Marie-Joseph

Description

@Marie-Joseph

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions