{"id":20367520,"url":"https://github.com/regb/sgl-starter-project","last_synced_at":"2026-04-22T03:33:33.159Z","repository":{"id":145158188,"uuid":"270434873","full_name":"regb/sgl-starter-project","owner":"regb","description":"A simple starter project to use SGL","archived":false,"fork":false,"pushed_at":"2020-06-14T19:54:21.000Z","size":8,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-09T15:22:03.018Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/regb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-06-07T21:16:11.000Z","updated_at":"2021-04-16T08:38:45.000Z","dependencies_parsed_at":"2023-07-08T05:15:23.187Z","dependency_job_id":null,"html_url":"https://github.com/regb/sgl-starter-project","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/regb/sgl-starter-project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regb%2Fsgl-starter-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regb%2Fsgl-starter-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regb%2Fsgl-starter-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regb%2Fsgl-starter-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/regb","download_url":"https://codeload.github.com/regb/sgl-starter-project/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/regb%2Fsgl-starter-project/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32119940,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-22T00:31:26.853Z","status":"online","status_checked_at":"2026-04-22T02:00:05.693Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T00:32:42.929Z","updated_at":"2026-04-22T03:33:33.140Z","avatar_url":"https://github.com/regb.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Starter Project for SGL\n\nThis is a sample project for getting started with [the Scala Game\nLibrary (SGL)](https://github.com/regb/scala-game-library), a cross-platform\ngame engine for the Scala programming language.\n\n## How to run\n\nTo use it, you will need SBT, git, a working Scala Native setup (install\nrequired software [from the official\ndocumentation](https://scala-native.readthedocs.io/en/v0.3.9-docs/user/setup.html#installing-clang-and-runtime-dependencies).\n\nThen you need to compile and publish SGL locally:\n\n    git clone git@github.com:regb/scala-game-library.git\n    cd scala-game-library\n    sbt publishLocal\n\nOnce SGL is published locally, you should be able to play with the starter project.\nGo to the root directory (of this repository, not the scala-game-library). And\nrun:\n\n    sbt desktop/run\n\nThis will start the sample app running on the JVM. You can run it natively with:\n\n    sbt native/run\n\nAnd you can compile it to Javascript and run it in the browser with:\n\n    sbt html5/fastOptJS\n\nAll you need to run it is a `\u003ccanvas id=\"scalavator_canvas\"\u003e` tag and a script\ntag loading the compiled game. Here's [an example](html5/index.html).\n\n## Where to go from there\n\nYou can read [the tutorial explaining the starter project\nstep-by-step](https://regblanc.com/blog/cross-platform-game-development-in-scala-natively/).\nIt provides insights on how SGL works and the follow-up articles\nshow how to use more advanced features of SGL.\n\nYou can play around with the game code in\n[ScalavatorGame.scala](core/src/main/scala/ScalavatorGame.scala) using the\nScalaDoc of SGL to figure out the API (it should have been published locally as\nwell). Just edit the code, and run `sbt desktop/run` to see the result.\n\nYou can take a look at the [Scalavator\ngame](https://github.com/regb/scalavator) which is one possible evolution from\nthis starter project into a complete game with graphics, that runs on multiple\nplatforms.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregb%2Fsgl-starter-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fregb%2Fsgl-starter-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fregb%2Fsgl-starter-project/lists"}