Dart / WebGL Doom level renderer.
I'm working on this for fun, so I won't be accepting any major pull requests.
License: MIT License
otherwise you cannot play!!
We love you notch! Upload this to pub when it is ready.
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*
}
}
fix code
bad code
Formal DMCA Takedown Request
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).
make more coders comment and code on hitbox ๐
!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.