{"id":13601350,"url":"https://github.com/felixangell/strife","last_synced_at":"2026-01-11T23:03:07.263Z","repository":{"id":57604954,"uuid":"75421470","full_name":"felixangell/strife","owner":"felixangell","description":"a simple 2d game framework","archived":false,"fork":false,"pushed_at":"2022-07-07T14:29:06.000Z","size":380,"stargazers_count":253,"open_issues_count":6,"forks_count":11,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-06-09T14:28:09.967Z","etag":null,"topics":["2d","game-framework","game-frameworks","game-library","go"],"latest_commit_sha":null,"homepage":"https://strife.felixangell.com","language":"Go","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/felixangell.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}},"created_at":"2016-12-02T18:40:35.000Z","updated_at":"2025-02-20T00:09:06.000Z","dependencies_parsed_at":"2022-09-26T20:01:17.132Z","dependency_job_id":null,"html_url":"https://github.com/felixangell/strife","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"purl":"pkg:github/felixangell/strife","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixangell%2Fstrife","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixangell%2Fstrife/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixangell%2Fstrife/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixangell%2Fstrife/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/felixangell","download_url":"https://codeload.github.com/felixangell/strife/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/felixangell%2Fstrife/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28326166,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-11T22:11:01.104Z","status":"ssl_error","status_checked_at":"2026-01-11T22:10:58.990Z","response_time":60,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["2d","game-framework","game-frameworks","game-library","go"],"created_at":"2024-08-01T18:01:01.080Z","updated_at":"2026-01-11T23:03:07.247Z","avatar_url":"https://github.com/felixangell.png","language":"Go","funding_links":[],"categories":["Go","Repositories"],"sub_categories":[],"readme":"# [strife](https://strife.felixangell.com) [![Build Status](https://travis-ci.org/felixangell/strife.svg?branch=master)](https://travis-ci.org/felixangell/strife)\nA simple game framework that wraps around SDL2.\n\n## example\nThe largest example use of the Strife framework is the [Phi text editor](//phi.felixangell.com), a text editor written entirely from scratch with syntax highlighting, a command palette, multiple buffer support, etc.\n\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://raw.githubusercontent.com/felixangell/phi/gh-pages/images/screenshot.png\"\u003e\u003c/p\u003e\n\nThough there are some smaller examples demonstrating components of the Strife API in the `examples/` folder.\n\n## note/disclaimer\nThis is a work in progress. It provides a very minimal toolset for rendering shapes, images, and text\nas well as capturing user input. This is not at a production level and is mostly being worked on when the\nneeds of my other projects (that depend on this) evolve.\n\nThere is no documentation either! If you want to use it you will have to check out the examples. I may\nget round to writing some documentation but the API is very volatile at the moment.\n\n## installing\nSimple as\n\n\t$ go get github.com/felixangell/strife\n\nMake sure you have SDL2 installed as well as the ttf and img addons:\n\n\t$ brew install SDL2 SDL2_ttf SDL2_image\n\n## getting started\nThis is a commented code snippet to help you get started:\n\n```go\nfunc main() {\n\t// create a nice shiny window\n\twindow := strife.SetupRenderWindow(1280, 720, strife.DefaultConfig())\n\twindow.SetTitle(\"Hello world!\")\n\twindow.SetResizable(true)\n\twindow.Create()\n\n\t// this is our event handler\n\twindow.HandleEvents(func(evt strife.StrifeEvent) {\n\t\tswitch event := evt.(type) {\n\t\tcase *strife.CloseEvent:\n\t\t\tprintln(\"closing window!\")\n\t\t\twindow.Close()\n\t\tcase *strife.WindowResizeEvent:\n\t\t\tprintln(\"resize to \", event.Width, \"x\", event.Height)\n\t\t}\n\t})\n\n\t// game loop\n\tfor {\n\t\t// handle the events before we do any\n\t\t// rendering etc.\n\t\twindow.PollEvents()\n\n\t\t// if we have a window close event\n\t\t// from the previous poll, break out of\n\t\t// our game loop\n\t\tif window.CloseRequested() {\n\t\t\tbreak\n\t\t}\n\n\t\t// rendering context stuff here\n\t\t// clear and display is typical\n\t\t// all your rendering code should\n\t\t// go...\n\t\tctx := window.GetRenderContext()\n\t\tctx.Clear()\n\t\t{\n\t\t\t// ...in this section here\n\t\t\tctx.SetColor(strife.Red)\n\t\t\tctx.Rect(10, 10, 50, 50, strife.Fill)\n\n\t\t\t// check out some other examples!\n\t\t}\n\t\tctx.Display()\n\t}\n}\n```\n\n## license\n[MIT](/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelixangell%2Fstrife","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffelixangell%2Fstrife","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffelixangell%2Fstrife/lists"}