Refactored my dictionary loading code.
The wind blew your way a few days ago then, gheheh.
I teached my little nephew (11 yrs) HTML (yesterday evening and today), he understands the basics, head/body, and tags with properties, like .
Andā¦ most importantly, I learned him how to Google!
Ah, the tagā¦ now he has to unlearn it.
Donāt forget
Added shadow frustum culling (I think thatās how itās called), see top left in picture. Now having to deal with the problems that come with it.
And thinking about posting this project in wip.
edit: Itās basically calculating the smallest possible shadow frustum from the view frustum.
I am creating a library to novice programmers understand how programming works:
If youāre extending a class to get itās static variables/methods more conveniently, I recommend using a static import instead:
[icode]
import static net.lib.eternalGL.Sistema.*;
[/icode]
Thank you ;D i will do that
Added sheep a ducks, meant a new quadruped skeleton and some massively complex sprites - oh wait no.
https://dl.dropboxusercontent.com/u/1668516/shots/craft/screenshot7.png
Actors now have brains, so Orcs have the FollowBrain and ducks/sheep have the WanderBrain. Something else to add into Legends of Yore 2.
Cheers,
Kev
See, now thatās programmer art. Just bunches of rectangles, but it looks good, like it could only be that way.
Now you can calculate the square root of int and double numbers with method Mat.squareRoot() in my library (i didnt use the Math.sqrt() )
Learning some more neural network stuff. Got back from a vacation to the beach. But most important of all: received the first bits of my new computer ;D Very excited for the rest to come in.
I got my isometric engine up and running quite well ;D:
http://i.imgur.com/6cDRLYA.png
Edit: Just noticed that it says 5 fps in the image, that is because background fps is set to 5,really iām getting 120 fps
In an effort to get used to it, I have immersed myself into Java 8 through gross over-application of streams and lambdas:
Scan program arguments for a file path and attempt to load it as an image:
Arrays.stream(args)
.filter(possiblePath -> Files.isReadable(Paths.get(possiblePath)))
.map(path -> loadImage(path))
.filter(possibleImage -> possibleImage.isPresent())
.map(confirmedImage -> confirmedImage.get())
.findFirst()
.ifPresent(image -> gui.canvas.setImage(image));
Itās elegant in a twisted sort of way I suppose, although the pre-JDK8 version is actually shorter (I think):
for (String arg : args) {
if (Files.isReadable(Paths.get(arg))) {
BufferedImage img = loadImage(arg);
if (img != null) {
gui.canvas.setImage(img);
break;
}
}
}
(yes I am aware I could skip the Files.isReadable() if I just eat all the exceptions ImageIO would give for non-paths, Iām considering it)
Made a small utility that does the work of sudo on windows.
http://goharsha.com/images/sudo/sudo.png
Hereās the blog post if anyone is interested. http://goharsha.com/blog/sudo-command-prompt/
Today (and yesterday), I implemented controller support. A lot of copy-pasting and renaming of copied variables and methods. But now, you should theoretically be able to remap controller buttons and axes just like you can keyboard and mouse buttons, and it should process any input you do correctly.
Not that Iāve tested it yet. Would anybody find this sort of system for remappable keys, mice, and controller stuff useful?
Screenshots would not be terribly interesting. D:
Hey Harsha, could you post the source for that sudo utility? Thatās immensely useful, thank you very much!
Here you go. I just used Process class in .Net with shell execute.
ProcessStartInfo info = new ProcessStartInfo();
info.FileName = args[0];
info.Arguments = "";
info.UseShellExecute = true;
info.Verb = "runas";
for (int i=1; i<args.Length; i++)
{
info.Arguments += (args[i] + " ");
}
Process.Start(info);
Tomorrow, Iām planning to add some of the command line switches supported by original sudo command.