Coder Social home page Coder Social logo

dark's Introduction

dark

Dart / WebGL Doom level renderer.

I'm working on this for fun, so I won't be accepting any major pull requests.

dark's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dark's Issues

Sample rate error

I'm getting a crash when trying to load a 176.4kHz sound (from freedoom WAD). Works find from wadexplorer, though.

Fixed with

AudioBuffer audioBuffer = audioContext.createBuffer(1,  sample.sampleCount*4, sample.rate*2);

But I'm not sure of the impacts of that change (not sure why you put *4 in the first place, either).

Upload to Pub

We love you notch! Upload this to pub when it is ready.

Fix for a problem reading wad file

This might help others looking at this. I used a doom1.wad I found and copied it to the web folder and named it doom.wad. After opening the root of this project in the Dart Editor and running it, the code stopped on the WAD_Image.parse line saying that getByteData wasn't defined on a null object. So I had to check to make sure the pname was a valid key by adding "if(header.lumpInfoMap.containsKey(pname))" as you see below in this portion of the wad.dart file. Then it all worked fine.

void readPatches(ByteData data) {
int count = data.getInt32(0, Endianness.LITTLE_ENDIAN);
for (int i=0; i<count; i++) {
String pname = readString(data, 4+i*8, 8);

  if(header.lumpInfoMap.containsKey(pname)) // *added this line*
  { // *added this line*
    WAD_Image patch = new WAD_Image.parse(header.lumpInfoMap[pname].getByteData(data), palette.palettes[0]);
    patchMap[pname] = patch;
    patchList.add(patch);
  } // *added this line*
}

}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.