{"id":17590775,"url":"https://github.com/setanarut/kamera","last_synced_at":"2026-02-15T04:01:55.918Z","repository":{"id":214209050,"uuid":"735965012","full_name":"setanarut/kamera","owner":"setanarut","description":"Camera package for Ebitengine v2","archived":false,"fork":false,"pushed_at":"2025-12-31T20:02:18.000Z","size":174,"stargazers_count":33,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-05T06:32:38.824Z","etag":null,"topics":["2d-camera","camera-shake","ebiten","ebiten-game-library","ebitengine","go","go-game-engine","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/setanarut.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-12-26T15:38:07.000Z","updated_at":"2025-12-31T19:53:43.000Z","dependencies_parsed_at":"2024-06-19T11:17:19.465Z","dependency_job_id":"6c0ffa1c-df67-4392-9d66-7a3a617c13e2","html_url":"https://github.com/setanarut/kamera","commit_stats":{"total_commits":26,"total_committers":4,"mean_commits":6.5,"dds":"0.46153846153846156","last_synced_commit":"a63741996e401ccbb03e9901960b163cb71ac9fc"},"previous_names":["setanarut/kamera"],"tags_count":34,"template":false,"template_full_name":null,"purl":"pkg:github/setanarut/kamera","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setanarut%2Fkamera","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setanarut%2Fkamera/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setanarut%2Fkamera/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setanarut%2Fkamera/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/setanarut","download_url":"https://codeload.github.com/setanarut/kamera/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/setanarut%2Fkamera/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29468393,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-15T01:01:38.065Z","status":"online","status_checked_at":"2026-02-15T02:00:07.449Z","response_time":118,"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":["2d-camera","camera-shake","ebiten","ebiten-game-library","ebitengine","go","go-game-engine","golang"],"created_at":"2024-10-22T04:24:37.329Z","updated_at":"2026-02-15T04:01:55.912Z","avatar_url":"https://github.com/setanarut.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![GoDoc](https://godoc.org/github.com/setanarut/kamera?status.svg)](https://pkg.go.dev/github.com/setanarut/kamera/v2)\n\n# Kamera\n\nCamera package for Ebitengine.\n\n```Go\nimport \"github.com/setanarut/kamera/v2\"\n```\n\nhttps://github.com/user-attachments/assets/58787fbe-5788-43d4-9560-482dcc965efb\n\n\n## Features\n\n- Camera shake effect with [fastnoise](https://github.com/setanarut/fastnoise) library noise types.\n- Smooth camera movement with three interpolation modes:\n  - `None`: Direct camera movement without smoothing\n  - `Lerp`: Linear interpolation for smooth transitions\n  - `SmoothDamp`: Spring-like motion with acceleration and deceleration and maximum speed.\n- Rotate/Zoom\n\n## Usage\n\nA pseudo code:\n\n```Go\nfunc (g *Game) Update() error {\n  MainCamera.LookAt(playerCenter.X, playerCenter.Y)\n  return nil\n }\n\nfunc (g *Game) Draw(screen *ebiten.Image) {\n  playerDrawImageOptions.GeoM.Reset() // GeoM must be reset\n  playerDrawImageOptions.GeoM.Translate(target.X, target.Y) // Move player\n  MainCamera.Draw(playerImage, playerDrawImageOptions, screen)\n }\n```\n\n## Examples\n\n1. Clone this repository\n2. In the terminal, change directory to the examples folder `cd examples`\n3. Run a demo with `go run ./folder_name` (`go run ./platformer`, `go run ./director`).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsetanarut%2Fkamera","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsetanarut%2Fkamera","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsetanarut%2Fkamera/lists"}