All Projects → SquidDev-CC → copy-cat

SquidDev-CC / copy-cat

Licence: MIT license
A ComputerCraft emulator for the web

Programming Languages

java
68154 projects - #9 most used programming language
typescript
32286 projects
kotlin
9241 projects
HTML
75241 projects
CSS
56736 projects
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to copy-cat

Anti-BlueStacks
绕过BlueStacks内核的反模拟器检测
Stars: ✭ 61 (+134.62%)
Mutual labels:  emulator
topaz
💎 A server emulator for Final Fantasy XI.
Stars: ✭ 46 (+76.92%)
Mutual labels:  emulator
Thistle
6502 based architecture for OpenComputers
Stars: ✭ 26 (+0%)
Mutual labels:  emulator
MagiskOnEmu
This repo is no longer used
Stars: ✭ 276 (+961.54%)
Mutual labels:  emulator
notch
A CHIP-8 interpreter written in Rust.
Stars: ✭ 32 (+23.08%)
Mutual labels:  emulator
emuStudio
Universal emulation platform and framework.
Stars: ✭ 28 (+7.69%)
Mutual labels:  emulator
luma.emulator
Provides a series of pseudo-display devices which allow the luma.core components to be used without running a physical device.
Stars: ✭ 32 (+23.08%)
Mutual labels:  emulator
Scanr
Detect x86 shellcode in files and traffic.
Stars: ✭ 16 (-38.46%)
Mutual labels:  emulator
jsGBC-core
jsGBC Core Emulator
Stars: ✭ 14 (-46.15%)
Mutual labels:  emulator
gameboi
An Original GameBoy emulator?
Stars: ✭ 20 (-23.08%)
Mutual labels:  emulator
UniSpyServer
An Open source GameSpy emulator written in C#
Stars: ✭ 110 (+323.08%)
Mutual labels:  emulator
js-nes-emulator
NES emulator in javascript.
Stars: ✭ 12 (-53.85%)
Mutual labels:  emulator
emulator-tools
Google Cloud BigTable and PubSub emulator tools to make development a breeze
Stars: ✭ 16 (-38.46%)
Mutual labels:  emulator
Z80Core
A Z80 core written in Java
Stars: ✭ 25 (-3.85%)
Mutual labels:  emulator
GhidraEmu
Native Pcode emulator
Stars: ✭ 25 (-3.85%)
Mutual labels:  emulator
emulators
development methodology software emulators
Stars: ✭ 24 (-7.69%)
Mutual labels:  emulator
ravel
A RISC-V simulator
Stars: ✭ 24 (-7.69%)
Mutual labels:  emulator
SpecIde
Let's try something with SFML.
Stars: ✭ 27 (+3.85%)
Mutual labels:  emulator
ukncbtl
UKNCBTL is emulator of Elektronika MS 0511 (UKNC), soviet computer based on two PDP-11 compatible processors.
Stars: ✭ 39 (+50%)
Mutual labels:  emulator
sedna
Sedna - a pure Java RISC-V emulator.
Stars: ✭ 52 (+100%)
Mutual labels:  emulator

Copy Cat

Copy Cat is a ComputerCraft emulator for the web, heavily inspired by the a similar project Mimic. However, unlike Mimic, it's built from the mod's source code - ensuring that it's always 1 as accurate as possible.

The interface is essentially the same as Cloud Catcher, but with the computer running right in your browser rather than a server!


1. While we try to keep as close as we can, there are some elements which are impossible to emulate due to the restricted environment of a browser.

For instance, the http API has been entirely recreated, and some functionality (such as setting specific headers or requesting some sites) is not possible. As with any emulator, there will be subtle differences in how input events (key presses, mouse clicks, etc...) are handled, so do not rely on our behaviour.

And yes, this disclaimer was longer than the actual description.

Screenshots

The emulator in action

Editing a file

Embedding

It's possible to embed copy-cat within another website. This may be useful if you want to show off your programs on their own site.

<!-- The div to embed your computer. Can be placed anywhere within the page. -->
<div id="embed-computer"></div>

<!-- Any requirejs-compatible loader (https://requirejs.org/) will work. -->
<script type="text/javascript" src="https://copy-cat.squiddev.cc/require.js"></script>

<script>
  // Tell requirejs to load copycat/* from the website.
  require.config({ paths: { copycat: "https://copy-cat.squiddev.cc/" } });
  // Find our #embed-computer element and inject a computer terminal into it.
  require(["copycat/embed"], setup => setup(document.getElementById("embed-computer")));
</script>

The setup function also accepts several arguments, which are demonstrated in this example.

Build it yourself

Due to the nature of this project, Copy Cat has a rather strange build setup. We take sources of Cobalt and CC: Tweaked, modify them to work in a Javascript environment, and then compile them to JS. Thankfully, this is all automated by Gradle. However, it does require a bit of setup:

Before getting started, you will need the JDK (Java Development Kit), and NodeJS installed and on the path.

  • Clone Copy Cat with submodules: git clone --recursive https://github.com/SquidDev-CC/copy-cat
  • Install NodeJS packages: npm install
  • Apply patches: ./gradlew applyPatches
  • Build: ./gradlew assemble. You can also automatically build everything when a file changes using ./gradlew assemble --continuous.

The resulting website should be in build/web.

If making further modifications to the files in src/main/java, run ./gradlew makePatches to regenerate the patch directory.

Use git submodule foreach git pull in order to update all source repositories. You will probably need to apply and then regenerate patches after doing so.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].