Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Emulate a computer in Unity3D?

Discussion in 'Scripting' started by BlackArcane, Mar 13, 2013.

  1. BlackArcane

    BlackArcane

    Joined:
    Jun 26, 2011
    Posts:
    119
    Hey all! I have been asked my a game designer to emulate a 16-bit computer's full functionality in our game. I am aiming for a DOS-like OS but I have some questions on how you guys would implement certain functionality.
    -File System A FS seems like the most demanding thing in the whole computer. How would you go about storing all the folders and files? I thought of having actual folders on the users computer, but that would cause security issues.
    -(More on the way. I'll fill this up as problems arise...)

    Thanks in advance,
    Nick
     
  2. Themp

    Themp

    Joined:
    Nov 8, 2011
    Posts:
    96
    if you want a fully functional PC ingame you might want to try the same thing as Notch did

    http://dcpu.com/dcpu-16/

    heres the specs
    it's from this game : http://0x10c.com/
    beware though.. It's REALLY hard to program and if you don't have exceptional skills this might be wayy out of your reach
     
  3. wccrawford

    wccrawford

    Joined:
    Sep 30, 2011
    Posts:
    2,039
  4. BlackArcane

    BlackArcane

    Joined:
    Jun 26, 2011
    Posts:
    119
    @Themp I have programmed a compiler for a custom language before and I have even worked on a tiny operating system for the COSMOS kernel. So I hopefully will manage this :) Notch is the programmer of Minecraft, right? Didn't know he was creating another game. Cool! That's exactly what I want to do but I can't find any useful information on this subject...

    @wccrawford It looks really amazing but that does not seem to involve programming... (Or I didn't manage to find the correct section?)
     
  5. BlackArcane

    BlackArcane

    Joined:
    Jun 26, 2011
    Posts:
    119
    I also found this: http://cplus.about.com/od/howtodothingsinc/a/The-0x10c-Assembler-Empulator.htm which seems to be a tutorial on creating a DCPU (Notch's computer) and an assembler for it but I don't seem to be able to find the actual tutorial. I think I am going to give this a try myself, but if you manage to find any resources, I'll be glad to take a look at them. Plus, if I even manage to complete it, i'll make it open source for people to be able to use in their games.
     
    Last edited: Mar 15, 2013
  6. wccrawford

    wccrawford

    Joined:
    Sep 30, 2011
    Posts:
    2,039
    The first part deals with the necessary hardware theory, including programming to make each of the chips work. The second part deals with writing software (VM, OS, etc) for that hardware.