{"id":15609143,"url":"https://github.com/reggino/jsc64","last_synced_at":"2025-05-08T21:21:09.136Z","repository":{"id":48130618,"uuid":"453789","full_name":"Reggino/jsc64","owner":"Reggino","description":"The  JavaScript Commodore 64 emulator","archived":false,"fork":false,"pushed_at":"2022-10-16T10:04:25.000Z","size":192,"stargazers_count":177,"open_issues_count":3,"forks_count":43,"subscribers_count":14,"default_branch":"master","last_synced_at":"2025-03-31T18:21:18.682Z","etag":null,"topics":["hacktoberfest"],"latest_commit_sha":null,"homepage":"https://reggino.github.io/jsc64/","language":"JavaScript","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/Reggino.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}},"created_at":"2009-12-30T20:47:04.000Z","updated_at":"2024-12-21T00:17:31.000Z","dependencies_parsed_at":"2023-01-20T03:47:53.804Z","dependency_job_id":null,"html_url":"https://github.com/Reggino/jsc64","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reggino%2Fjsc64","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reggino%2Fjsc64/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reggino%2Fjsc64/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Reggino%2Fjsc64/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Reggino","download_url":"https://codeload.github.com/Reggino/jsc64/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253150075,"owners_count":21861829,"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":["hacktoberfest"],"created_at":"2024-10-03T05:41:27.939Z","updated_at":"2025-05-08T21:21:09.086Z","avatar_url":"https://github.com/Reggino.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"jsc64\n=====\n\njsc64 is a Commodore 64 emulator written in JavaScript by Tim de Koning. It's a port of the FC64, the Commodore 64 emulator written in Actionscript by Darron Schall and Claus Wahlers. More information about the Actionscript version can be found here.\n\nThis emulator is meant as a 'proof of concept' and uses the HTML5 Canvas-element to render the Commodore 64 screen layout. This means it will work on all modern browsers, being the lastest version of Firefox, Google Chrome and Safari. Rendering on Internet Explorer should be possible with some minor fixes in the 'Renderer class', but I'm afraid performance will be appalling.\n\nThe canvas rendering nor the javascript engine isn't as efficient as the Flashplayer so please be patient ;-) or bring a big computer. Like the fc64-version, joystick controls are mapped to the numpad of your keyboard. The space bar can be used as the fire button. Comments are appreciated, please contact me via Twitter.\n\nHow do i use this?\n------------------\n\nDownload the package from github and upload it into a folder on your web server\nInclude jQuery 1.12.4+, the classes (still need a nice auto-loading mechanism...) and the plug-in in your source like\n\u003cscript type=\"text/javascript\" src=\"js/jquery/jquery-1.12.4.min.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"js/jquery.jsc64classes.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\" src=\"js/jquery.jsc64.js\"\u003e\u003c/script\u003e\n            \nFix the configuration set up in jquery.jsc64classes.js. Make sure JSC64_BASEPATH is set to folder on your web server containing the plug-in files.\nUse Jquery to target something as your c64 container, like\n```\n\u003cscript type=\"text/javascript\"\u003e\n\n$(document).ready(function() {\n  var jsc64 = $('#container').jsc64();\n});\n\n\u003c/script\u003e\n```\n            \nOnce booted, load a .prg file in your c64 with some javascript, like:\n```\n\u003cscript type=\"text/javascript\"\u003e\n  $('#container').loadPrg(pathToPrgFile)\n\u003c/script\u003e\n```\n\nThis can also be done automatically after booting by adding some event listeners to the jsc64 instance. This option will be documented shortly.\nOptionally scale your c64 using CSS. Just set a height and width to canvas elements in the c64 container, like\n```\n  #container canvas{ width: 806px; height: 568px; }\n```\n\t\t\t\nJquery plug-in documentation\n----------------------------\n\nFor ease of use, the C64 emulator can be loaded and used as a Jquery plug-in. The following options are available\n```\n$(selector).jsc64([event listener])\n```\n\nThis will make a jsc64 of the selected block-level elements. If an event listener is passed as a parameter, this object will be used to listen to keystrokes. this may come in handy when working with more than one instance, and for example different inputs should control different jsc64 instances.\n```\n$(selector).loadPrg(pathToPrgFile);\n```\n\nthis method can be called upon an instantiated jsc64 instance and will load the assigned rom into the jsc64 instance. Please keep the browsers cross-domain policy in mind.\n\nSource\n------\n\nThis program is free software, released under the terms of the GNU General Public License as published by the Free Software Foundation version 2\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freggino%2Fjsc64","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freggino%2Fjsc64","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freggino%2Fjsc64/lists"}