What I did today

Started working on a little project I wanted to do. So far it has a level format, fast renderer (runs at around 5000-6000fps on my machine, uncapped), and more to come.

I posted this…

Added in some nifty frame buffer effects to the RFLEX level select and win/lose screen. I also added in tutorials, since play-testers were confused. Ashedragon finished the first song, named ā€œHandicappedā€.

Sorry for bad recording quality, I’ve been messing with my computer’s graphics. The game itself is silky smooth.

VlV80EzX3oc

In other news, making levels is as tedious as ever :P.

-wes

@wessles Reminds me a little bit in style of super hexagon. That arcadey dodge-all-the-things goodness.

@BurntPizza thank you :). it was my main inspiration for RFLEX, along with the Impossible Game. My best time in Super Hexagon is 314 seconds, which is a full run-through IIRC.

Also accomplished today, 100 medals!

Surely there’s a better escape sequence than ā€˜Ā§ā€™.

It was just the only thing I could think of off-hand that absolutely would never need to actually be displayed on the screen and had a fairly easy to remember ASCII code (ALT+21) :slight_smile:

ASCII alt-codes aren’t cross-platform. You can use any symbol, as long as you have an escape for the symbol itself. (eg: for backslash escape sequences, you use \ to show ā€˜ā€™)

I wouldn’t use backslash though, because then you have to double-escape it in your code (’\\’)

I honestly did not know this, guess that explains why other java games (like minecraft) use characters like the &.

Any suggestions for a clean single character to use, that’s cross platform and never really expected to be displayed on screen?

How about the grave? `

It’s all bits at one point. Once it’s compiled, your String.indexOf(’§’) will just work. Load & save your text-files with the UTF-8 charset, and it’s as cross-platform as it will ever be. There is no reason to limit yourself to ASCII. Having said that, I’d use :heart: as a delimiter.

It actually both, you’re just not seeing the rest of the code. :slight_smile:

The smaller parts of the GUI that’s positions should be absolute to each other are loaded in small groups, and then positioned on the screen with relative values. For example…

masterGUIClass:


render(){
     warningMessage.render(screenWidth/2, screenHeight/2); //Center of the screen at all times, basically.
}

inside warningMessage:

render(float x, float y){
     someElement1(x+15, y+50);
     someElement2(x+132, y+150);
     someElement2(x+126, y+266);
}

The real code is a lot more complicated, but that’s the general idea. So basically everything inside the element is positioned with absolute values, but where the element is rendered is relative. I also have no intention on ever adding a GUI editor. Feature creep and what not. :slight_smile:

(EDIT: Where did the post I replied to go? :o )

Delete it)
I suddenly understand that it will make more time to logical write what I mean relative position,
And don’t what dispute in this thread)
And as I can see you already do it right ^^

  font.drawString(x, y+86, "§YEL1Seriously are"
            + "\nyou §RED1ABSOLUTELY sure?"
            + "\n§WHI0THE OLD GAME WILL BE DELETED", 2, true);
      buttonReally.render(g, mouse, x-43, y+165, debug, false);

relative position == buttonReally Y pos(+165) will be same if text have 1 line or 10
(Or font change, or border Gui or Font Gui offset)
=)

Finally have a nice grasp on Gradle, started rebuilding my personal website and tried harder to learn JavaScript’s different version of OOP. It’s… quite different than anything I’ve ever seen, I hope I’ll have that ā€˜click!’ moment soon when JavaScript actually makes sense.

Also, finally drove my ā€˜new’ car because I have insurance on it now. That was really fun, I’m impressed how well kept it was and how smooth it feels for a used old car! Insurance actually turned out to be not too terrible, it’s $100/month, but my parents are helping me out a little still until I can get a better job and can actually afford all these things. Hopefully my internship wil pay well!

i did renew my intellij idea subscription cos’ it’s a nice piece of software.

I did networking code for my little game I’m making, specifically the handling of new entities, removed entities, and adding the player. Didn’t test once during the 45 minute work period. Worked on second try (first try failed due to forgetting a world instance in Entity was transient). Being able to flag fields that shouldn’t be sent over streams is awesome ;D

I got my pathfinding working ;D …finally

401PVTbL1oA

Delved into Apache Tomcat, and the wide world of Servlets. I feel a little lost, but I’m making headway!

If anyone has any good blogposts or explanations of Servlets or Tomcat, I would definitely throw you a medal :wink:

i did enjoy jetty without the fiddly xml files. look for jetty embedded … like https://wiki.eclipse.org/Jetty/Tutorial/Embedding_Jetty.

just a public static main() and the server.

I was bored and have a headache… so I wrote a tiny template library.
Its only 150 lines of code and does exactly what I want and nothing else.

It turns this:

Hello, %{name}! How are you? I am %{feel}.

Into this:

Hello, You! How are you? I am fine.

Within (edit)0,0003 seconds 2 ms. Not that bad for a first try!

(edit): And now you can look at the nightmare of code I created (just for fun)! http://pastebin.com/QHTbPAys