Is a specific version of .NET required? I get an error when using it.
No, I used .Net 2.0 with SharpDevelop 4.4. What error did you get?
âThe application could not be started.â When you develop a .NET app, end users must have the same .NET framework installed. I only have .NET 4.5 installed⌠youâre still using .NET 2.0?! O_o
You are on windows 8??? Windows 8/8.1 disables .Net 2.0 and you have to manually enable that. That code should also work with 4.5 I believe.
I already have that feature enabled. Let me try installing the 2.0 redistributable.
I just used .Net 2 because it was default with SharpDevelop. Iâll get you 4.5 binaries now.
EDIT: Updated the link to the binary compiled with .Net 4.5 framework. It should work now.
Made the world more desertly, added a player with collision and figured I still have some shadow problems to fix.
While biking a pass by a couple of jinjas, and I thought, that the entrance gate would look cool in my game. So I âquicklyâ made one. Well, now I have and entity that is blocking more than one map cell and not the one in centre. F#ck me for not thinking about that sooner >:(.
Forward Rendering with my new util-library.
MP4 format @ http://gyazo.com/01a9c6afd43ee6159524bad350ec1885
Timed every level, add 10 new levels and 8 new features on Jumproom
https://dl.dropboxusercontent.com/u/1668516/shots/jump/jump14.png
Good session!
Cheers,
Kev
:point: Finished my avatar.
Edit: âŚwhich doesnât look great in the sidebar. Better here: https://dl.dropboxusercontent.com/u/81912152/openglshaders.gif
Scrollbar widget, lives alongside the checkbox and textfield widget. My life is complete.
Or it will be when Iâve made the scrollpane widget.
Cas
I took some Swing and a bottle of Coke, and started working on a little something that I actually want to have. Couldnât find any application that does it like I want (and supports features I need), so its Do-It-Yourself time!
Have a nice day.
- Longor1996
Fixed shadow bugs, added day/night cycle and added an outline on the blocks to help distinguish them.
http://indiespot.net/files/published/crude-script-01.png
Customizable and speedy syntax highlighter: (styles text on the currently edited line only)
public class CssTextPaneTest {
public static void main(String[] args) {
try {
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());
}
catch (ClassNotFoundException | InstantiationException | IllegalAccessException | UnsupportedLookAndFeelException e) {
e.printStackTrace();
}
final CssTextPane pane = new CssTextPane();
pane.defineStyle("* { color: #000; font-style: normal; font-size:12; font-family: courier; } ");
pane.defineStyle("signal { color: #00f; font-style: normal; } ");
pane.defineStyle("schedule { color: #c0c; font-style: normal; } ");
pane.defineStyle("control { color: #080; font-style: normal; } ");
pane.defineStyle("trycatch { color: #c40; font-style: normal; } ");
pane.defineStyle("jump { color: #048; font-style: normal; } ");
pane.defineStyle("comment { color: #088; font-style: italic; text-decoration: none } ");
String pre = "^|\\s|\\G";
String post = "\\s|//|$";
{
pane.addSyntaxElement("signal", Pattern.compile("(" + pre + ")(\\d+)(" + post + ")"), 2);
pane.addSyntaxElement("trycatch", Pattern.compile("(" + pre + ")(THROW|CATCH)(" + post + ")"), 2);
pane.addSyntaxElement("schedule", Pattern.compile("(" + pre + ")(YIELD|SLEEP|WAIT|HALT)(" + post + ")"), 2);
pane.addSyntaxElement("control", Pattern.compile("(" + pre + ")(BEGIN|END|FUNCTION|NOT|WHILE|DO|IF|THEN|ELSE)(" + post + ")"), 2);
pane.addSyntaxElement("jump", Pattern.compile("(" + pre + ")(GOTO|CALL|BREAK|LOOP)(" + post + ")"), 2);
pane.addSyntaxElement("comment", Pattern.compile("(#.*$)"), 1);
}
pane.activateUndoRedo();
pane.activateAutoRestyle();
JFrame frame = new JFrame("CrudeScript syntax highlighter");
frame.getContentPane().setLayout(new BorderLayout());
frame.getContentPane().add(pane.wrapInScrollPane(640, 480));
frame.setResizable(true);
frame.pack();
frame.setLocationRelativeTo(null);
frame.setVisible(true);
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
}
}
One could write a pretty good GLSL syntax highlighter in minutes⌠using basic CSS and simple regex patterns.
Multi-line styling is not (yet) supported, meaning a multi-line comment (like [icode]/* ⌠*/[/icode]) wonât restyle all the lines it should.
Making a actual working Graph logic/rendering system seems pretty hard.
I think it looks nice. Now on to making even more logic!
Nice. Did you get the inspiration from Blenderâs node editor system?
That code brings tears to my eyes, very beautiful and well organized. A single question though: why?