• What are you working on? v19
    6,590 replies, posted
[img]http://i.imgur.com/pE7Ve.png[/img] Isometric renderer and loading. I never thought isometric rendering would be this complicated. No ingame editor yet. And I'm pretty sure only squares work. [editline].[/editline] Okay nevermind [url=http://i.imgur.com/SCBpn.png]any rectangle map[/url] works. Don't you love it when you code things without trying to?
[QUOTE=Maurice;30638597][img]http://i.imgur.com/pE7Ve.png[/img] Isometric renderer and loading. No ingame editor yet. And I'm pretty sure only squares work.[/QUOTE] ...zle game Puzzle game? It better be. :v:
[QUOTE=iNova;30638862]...zle game Puzzle game? It better be. :v:[/QUOTE] Not Puzzle Game?
[QUOTE=Ziks;30638911]Not Puzzle Game?[/QUOTE] Whats up with the "Not" games?
[QUOTE=bobiniki;30639051]Whats up with the "Not" games?[/QUOTE] I don't know I have nothing to do with it. [QUOTE=iNova;30638862]...zle game Puzzle game? It better be. :v:[/QUOTE] Viewpoint Puzzle Game Look I made a concept sketch. [url]http://i.imgur.com/RJYO8.png[/url]
[QUOTE=bobiniki;30639051]Whats up with the "Not" games?[/QUOTE] [i]No[/i]t creativity. [editline]22nd June 2011[/editline] [QUOTE=Maurice;30639128]I don't know I have nothing to do with it.[/QUOTE] ops he's here
[QUOTE=bobiniki;30639051]Whats up with the "Not" games?[/QUOTE] Why not? [editline]22nd June 2011[/editline] Oops, no content.. I'll just post my H.264 framer class then: [cpp]class H264FileSource: public FileSourceT<ElementaryStreamPacket::Ptr>, public MediumFactoryTemplate<H264FileSource> { protected: bool fWriteOutputStartCodes; public: MEDIUM(H264FileSource); using MediumFactoryTemplate<H264FileSource>::New; protected: H264FileSource(Environment::Ptr env, const char *fileName, bool writeOutputStartCodes = true) : FileSourceT(env, fileName, 20), fWriteOutputStartCodes(writeOutputStartCodes) {} virtual OutputType readFrame(std::ifstream& stream) { std::streamoff start_pos = stream.tellg(); int zeros = 0; while (!stream.eof() && stream.peek() == 0 && (start_pos == 0 ? true : ++zeros < 4)) { stream.get(); } // skip initial zeros; if (!stream.eof() && stream.get() == 0x1) { auto out = new H264Packet(shared_from_this(), (unsigned)start_pos, (uint8_t)stream.get(), fWriteOutputStartCodes?3:0); H264Packet::NALU_type type = out->getNaluType(); if (out->getForbiddenBit() || type == 0) // invalid input?? { log(Logger::Error) << "\"" << fFileName << "\": Discarding invalid packet, forbidden bit is set or unknown NAL unit type in packet: " << out->toString(); return nullptr; } else if (type > H264Packet::AUX_SLICE) log(Logger::Warning) << "\"" << fFileName << "\": unknown NAL unit type at file offset: " << ((std::streamoff)stream.tellg() - 1); H264Packet::PacketBuffer& buf(out->getBuffer()); std::streamoff nalu_start = stream.tellg(); int written = 0; // copy until next startcode: while (!stream.eof()) { std::streamoff current = stream.tellg(); char c = stream.get(); if (c == 0 && (stream.peek() == 0)) { stream.get(); if (stream.peek() == 1) { stream.seekg(current); break; } else stream.unget(); } buf.push_back(c); written++; } if(stream.eof()) { log(Logger::Info) << "\"" << fFileName << "\": End of stream reached: " << out->toString(); out->setEOS(); } return ElementaryStreamPacket::Ptr(out); } else { if (stream.eof()) { log(Logger::Info) << "\"" << fFileName << "\": End of stream reached."; auto packet = H264Packet::Ptr(new H264Packet(shared_from_this())); packet->setEOS(); return packet; } else { log(Logger::Error) << "\"" << fFileName << "\": Unexpected input near file offset: " << start_pos << ", invalid H.264 stream."; return OutputType(); } } } };[/cpp] Could use more error handling, but I'm lazy.. and I'm not going to be using file sources for anything other than testing anyhow. [editline]22nd June 2011[/editline] Shit I just realised I have a memory leak
[QUOTE=Clavus;30629375]Just found a link to a pretty great article called the [url=http://altdevblogaday.org/2011/06/22/6-challenges-to-the-hobbyist-game-developer-and-how-to-overcome-them/]6 Challenges to the Hobbyist Game Developer and How To Overcome Them[/url]. Written from the perspective of a programmer, so some of you guys might get some useful tips out of it. I wish I'd read it 6 years ago, you learn this stuff over many years of failed projects.[/QUOTE] Oh man, this hit home on the first one.
[media]http://www.youtube.com/watch?v=3qTFhSDtcxI[/media] No floats. No bugs. Just amazingly big integers that allow enough precision for any kind of game. Fuck yeah.
Next move to fixed point!
Does it allow precision for top down zombie shooters?
[QUOTE=Quark:;30640733]Does it allow precision for top down zombie shooters?[/QUOTE] No. My engine automatically detects all overused game concepts and automatically creates bugs.
I'm debating whether I should post a GIF of a concept of the game I'm working on Like Garry wisely once said, don't post stuff until it's finished, otherwise you get all the positive reactions you wanted and development stagnates
[QUOTE=icantread49;30640921]I'm debating whether I should post a GIF of a concept of the game I'm working on Like Garry wisely once said, don't post stuff until it's finished, otherwise you get all the positive reactions you wanted and development stagnates[/QUOTE] I actually feel more motivated after getting positive reactions
[QUOTE=icantread49;30640921]I'm debating whether I should post a GIF of a concept of the game I'm working on Like Garry wisely once said, don't post stuff until it's finished, otherwise you get all the positive reactions you wanted and development stagnates[/QUOTE] If people followed that, WAYWO would have basically zero content :v:
[QUOTE=Chris220;30641020]If people followed that, WAYWO would have basically zero content :v:[/QUOTE] So it would be the same?
[QUOTE=icantread49;30640921]I'm debating whether I should post a GIF of a concept of the game I'm working on Like Garry wisely once said, don't post stuff until it's finished, otherwise you get all the positive reactions you wanted and development stagnates[/QUOTE] I think he was referring more to something like minecraft. Not screenshots or videos.
Obviously he meant "don't brag about something you haven't done yet". Showing features you've implemented doesn't break that rule. However, yes, posting a concept does break the rule. If that matters to you.
[img]http://i.imgur.com/TyBUK.png[/img] It's like I'm making a 3D modeling program.
[QUOTE=Clavus;30629375]Just found a link to a pretty great article called the [url=http://altdevblogaday.org/2011/06/22/6-challenges-to-the-hobbyist-game-developer-and-how-to-overcome-them/]6 Challenges to the Hobbyist Game Developer and How To Overcome Them[/url]. Written from the perspective of a programmer, so some of you guys might get some useful tips out of it. I wish I'd read it 6 years ago, you learn this stuff over many years of failed projects.[/QUOTE] He left out "can't be arsed". [editline]22nd June 2011[/editline] [QUOTE=voodooattack;30639189]Why not?[/QUOTE] I think you mean "Why not not?".
[QUOTE=Ortzinator;30641965]I think you mean "Why not not?".[/QUOTE] Stop making fun of me already aaaah I am very sensitive.
[QUOTE=Maurice;30641926][img]http://i.imgur.com/TyBUK.png[/img] It's like I'm making a 3D modeling program.[/QUOTE] If the jewel is sitting on a cube in the 3d view, why not in the top view?
I'm not going to make fun of you
[QUOTE=ZenX2;30642173]If the jewel is sitting on a cube in the 3d view, why not in the top view?[/QUOTE] Because I'm a lazy bastard and a bad coder. You're right though, it should display the ground. [QUOTE=Ortzinator;30641965]"can't be arsed".[/QUOTE]
I just shat my pants when i found out this [cpp] int main() { start: std::cout << "Lawl"; goto start; return 0; }[/cpp] Compiles and is valid Is it wierd that i was never aware of the existence of this? I have read a book and followed multiple tutorials about cpp, used a load of api's and engines but never saw 'goto' before.
Pardon? Goto is an integral part of most every language.
I used mersenne twister to generate random numbers to create static. Woo. [quote][url=http://dl.dropbox.com/u/2670708/DSC00349.JPG][img]http://dl.dropbox.com/u/2670708/DSC00349.JPG[/img][/url][/quote] [url=http://dl.dropbox.com/u/2670708/static.png]Some 1000x1000 static[/url]
Make it black-and-white noise instead.
[QUOTE=esalaka;30642793]Pardon? Goto is an integral part of most every language.[/QUOTE] I know its integrated in many language but i was never aware of the existence in C [highlight](User was permabanned for this post ("Alt of permabanned user" - Overv))[/highlight]
how
Sorry, you need to Log In to post a reply to this thread.