sorry to post a web dev project outside of web dev waywo, but the idea I have for it falls under the general computer science umbrella.
[url]http://proboardslol.neocities.org/typer.html[/url]
Unfinished, but you play the wizard Gabegnim and you must cast incantations to prevent the sun from going down. If it does, the villagers will be attack by zombies/vampires/mutants/barbarians or whatever. If you don't type the words quickly enough, the sun gradually goes down. You type words to cast the spells and make the sun come back up.
The idea I want to discuss a little is to acclimate to the users WPM. Every 60 seconds, count the number of words the user typed and set the speed of the sun's decay to a little bit faster than that, giving the user the incentive to type faster. My problem is figuring out how to make the decay of the sun proportional to the wpm. the decay rate should be such that
D * 60 = P * (WPM + H)
where D is the decay rate, P is the points earned from a single word, and H is the hardness modifier which will give incentive to type HIGHER than your WPM.
So I guess D would just be
D = (P * (WPM + H))/60
right? But then I'd have to get D to decay at a rate of seconds and not... iterations... of the program.
[t]http://i.imgur.com/xPZJWTo.png[/t]
android development in one week
i hate this platform tbh
[QUOTE=eirexe;48747250][t]http://i.imgur.com/xPZJWTo.png[/t]
android development in one week
i hate this platform tbh[/QUOTE]
I prefer Java over the mess that is Objective-C
[QUOTE=eirexe;48747250][t]http://i.imgur.com/xPZJWTo.png[/t]
android development in one week
i hate this platform tbh[/QUOTE]
That's, what, fifteen now?
We should start a club
[QUOTE=thatbooisaspy;48747273]I prefer Java over the mess that is Objective-C[/QUOTE]
true that
btw i'm using the xml api, i'll parse the rss tomorrow
[QUOTE=eirexe;48747250]i hate this platform tbh[/QUOTE]
I wish all mobile platforms were as easy to use and flexible as Windows Phone.
[QUOTE=eirexe;48747374]true that
btw i'm using the xml api, i'll parse the rss tomorrow[/QUOTE]
Just headlines then? You can't get all the posts?
[QUOTE=proboardslol;48747443]Just headlines then? You can't get all the posts?[/QUOTE]
Yes and no, check the next answer
[QUOTE=Rocket;48747448]Why do people keep making Facepunch apps? I've never had any problems using FP from a regular web browser on mobile.[/QUOTE]
I'm not doing a facepunch app, i'm doing a app for myself to be able to watch all the things i care for in a second, like check twitter and facebook and my main news source: SH in one app.
[QUOTE=Rocket;48747448]Why do people keep making Facepunch apps? I've never had any problems using FP from a regular web browser on mobile.[/QUOTE]
fucking ratings though
[QUOTE=Rocket;48747448]Why do people keep making Facepunch apps? I've never had any problems using FP from a regular web browser on mobile.[/QUOTE]
1. It's easier to browse with an interface designed for the mobile. Text is too small for mobile devices. Sure it works exactly as it does on desktop but you have to do a lot of zooming in
2. There are a lot of ways to attack the problem. You can use the rss feed, you can use DOM methods to scrape the website for posts (surprisingly easy, though tedious), you can use benbb's ruby API or you can develop your own API. Most of these options are quite simple and thus it makes it a good exercise in mobile/app/web development for beginners.
However, implementing a login system for facepunch is beyond me. That'd be hard
[QUOTE=proboardslol;48747550]However, implementing a login system for facepunch is beyond me. That'd be hard[/QUOTE]
Don't you just need to POST to /login.php?do=login?
Oh wow, I sped up A* by making it 'stitch' paths from a cache for consecutive iterations. It's a lot faster now. It doesn't choke on 2,000 synapses any more.
It's still slow though. I wish there was a way to speed it up even more. Any thoughts?
[QUOTE=voodooattack;48748032]Oh wow, I sped up A* by making it 'stitch' paths from a cache for consecutive iterations. It's a lot faster now. It doesn't choke on 2,000 synapses any more.
It's still slow though. I wish there was a way to speed it up even more. Any thoughts?[/QUOTE]
Last time I used A*, I ended up looking into something called Jump Nodes or something like that. I don't recall how it worked, but it was absolutely brilliant for areas with a lot of open spaces (like RTS games)
Believe this article explains it: [url]http://gamedevelopment.tutsplus.com/tutorials/how-to-speed-up-a-pathfinding-with-the-jump-point-search-algorithm--gamedev-5818[/url]
[QUOTE=Dr Magnusson;48748074]Last time I used A*, I ended up looking into something called Jump Nodes or something like that. I don't recall how it worked, but it was absolutely brilliant for areas with a lot of open spaces (like RTS games)
Believe this article explains it: [url]http://gamedevelopment.tutsplus.com/tutorials/how-to-speed-up-a-pathfinding-with-the-jump-point-search-algorithm--gamedev-5818[/url][/QUOTE]
I was just reading that, it's designed for grids and doesn't help with a graph structure though.
Hmm.. Maybe I'll try something similar with graph edges and angles.
[QUOTE=leontodd;48747818]Don't you just need to POST to /login.php?do=login?[/QUOTE]
Yeah but I'm not sure how to stay logged in. Does the browser automatically handle login cookies and shit?
It took me 3 days, but I finally managed to get a shadow map to render :excited:
[IMG]http://i.imgur.com/7vbUkQa.png[/IMG]
It didn't make sense why it wasn't working for so long. Everything that should have been a problem wasn't, and the things that [B]shouldn't[/B] have been a problem were.
So I brute-forced my way through nearly every matrix transformation possibility and eventually I got something that worked.
If it is the [I]right way[/I], I won't know for a while.
This marks the third time I've tried to implement them.
damn when you get something to work that hasn't been working for 1~2 months.
everything stops and you have to retry it 100 times to be sure that "yes, you did get this to work finally"
[editline]23rd September 2015[/editline]
[QUOTE=Asgard;48741529]Holy tits, textures are working! Told a friend he could slap me if I didn't get it working
[img]http://puu.sh/kkKCK/b41982bffc.jpg[/img]
Slapping is a good motivator[/QUOTE]
Dare I say... is this CoD 2 : Big Red One?
If so I absolutely must know what this is for. That was one of [I]the[/I] games that got me into online gaming.
[QUOTE=geel9;48747323]That's, what, fifteen now?
We should start a club[/QUOTE]
Does someone with a better memory want to put together a masterpost of them?
Maybe a thread?
I'd love to see all the unique takes on the problem!
[IMG]http://i.imgur.com/uSgtMbK.gif[/IMG]
Almost have all the platform mechanics done.
Parsing 300kb of html, seems pretty counter intuitive to creating an responsive, high performance mobile app.
Can't the guy who maintains the forum create something, even if just fixing some of the fat finger problems.
It would be so much easier to maintain and develop. It would work on all devices, and support all embedded content.
So I and my team have released Jenkem:
[IMG]https://lh3.googleusercontent.com/ImkVIet-v_M1Hv_EWDs-WnytEaWjfP2wpuVk7WkT2yCg1hVA9jBbiYHNkEJuvjY2yp0=w300-rw[/IMG]
[url]https://play.google.com/store/apps/details?id=com.CenturexInc.Jenkem&hl=en[/url]
I hope you like it, it's addictive as fuck.
I have a global input class now. And redid a bunch of things so I have other singletons(like a canvas object and a utility class). My object managing class stayed the same because I was informed that I can use it to save states between maps.
[edit] sigh.. pageking...
Have some really crappy 2D game project..
[vid]http://anotherprophecy.com/webm/input.webm[/vid]
next up, a fixed time step.
I decided to learn a 'bit' about binary, hexadecimal, and bitwise operations. Needless to say I had to play with bytebeats:
[URL="http://f.bay.rocks/A78AS"]Demo[/URL]
[QUOTE=Fourier;48750376]So I and my team have released Jenkem:
[IMG]https://lh3.googleusercontent.com/ImkVIet-v_M1Hv_EWDs-WnytEaWjfP2wpuVk7WkT2yCg1hVA9jBbiYHNkEJuvjY2yp0=w300-rw[/IMG]
[url]https://play.google.com/store/apps/details?id=com.CenturexInc.Jenkem&hl=en[/url]
I hope you like it, it's addictive as fuck.[/QUOTE]
[quote]Bob had successful life: Good girlfriend, good job, good house. But everything went down spirally after he was fired from the work. Since he lost his job, girlfriend left him and he felt into depression. Finding himself deep in debt, he saw no escape. One day, he was walking down the street and bumped into a stranger, who was offering him a Jenkem. He tried one hit and he was hooked, since that day he has become troubled human being: Jenkem Addict.
He now lives in sewers and can't escape easily. Now it's your job to help him go back into civilization by climbing out of sewer![/quote]
Holy shit, what a premise.
Well I hope it resonates with your humoristic side :v:
[QUOTE=General J;48749250]
Dare I say... is this CoD 2 : Big Red One?
If so I absolutely must know what this is for. That was one of [I]the[/I] games that got me into online gaming.[/QUOTE]
It's Call of Duty 2, the map is mp_carentan. CoD2 is what got me into online gaming also. It's absolutely one of the most important games in my childhood. And I'm just doing this for fun and for nostalgic reasons :v: The file formats used in CoD2 aren't very well documented, some are and some aren't. So it takes some puzzling to figure everything out and that's loads of fun.
Maybe someday this becomes more but atm I'm just seeing how far I can take it.
[editline]24th September 2015[/editline]
Btw the loader isn't limited to mp_carentan. It can load all maps, singleplayer or multiplayer from CoD2 including textures.
[QUOTE=false prophet;48750465][...]
next up, a fixed time step.[/QUOTE]
Please don't.
If you just program a little carefully a dynamic one gives you both better performance and undoes any framerate locks imposed by that part of the program.
The only issue I'd consider a fixed one advantageous for is if you want to use lockstep networking, but the standards are too fuzzy to guarantee determinism across different machines afaik so that would only work reliably with all-fixed-point numbers.
[QUOTE=Fourier;48750376]So I and my team have released Jenkem:
[IMG]https://lh3.googleusercontent.com/ImkVIet-v_M1Hv_EWDs-WnytEaWjfP2wpuVk7WkT2yCg1hVA9jBbiYHNkEJuvjY2yp0=w300-rw[/IMG]
[url]https://play.google.com/store/apps/details?id=com.CenturexInc.Jenkem&hl=en[/url]
I hope you like it, it's addictive as fuck.[/QUOTE]
Looks like a really cool game but i cant stand the low res "realistic" textures and conflicting fonts.
Ok, so currently at work and a new code review came in for some stuff I want to check in to the main branch.
I had the following method:
[code]
/// <summary>
/// Selects all ips with a specific check out exception.
/// </summary>
/// <param name="exception">Name of exception (default = Reserved.ConfigureEthernet)</param>
/// <returns></returns>
public IEnumerable<IPAddress> SelectAddressesWithException(string exception = "Reserved.ConfigureEthernet")
{
return this.Context.GetTable<Linq.ViewAddressTable>()
.Where(a => a.CheckoutAsException == exception)
.Select(a => new IPAddress(a.AddressId));
}
[/code]
Here is what the guy commented on the above code:
[quote]
Let's remove the default argument.
This class/method should not be aware of any ConfigureException related stuff.
[/quote]
So I fix it (even though I really don't think it is bad to have the default value for it...). A couple of iterations later of fixing up the same code review he comments the following:
[quote]
please add a parameter to the function, like "purpose", and set it to "Reserved.ConfigureEthernet" when empty.
[/quote]
Highlighting the location where I am using the SelectAddressesWithException (which no longer has a default parameter so I pass in the string "Reserved.ConfigureEthernet" into the method mentioned above.
Now I feel like he is literally just being a pain and wanting to change code for the sake of changing code and making me feel like the code I am writing isn't what is 'needed'. From what I can tell he is wanting the following code instead of using a default value...
[code]
public IEnumerable<IPAddress> SelectAddressesWithException(string exception)
{
if (string.IsNullOrEmpty(exception))
{
exception = "Reserved.ConfigureEthernet";
}
return this.Context.GetTable<Linq.ViewAddressTable>()
.Where(a => a.CheckoutAsException == exception)
.Select(a => new IPAddress(a.AddressId));
}
[/code]
Which please correct me if I am wrong, but that is EXACTLY the same thing I originally had exception setting parameter with a default value which is atleast in my eyes safer and cleaner.
This guy has been really bugging me with his code review comments and decided I would come here and ask for any input.
Sorry, you need to Log In to post a reply to this thread.