{"id":29292249,"url":"https://github.com/chefwist/tcreate","last_synced_at":"2025-08-20T15:35:28.317Z","repository":{"id":301945978,"uuid":"1010740043","full_name":"ChefWist/TCreate","owner":"ChefWist","description":"TCreate - Java Game Libary (V0.3)","archived":false,"fork":false,"pushed_at":"2025-07-06T09:27:42.000Z","size":36,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-06T19:53:03.782Z","etag":null,"topics":["documentation","easy","fun","games","indie","java","libary","tcreate","tool","tools"],"latest_commit_sha":null,"homepage":"","language":"Java","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/ChefWist.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,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-06-29T17:49:55.000Z","updated_at":"2025-07-06T09:30:31.000Z","dependencies_parsed_at":"2025-06-29T19:19:03.914Z","dependency_job_id":"87817b90-2b47-49e7-ac49-b27c7e6250ce","html_url":"https://github.com/ChefWist/TCreate","commit_stats":null,"previous_names":["chefwist/tcreate"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ChefWist/TCreate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChefWist%2FTCreate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChefWist%2FTCreate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChefWist%2FTCreate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChefWist%2FTCreate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ChefWist","download_url":"https://codeload.github.com/ChefWist/TCreate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ChefWist%2FTCreate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266954698,"owners_count":24011847,"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","status":"online","status_checked_at":"2025-07-25T02:00:09.625Z","response_time":70,"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":["documentation","easy","fun","games","indie","java","libary","tcreate","tool","tools"],"created_at":"2025-07-06T09:32:40.306Z","updated_at":"2025-07-25T04:33:40.610Z","avatar_url":"https://github.com/ChefWist.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TCreate - Java Game Libary (V0.45)\n\n\u003ch2\u003eIntroduction\u003c/h2\u003e\nI have made this game libary that you can use to easily make games with java swing. You can view TCreate info by using: TCreate.displayInfomation();\n\n\u003ch2\u003eFeatures\u003c/h2\u003e\n\u003cul\u003e\n  \u003cli\u003eGame Loop, \u003c/li\u003e\n  \u003cli\u003eScenes, \u003c/li\u003e\n  \u003cli\u003eDiifferent Sprites, \u003c/li\u003e\n  \u003cli\u003eSmooth Camera, \u003c/li\u003e\n  \u003cli\u003eUser Interface (UI), \u003c/li\u003e\n  \u003cli\u003eDragging, \u003c/li\u003e\n  \u003cli\u003eScaling, \u003c/li\u003e\n  \u003cli\u003eEasy-to-use AssetManager with images \u0026 sounds, \u003c/li\u003e\n  \u003cli\u003eExamples, and\u003c/li\u003e\n  \u003cli\u003eAction Listeners! \u003c/li\u003e\n\u003c/ul\u003e\n\n\u003ch2\u003eExamples\u003c/h2\u003e\nThere are examples to help you learn this libary:\n\u003cul\u003e\n  \u003cli\u003eMoving with WASD (movement),\u003c/li\u003e\n  \u003cli\u003eBasic use of UI elements (homeScreen), and\u003c/li\u003e\n  \u003cli\u003eBasic use of hovering and dragging (hoverDragging)\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003ch2\u003eHow to use\u003c/h2\u003e\nTo use this, download the folder tCreate. Then drag it into your src folder (where you keep all your files). \n\n\u003ch4\u003eImports\u003c/h4\u003e\n\n\u003cul\u003e\n  \u003cli\u003etCreate.*\u003c/li\u003e\n  \u003cli\u003etCreate.assetManager.*\u003c/li\u003e\n  \u003cli\u003etCreate.scene.*\u003c/li\u003e\n  \u003cli\u003etCreate.sprite.*\u003c/li\u003e\n  \u003cli\u003etCreate.ui.*\u003c/li\u003e\n  \u003cli\u003etCreate.examples.(example).*\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003ch4\u003eUsing examples\u003c/h4\u003e\n\nTo use an example such as movement, put this import at the top of your page:\n\u003ci\u003eimport tCreate.examples.movement.*;\u003c/i\u003e\n\nIn your main method put this line of code:\n\u003ci\u003eMovementDemo.launch();\u003c/i\u003e\n\n\u003ch2\u003eDocumentation\u003c/h2\u003e\n\n\u003ch3\u003e\u003cu\u003eOther\u003c/u\u003e\u003c/h3\u003e\n\n\u003ch4\u003e\u003ci\u003eTCreate.displayInfomation()\u003c/i\u003e\u003c/h4\u003e\nDisplays current version and creator in the console\n\n\u003ch4\u003e\u003ci\u003eScreenPanel\u003c/i\u003e\u003c/h4\u003e\nExtends \u003ci\u003eJPanel\u003c/i\u003e and holds all the code for the gameLoop and drawing and updating all elements in the scene.\n\n\u003ch4\u003e\u003ci\u003eScreenObject\u003c/i\u003e\u003c/h4\u003e\nThis is a class which you extend to have an x, y variable and a few function: \u003ci\u003eupdate()\u003c/i\u003e, \u003ci\u003edraw(Graphics2D graphics)\u003c/i\u003e, \u003ci\u003egetWorldX()\u003c/i\u003e and \u003ci\u003egetWorldY()\u003c/i\u003e. By using the code, \u003ci\u003eScreenObject.setUp()\u003c/i\u003e, you can pass in a screenObject, x, y position into the brackets. There is also a\u003ci\u003eDouble scale\u003c/i\u003e variable which you can update and then use with some functions which gives you the scaled variable. A \u003ci\u003eBufferedImage image\u003c/i\u003e variable is also created with a function \u003ci\u003eimageRender(Graphics2D g)\u003c/i\u003e to use images.\n\n\u003ch3\u003e\u003cu\u003eTCreate\u003c/u\u003e\u003c/h3\u003e\n\n\u003ch4\u003e\u003ci\u003enew TCreate(title, width, height)\u003c/i\u003e\u003c/h4\u003e\nInside the brackets, put the title of the game and then add two whole numbers for the size. This will create a \u003ci\u003eJFrame\u003c/i\u003e with the title and size you picked for it. \n\n\u003ch4\u003e\u003ci\u003eTCreate.startGame()\u003c/i\u003e\u003c/h4\u003e\nStarts the game loop\n\n\u003ch4\u003e\u003ci\u003eTCreate.changeSceneTo(scene)\u003c/i\u003e\u003c/h4\u003e\nChanges the current scene to the one you have created yourself. To learn more about scenes, go to the section called \u003ci\u003eScenes\u003c/i\u003e.\n\n\u003ch4\u003e\u003ci\u003eTCreate.getCurrentGame()\u003c/i\u003e\u003c/h4\u003e\nReturns with the game which \u003ci\u003eextends JPanel\u003c/i\u003e. Learn more about this in the section called \u003ci\u003eScreenPanel\u003c/i\u003e in the \u003ci\u003eOther\u003c/i\u003e section.\n\n\u003ch4\u003e\u003ci\u003eTCreate.getCurrentScene()\u003c/i\u003e\u003c/h4\u003e\nReturns with the current scene. To learn more about scenes, go to the section called \u003ci\u003eScenes\u003c/i\u003e.\n\n\u003ch3\u003e\u003cu\u003eCamera\u003c/u\u003e\u003c/h3\u003e\n\n\u003ch4\u003e\u003ci\u003eCamera.smoothed\u003c/i\u003e\u003c/h4\u003e\nTrue or False variable which decides if the camera should be smooth when moving.\n\n\u003ch4\u003e\u003ci\u003eCamera.smoothing_speed\u003c/i\u003e\u003c/h4\u003e\nWhole number which decides how fast the camera smoothing should be. 1 - INSTANT.\n\n\u003ch4\u003e\u003ci\u003eCamera.positionTo(x, y)\u003c/i\u003e\u003c/h4\u003e\n2 Whole numbers which snaps the camera to a positon.\n\n\u003ch4\u003e\u003ci\u003eCamera.moveTo(x, y)\u003c/i\u003e\u003c/h4\u003e\n2 Whole numbers which uses smoothing to guide the camera to the position you entered in.\n\n\u003ch4\u003e\u003ci\u003eCamera.getX()\u003c/i\u003e or \u003ci\u003eCamera.getY()\u003c/i\u003e\u003c/h4\u003e\nGets current x or y position of the camera.\n\n\u003ch4\u003e\u003ci\u003eCamera.getWorldX(x)\u003c/i\u003e or \u003ci\u003eCamera.getWorldY(y)\u003c/i\u003e\u003c/h4\u003e\nReturns a number which tells you where an element should be placed on the screen as the camera moves;\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchefwist%2Ftcreate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchefwist%2Ftcreate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchefwist%2Ftcreate/lists"}