• What are you working on? v16
    5,004 replies, posted
[QUOTE=high;28832991]Just saw this in the LMAO pics thread. I wonder how a solver would work for this. [img_thumb]http://davidbau.com/images/art/mazeshot.png[/img_thumb][/QUOTE] it would require some sort of prediction to be able to follow a path that goes under another one. Assuming there are no curves in the middle of going under another path, you could detect crossing paths and figure out which one is going underneath. It seems like a pain in the ass to code though, as you'd have to somehow unravel the puzzle to be able to use any standard puzzle solving algorithm here.
Might be actually more interesting to write a generator for that sort of mazes.
What do you prefer: a game with amazing graphics and a mediocre story or a game with an amazing story and mediocre graphics? I personally prefer the latter.
The former is more of something you'd just stare at for the pretty graphics, then get bored of. The latter is something you'd be interested in and want to play.
The combination of the two, that is special.
[QUOTE=RyanDv3;28831606]I may be absolutely wrong on this, but I call bs on "piracy as demo" argument. I know that personally, I would very rarely be able to bring myself to pay for something once I already had it. That's partly why I never pirate games. But I guess everyone's different.[/QUOTE] [del]I[/del] A friend does that often.
[QUOTE=Maurice;28822039]It can be kind of easily broken [img_thumb]http://filesmelt.com/dl/easily_broken.png[/img_thumb] But thanks anyway [img_thumb]http://cdn.fpcontent.net/fp/ratings/heart.png[/img_thumb][/QUOTE] Haha yeah, but I thought I had added something on on the top of the finish block or something... Maybe I accidentally right-clicked it or something.
Well, that was easier than expected. [img]http://ahb.me/2jkq[/img] The Bochs Graphics Adapter is surprisingly easy to program! Now I'm working with 640x480x24! :woop:
Another quick question: Would you play a game that follows the old competitive nature of Quake and Call of Duty 2?
[QUOTE=DevBug;28834891]Another quick question: Would you play a game that follows the old competitive nature of Quake and Call of Duty 2?[/QUOTE] I'd play a game that has the old competitive nature of Quake, but not COD2
In other OS related news: [img]http://f.anyhub.net/2jm2[/img] I couldn't be bothered writing an ATA driver, so I made my OS switch between Real Mode and Protected Mode to use the BIOS interrupts for disk I/O. I'm pretty proud of the whole setup - it's able to flawlessly shift between real and protected as often as I like, while maintaining protected mode's state. I exposed this functionality through the real_exec() function, which takes a buffer of 16 bit real mode code and executes it. Here's the code to ata_read(): [img]http://ahb.me/2jm7[/img]
[QUOTE=Tangara;28835198]In other OS related news: [img_thumb]http://f.anyhub.net/2jm2[/img_thumb] I couldn't be bothered writing an ATA driver, so I made my OS switch between Real Mode and Protected Mode to use the BIOS interrupts for disk I/O. I'm pretty proud of the whole setup - it's able to flawlessly shift between real and protected as often as I like, while maintaining protected mode's state. I exposed this functionality through the real_exec() function, which takes a buffer of 16 bit real mode code and executes it. Here's the code to ata_read(): [img_thumb]http://ahb.me/2jm7[/img_thumb][/QUOTE] I didn't understand a single word of this post so I'm going to rate it Programming King :v:
[QUOTE=Reg;28828133]I got an idea for a (pretty secure) product registration system.[/QUOTE] I personally liked Revenge of the Titans' DRM system. A one-time online registration where you only input your email, and if you try to activate it on another computer, it'll just send a confirmation link to your email. After you click that, you've activated the game for your other computer as well. There's still of course the possibility of it getting cracked and the fact that you need internet connection, even if it's only once, but other than that it's very user-friendly.
[QUOTE=Tangara;28835198] Here's the code to ata_read(): [img_thumb]http://ahb.me/2jm7[/img_thumb][/QUOTE] What font is that?
[QUOTE=Dlaor-guy;28835250]I didn't understand a single word of this post so I'm going to rate it Programming King :v:[/QUOTE] My joke [editline]27th March 2011[/editline] Also, the only good copy protection is a solid and fun multiplayer part
[QUOTE=sim642;28835309]What font is that?[/QUOTE] Monaco. Comes with Mac OS X.
[QUOTE=Tangara;28835323]Monaco. Comes with [B]Mac OS X[/B].[/QUOTE] :geno:
Pretty font but I will not use it because I hate Apple.
Wouldn't the switch to Real Mode be capable of memory corruption? Actually, I bet you ran into a couple issues while implementing it... what happened?
[QUOTE=Nipa;28835375]Wouldn't the switch to Real Mode be capable of memory corruption? Actually, I bet you ran into a couple issues while implementing it... what happened?[/QUOTE] x86 is a very finicky architecture. While implementing the swap to real mode, my OS was triple faulting because I had the lines: [code] xor ax, ax mov ds, ax [/code] Rather than: [code] xor eax, eax mov ds, eax [/code] Took me about half an hour to solve that one. [editline]27th March 2011[/editline] Just to put things in perspective, here's what happens when things screw up: [img]http://ahb.me/2iZy[/img] There's no safeguards in OS Dev, it's just you and the machine. This was a relatively 'good' bug. Usually you just triple-fault. [editline].[/editline] Although, once you have all the little things ironed out, it's entirely possible to have doing dumb tricks like switching to real mode and back be rock-solid.
I tend to make huge if statements: [cpp] if( ( sqr1 != '1' && ( (sqr2 == sqr1 && sqr3 == sqr1) || (sqr4 == sqr1 && sqr7 == sqr1) ) ) || ( sqr5 != '5' && ( (sqr1 == sqr5 && sqr9 == sqr5) || (sqr2 == sqr5 && sqr8 == sqr5) || (sqr4 == sqr5 && sqr6 == sqr5) || (sqr3 == sqr5 && sqr7 == sqr5) ) ) || sqr9 != '9' && ( (sqr3 == sqr9 && sqr6 == sqr9) || (sqr7 == sqr9 && sqr8 == sqr9) ) ) gameOver = true; [/cpp] I'm not even sure it works anymore :psypop: Edit: It checks if the player has won my tic tac toe game yet.
If you really need to do something like that, you should at least seperate it into multiple lines. Actually screw that, it just makes it worse.
[QUOTE=DeadKiller987;28835461] gameOver = true;[/QUOTE]
I could have multiple if's but that just look's like too much unnecessary code to me. [editline]27th March 2011[/editline] [QUOTE=DrLuke;28835623][/QUOTE] What are you trying to say DrLuke?
[QUOTE=DeadKiller987;28835627] What are you trying to say DrLuke?[/QUOTE] Whenever I have such a big if-statement, it's gameover for me :v:
[QUOTE=high;28832991]Just saw this in the LMAO pics thread. I wonder how a solver would work for this. [img_thumb]http://davidbau.com/images/art/mazeshot.png[/img_thumb][/QUOTE] They're arranged in a grid and are consistent in shape. With some simple image recognition you could turn it into a grid of tile types. Each tile type can be traversed in two directions if it's a bridge, and the directions depend on whether you're approaching it horizontally or vertically. Otherwise it's like a normal maze. Solve it with A* or a flood-filling algorithm, or even a wall follower (end and start lie on the connected outer wall). edit: all right now it's factually correct!
I've been messing around with LWJGL a bit recently, trying to get a hang of OGL rendering after playing with XNA. And surprisingly quite a bit of the stuff I learnt for XNA carried over flawlessly, I got game states (loading, intro screen, main menu, playing, paused, game over, etc) all working using a debug message to check right now as I know piss all OGL. I have a argument parser, which works pretty much like the Source engine command line (-w [int] -h [int], -verbose for debug output). And got the player to render and be controllable using its own class, right now the player is just a multi-coloured quad mind you... [img_thumb]http://img217.imageshack.us/img217/5725/lwjgltestgame2011032713.png[/img_thumb] [img_thumb]http://img217.imageshack.us/img217/4263/lwjgltestgame2011032713e.png[/img_thumb]
Why won't my image upload :(
I've been working on attempting to get a nice openGL development environment within Linux. Of course after installing display drivers, I can no longer boot Ubuntu, siiiiigh.
[QUOTE=HeatPipe;28835358]Pretty font but I will not use it because I hate Apple.[/QUOTE] Eugh. This statement is ridiculous. I dislike Apple too, but it wouldn't stop me using one of their [b]fonts[/b].
Sorry, you need to Log In to post a reply to this thread.