• What are you working on? v16
    5,004 replies, posted
Finished scrolling in JAGMARLG menus, that was hell.
[QUOTE=Smashmaster;28442728]Alright. All suggestions taken into account, this is lighting a la facepunch. [img_thumb]http://i.imgur.com/YT013.jpg[/img_thumb] Resolution is 16 luxels/tile. It runs fairly well in real-time.[/QUOTE] That looks much better.
[QUOTE=Smashmaster;28442374]It runs at 5 FPS, though. I'm going to optimize everything and make it only update the lighting when it detects that the world is changed, and only in places where it's been changed.[/QUOTE] With some optimization you should get a much higher framerates than that. Just look at this: [media]http://www.youtube.com/watch?v=s60AljUbpKY[/media] (not mine)
[img]http://i.imgur.com/UAZGN.jpg[/img] Enjoy my monthly random screenshots ! [editline]5th March 2011[/editline] I just realized it looked ugly as hell so I changed it a bit. [IMG]http://i54.tinypic.com/2u56ptz.png[/IMG]
[QUOTE=Xerios3;28443760] Enjoy my monthly random screenshots ! [editline]5th March 2011[/editline] I just realized it looked ugly as hell so I changed it a bit. [/QUOTE] I really want to play this. Is it getting close to playable?
Does anyone know if you can use slimDX with C++? Or if there is anything equivalent to it?
Wait. Isn't the DirectX API built to be used with C/C++?
[QUOTE=Darwin226;28444532]Wait. Isn't the DirectX API built to be used with C/C++?[/QUOTE] I mean a wrapper for directX o make things easier
What would be the best way to programmatically copy a file (c++) from a location to another? fopen should be pretty slow, if I'm not mistaken, is there any other way? [editline]6th March 2011[/editline] Woop 2000 posts, now I just need to wait till June!
Xerios, that looks a lot like blue tiberium!
Can someone whip up a quick C# example of connection to the same computer through the internet using TcpClient and TcpListener and sending one byte over the stream to the client? I can't seem to make it work. It doesn't throw the "Remote machine actively refuses the connection" anymore but it just stops at Connect() on the client.
[QUOTE=Darwin226;28446005]Can someone whip up a quick C# example of connection to the same computer through the internet using TcpClient and TcpListener and sending one byte over the stream to the client? I can't seem to make it work. It doesn't throw the "Remote machine actively refuses the connection" anymore but it just stops at Connect() on the client.[/QUOTE] If you try connecting to the same computer through the intranet or localhost it should work, but when you connect via the internet (even to the same machine) it probably won't. This is likely because you've got at least one firewall or router and it's closing ports that haven't been explicitly opened - try opening the ones you need or forward the port to your computer.
[QUOTE=polkm;28444092]I really want to play this. Is it getting close to playable?[/QUOTE] Well it's still missing content =) A game without content is no game at all
[QUOTE=TerabyteS;28445425]What would be the best way to programmatically copy a file (c++) from a location to another? fopen should be pretty slow, if I'm not mistaken, is there any other way? [editline]6th March 2011[/editline] Woop 2000 posts, now I just need to wait till June![/QUOTE] Its possible to manipulate the master file table, but i dont know how myself.
[QUOTE=CarlBooth;28445811]Xerios, that looks a lot like blue tiberium![/QUOTE] *cough**cough* ermm, they're just... crystals...you see? Just plain hazardous, self-expanding crystals
[QUOTE=mechanarchy;28446243]If you try connecting to the same computer through the intranet or localhost it should work, but when you connect via the internet (even to the same machine) it probably won't. This is likely because you've got at least one firewall or router and it's closing ports that haven't been explicitly opened - try opening the ones you need or forward the port to your computer.[/QUOTE] I have forwarded the correct port and I think it is working because as I said I used to get the "actively refused connection" error but now I don't.
I'm going to create a simple game in Love2D to get a feel for it. I might fork off and customize it (so I can have more control over alpha blending).
[QUOTE=Darwin226;28446597]I have forwarded the correct port and I think it is working because as I said I used to get the "actively refused connection" error but now I don't.[/QUOTE] Oh, sorry, blame my poor reading. I'm not too sure then. Are you sure it doesn't get any further than connect? Sockets are usually blocking so it's understandable that it wouldn't do anything else but from my limited experience it's usually only blocking when you're doing loops waiting for clients to connect or data to read.
[IMG]http://dl.dropbox.com/u/148374/depthfirst.png[/IMG] Got my depth-first algorithm working! Now i'm going to try and improve the UI a little, and maybe even implement another algorithm to solve it.
[QUOTE=caesium;28448076][img_thumb]http://dl.dropbox.com/u/148374/depthfirst.png[/img_thumb] Got my depth-first algorithm working! Now i'm going to try and improve the UI a little, and maybe even implement another algorithm to solve it.[/QUOTE] If you plan to only use depth-first, you can save the square from which each square was arrived at while you generate it and use that to solve it, assuming that where you started generating is the start or the end point.
[QUOTE=SamPerson123;28448194]If you plan to only use depth-first, you can save the square from which each square was arrived at while you generate it and use that to solve it, assuming that where you started generating is the start or the end point.[/QUOTE] Actually you should store the step in the maze array so to reconstruct the path you just backtrack.
-snip- nevermind, totally forgot how depth-first works.
[QUOTE=Apple Pi;28428706][img_thumb]http://gyazo.com/e37701924bcf684214c1bbf04da376df.png[/img_thumb] Yeah, I'd rather not.[/QUOTE] At least you got an easy one. Maybe there's harder stuff =/ [QUOTE=Dr Magnusson;28437466]Making my own memory manager, so far it beats the shit out of the standard malloc/free stuff. It allocates a big chunk of memory when it is created, and then hands out smaller bits from that, keeping track of free/locked memory blocks as it goes.[/QUOTE] How are you handling memory alignment?
[QUOTE=TerabyteS;28445425]What would be the best way to programmatically copy a file (c++) from a location to another? fopen should be pretty slow, if I'm not mistaken, is there any other way? [editline]6th March 2011[/editline] Woop 2000 posts, now I just need to wait till June![/QUOTE] Congratulations on the 2000 posts. If your question still needs answering, Windows has the [url=http://msdn.microsoft.com/en-us/library/aa363851(v=vs.85).aspx]CopyFile[/url] function.
Took a long break from working on my little platformer game, but now when I sit down to get back to work on it I'm just disgusted by it lol. I feel like re-writing it all but then again, if I just keep re-writing all my projects I'll never finish anything. What should I do? :smith:
How do you download/checkout System.Data.SQLite? I have been looking on their site and can't find out how :(. [url]http://system.data.sqlite.org/index.html/doc/trunk/www/index.wiki[/url]
[QUOTE=Darwin226;28446005]Can someone whip up a quick C# example of connection to the same computer through the internet using TcpClient and TcpListener and sending one byte over the stream to the client? I can't seem to make it work. It doesn't throw the "Remote machine actively refuses the connection" anymore but it just stops at Connect() on the client.[/QUOTE] Whats the code your using?
[QUOTE=Kopimi;28451557]Took a long break from working on my little platformer game, but now when I sit down to get back to work on it I'm just disgusted by it lol. I feel like re-writing it all but then again, if I just keep re-writing all my projects I'll never finish anything. What should I do? :smith:[/QUOTE] When I get in that kind of mood, I play some NES games or Minecraft, have a cup of tea, take a nap, and wake up full of inspiration.
[QUOTE=ZenX2;28452401]When I get in that kind of mood, I play some NES games or Minecraft, have a cup of tea, take a nap, and wake up full of inspiration.[/QUOTE] I get in the exact same mood though when I rest and have a cup of tea I tend to spend the next 2 hours rewriting it because of some fundimetal flaw in it's design.
What would be a good way to learn C++?
Sorry, you need to Log In to post a reply to this thread.