• What are you working on? v19
    6,590 replies, posted
[QUOTE=danharibo;30588970]I'm talking more about bans & op for game servers than anti-piracy, I'm guessing there's no real way to do it besides just associating ip addresses instead of usernames.[/QUOTE] How about MAC addresses? [editline]20th June 2011[/editline] I don't really know what I'm talking about :v:
[QUOTE=CallumE;30588901]got the game working now, going to add scores next [img]http://ploader.net/files/e61e315d026ca4e25a08a3443821ffa7.gif[/img] evil mouse!![/QUOTE] What's the math like on calculating what direction and velocity the ball has when ever it hits the pongs?
[QUOTE=Parakon;30587928]anyone know where to find pixel artists looking for work? I could do a lot more programming if the graphics was taken care of.[/QUOTE] I could give a hand I guess.
[QUOTE=Capsup;30589425]What's the math like on calculating what direction and velocity the ball has when ever it hits the pongs?[/QUOTE] I would guess he's doing -VelocityX every time it hits a paddle, if you understand what I'm saying.
[QUOTE=bootv2;30589766]multithreading is really nice once you get the hang of it. [IMG_THUMB]http://i54.tinypic.com/2efl2yt.png[/IMG_THUMB] [editline]20th June 2011[/editline] img_thumb, Y U NO WORK?[/QUOTE] Just do [noparse][quote][img][/img][/quote][/noparse]
[QUOTE=danharibo;30588970]I'm talking more about bans & op for game servers than anti-piracy, I'm guessing there's no real way to do it besides just associating ip addresses instead of usernames.[/QUOTE] Not really the best solution but similar to what RyanDv3 suggested: Each client executable is unique and contains a hash or can be hashed to identify that user. It would be easy to circumvent though because a user could just download a new client with a new hash. IP Addresses aren't a reliable enough way for uniquely identifying users though. I mean, it depends on the scale of the game and how much you really care.
Got a bit of AI pathfinding. Going to make a tower defense web game. The best you ever saw. [url]http://dl.dropbox.com/u/3590255/Tests/HTML5/014-AINav/index.html[/url] (If you block off the whole playing field so they can't get past it will stop working) [editline]20th June 2011[/editline] Weirdly - the exact same code doesn't work on the iPhone's browser.. really weirdly. The AI just goes around in circles. Don't understand how that could possibly happen. I got it working on iPhone and IE - was a sort function!
Got the scores working! [img]http://gyazo.com/74c9a1005780bab7966e4c17f0bdfb10.png[/img]
[img]http://i52.tinypic.com/t8km05.png[/img] Dance puppets! Dance!
[img]http://i.imgur.com/B6sDQ.png[/img] hmmmm well that's not quite right. fuck
I'm starting to like v19, pretty good content so far.
Shameless self-promotion! [url]http://www.facepunch.com/threads/1099607-Not-Tetris-2[/url] Get it while it's hot! (Rhetorically speaking of course. Downloads can't be hot)
[img]http://i.cubeupload.com/0yzmcu.png[/img] - added slopes - added grass (green edge)
[media]http://www.youtube.com/watch?v=3tIoD6zu5iA[/media]
Pong is coming along good :D [img]http://ploader.net/files/1889e40a13dbf6a53c711938a5971f86.gif[/img] EDIT: I really should start moving my mouse away!
[QUOTE=SupahVee;30594904][media]http://www.youtube.com/watch?v=3tIoD6zu5iA[/media][/QUOTE] Can you push the red blocks?
[QUOTE=CallumE;30595112]Pong is coming along good :D [img]http://ploader.net/files/1889e40a13dbf6a53c711938a5971f86.gif[/img] EDIT: I really should start moving my mouse away![/QUOTE] I caught myself doing "beep" and "boop" noises for the left and right paddle.
Holy shit; I decided to implement A* in my project, so I looked over the wikipedia article once more, skimmed the first result on google, and an hour and a half later I pressed run. It crashed, because I had attempted to access blocks outside the map. I fixed it, and then... I ran it again, and watched awestruck as the character walked across the room to the target. Then I clicked upstairs and watched, even more awestruck, as he walked UP THE FUCKING STAIRS. I had even thought jokingly to myself when I completed the last function, "Welp, I'm done, should work perfectly now, right?".
oh hey now this is what i'm talking about [img]http://i.imgur.com/Psd6u.png[/img] [img]http://i.imgur.com/V4NBL.png[/img] still needs more work and the edges have some nasty seems but i like it so far i'm mainly making this so i can generate AO maps for my levels, i can't find a good (and fast) tool for generating AO maps of an interior [editline]20th June 2011[/editline] they all seem to assume that the mesh is facing the outside
I'm trying to gain some bitcoins by freelancing. I'm working on improving my patience while I wait for someone to ask me to make something.
well, here's the final in-game result [img]http://i.imgur.com/FIT2s.png[/img] serves its goal pretty well, gives better shape perception time to commit to SVN and relax :v:
[QUOTE=icantread49;30598280]well, here's the final in-game result [img]http://i.imgur.com/FIT2s.png[/img] serves its goal pretty well, gives better shape perception time to commit to SVN and relax :v:[/QUOTE] Love the art style, this is awesome, when will you have a playable demo?
[QUOTE=mmavipc;30598535]Love the art style, this is awesome, when will you have a playable demo?[/QUOTE] oh wow thanks man :) i'm shooting for an initial release by the end of the summer. main thing i'm focusing on at the moment is level creation because a good chunk of the functionality is already in a usable state in case anyone wants more info on the game itself, it's a physics puzzle game. 2 of the involved mechanics have never been done in a game before so i'm rushing to release it before one of the Big Guys gets the same idea
How do you GPL a project? Do you just copy this into every file? [quote] Project Name Copyright (C) 2011 Name This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.[/quote]
[QUOTE=high;30599179]How do you GPL a project? Do you just copy this into every file?[/QUOTE] Yes, just don't forget to change the templated text. Also, include a copy of the GPL in the root directory of your source tree and along with any binaries you distribute. (name it "LICENSE" without an extension if you want to go full GNU-style)
[QUOTE=voodooattack;30601162]Yes, just don't forget to change the templated text. Also, include a copy of the GPL in the root directory of your source tree and along with any binaries you distribute. (name it "LICENSE" without an extension if you want to go full GNU-style)[/QUOTE] Well of course :P. Is the file actually required or does it not really matter? Also they say to name it "COPYING".
Yeah, COPYING works too, but I find LICENSE more descriptive. And you [i]should[/i] include a copy, as per the last line of the disclaimer, but it also says it's optional. I've seen programs that include a GPL button in their "About" dialogues though.
I've been working on my build system again. There are several things that I'm really loving within Python 3.2 (the only version it will work with, aside from any future versions) Specifically the concurrent.futures module, and set comprehensions. [code] self.files = list(set(files) ^ {x for x in fnmatch.filter(files, exp)}) [/code] The above code is from my 'remove files' function, which allows you to specify a glob like expression (i.e., '*.swp'), and anything in the 'files' list matching it will be placed into a set. I then take the current set of files and perform an set difference all (^ is overloaded to the set.difference method), which gives me all the files that are left over, which I then convert to a set, and then set to the file container object. This takes up a little bit more memory in the long run, but is faster when dealing with large lists of files. :) I'm also a bit confused as to whether I should be ashamed or proud of the following: [code] def postbuild(self, item=None): name = None func = None if type(before) == types.FunctionType: name = item.__name__ func = item self.postbuild_order.append(name) else: def wrap(function): name = function.__name__ func = function for idx, it in enumerate(self.postbuild_order): if it == item: self.postbuild_order.insert(idx, name) break else: self.postbuild_order.append(name) self.postbuild_steps[name] = func return StepCallError(name) [/code] And no, the for-else statement is not a typo, it's actually legal python code! :v: It's called whenever a for loop exits without a break statement. The above function is going to be used sort of like [code] @myproject.postbuild def some_step(args): ... do some shit ... @myproject.postbuild('name_of_some_other_step') def this_step_goes_before_the_named_one(args): ... do some shit ... [/code] so it'll insert the function name into a list, with the actual function being placed into a lookup dictionary, which lets the user place the function either at the end of the given execution list, or before the named function, and it doesn't require that the decorator have a function call at the end of it :D I'm starting to get an idea of what will most likely be "the final architecture", with the focus being a combination of file and task oriented processes (Sort of a mix between waf and scons). That is, the tasks/targets are easy to modify if you need to (via the decorator to add a task), but for the most part, the default 'project types' should be more than enough for basic needs. I've got a lot of work to do for plumbing and whatnot, but I'm looking forward to this release. :)
Progress on my game is going really well. The listen server is really effective and has full functionally, not bad for 6 lines of code. [img]http://dl.dropbox.com/u/2014606/CodeCrusade/the_new_codecrusade2.png[/img] Sorry about the programmer art. You are able to move around the map using the arrow keys. Next stage is entity's then a resource system.
[QUOTE=high;30599179]How do you GPL a project?[/QUOTE] by using mit or bsd [editline]21st June 2011[/editline] [QUOTE=Dlaor-guy;30582137]I've been searching a good config file format lately, because Lua was too advanced for my needs, XML is ugly and bloated and INI just doesn't cut it. Then I thought: JSON! So I downloaded this Json library for C# and so far I'm loving it! It can serialize classes into Json files and vice versa, so that's pretty damn handy. Here's an example, this is my configuration class: [cpp] class Configuration { public uint ResolutionWidth { get; set; } public uint ResolutionHeight { get; set; } public bool FullScreen { get; set; } }[/cpp] Then I do... [cpp]Configuration config = new Configuration() { ResolutionWidth = 1280, ResolutionHeight = 720, FullScreen = false }; serial.Serialize(jWriter, config);[/cpp] And then I write the result to Config.json: [code]{ "ResolutionWidth": 1280, "ResolutionHeight": 720, "FullScreen": false }[/code] Perfect![/QUOTE] .net has this stuff built in
Sorry, you need to Log In to post a reply to this thread.