{"id":13529595,"url":"https://github.com/squircledev/phgen","last_synced_at":"2025-04-01T16:31:41.856Z","repository":{"id":215196004,"uuid":"338226126","full_name":"squircledev/phgen","owner":"squircledev","description":"a placeholder asset generation script for Game Maker Studio 2.3+","archived":false,"fork":false,"pushed_at":"2021-11-16T00:23:03.000Z","size":22,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-02T16:35:03.582Z","etag":null,"topics":["gamedev","gamemaker","gamemaker-studio-2","gms2"],"latest_commit_sha":null,"homepage":"","language":"Game Maker Language","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/squircledev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2021-02-12T04:45:36.000Z","updated_at":"2023-01-16T03:14:43.000Z","dependencies_parsed_at":null,"dependency_job_id":"34072a12-03c2-4144-ae6e-1c630add5b37","html_url":"https://github.com/squircledev/phgen","commit_stats":null,"previous_names":["squircledev/phgen"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squircledev%2Fphgen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squircledev%2Fphgen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squircledev%2Fphgen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/squircledev%2Fphgen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/squircledev","download_url":"https://codeload.github.com/squircledev/phgen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246670549,"owners_count":20815003,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["gamedev","gamemaker","gamemaker-studio-2","gms2"],"created_at":"2024-08-01T07:00:37.726Z","updated_at":"2025-04-01T16:31:41.551Z","avatar_url":"https://github.com/squircledev.png","language":"Game Maker Language","readme":"# phgen\na placeholder asset generation script for Game Maker Studio 2.3+\n\n![placeholder examples](https://i.imgur.com/KDXZ3u2.png)\n\n# Description\n\nThis script will generate cached sprites and strings for you. As long as you use the same settings, they will stay the same and won't come at a large performance cost. Due to how sprite_create_from_surface works, there will still be a performance hit, but since this is for prototyping, that isn't be much of an issue.\n\n# Usage\n\n## Sprites\n\nphgen_rectangle (and the other sprite generators) generate a sprite_index.\n\n``draw_sprite(phgen_rectangle(), 0, 0, 0);``\n\nThe above code will draw a default rectangle sprite it generates, and then on all subsequent calls with the same settings, uses a cached sprite.\n\n## Strings\n\nphgen_word and phgen_sentence generate cached strings for you. \n\n``draw_text(0, 0, phgen_sentence());``\n\nAs long as you use the same settings, the sentence will stay the same. If you want the sentence to change, do this:\n\n``phgen_cache_remove_string(phgen_sentence());``\n\nThis will clear the cache of that string and generate a new one next time you call the string generator function with the same settings.\n","funding_links":[],"categories":["Sprites"],"sub_categories":["Recommendations"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquircledev%2Fphgen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsquircledev%2Fphgen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsquircledev%2Fphgen/lists"}