Dont Sleep by PhoenixofForce
You are a tired programmer on the evenening before the next DudumLare. You have to stay awake, so that you can find out the theme the moment it gets announced.

Controls
With the mouse, its a point and click. The bar on the bottom center shows you how tired you are. The buttons on the left and right move the camera. Interactable objects gets hightlighted yellow. Left click to interact. The top center texts is what the character says.
Notes
- MAC Version might not work (because of the OpenGL version)
- ~~You need at least Java 17~~ I added versions that come with a Java17 version included, i dont know if they work for linux or mac tho (Please tell me if you try it)
- If you have different fps than 60 and run into problems, tell me and i will fix it
- This game was done to the current state of my engine
- Yes, theres no sound
- I forgot to delete a file from Kenney but its unused
Ratings
| Given | 100🗳️ | 100🗨️ |
@holyblackcat That is definitely one of my best animations xD
@spthiel I heard that too
@baily Done
Thank you all for playing :D
So other people dont have to i added versions that come with an java version included.
I dont know if the mac and linux versions work tho.
@arfilish My interpretation of the was that sleep is inevitable and your delaying your sleep to stay awake for the theme announcement. (the jam always starts at 3am were i live)
@cubzer Your welcome, glad that its working ^^ Finding fake names is always fun :D
I imagine it wasn't intentional?
EDIT: I tried to capture the graphics moving off the bottom of the screen, but they weren't as slow as I thought. See how they are almost gone?
Wait i have an idea
EDIT:
So i had some debug controlls in. If you press A/D or use the left stick of a gamepad the camera moves up and down. That could be the cause of the problem
So maybe try removing the gamepad if you have one connected. And avoid A/D ^^
The post above has maybe a fix for the problem, i could also upload a fixed version, if it still does not work.
@sayurinyooko Thank *you* for playing.
"What is coyote time?" Haha! I think my mistake was reading a book instead of dancing more, but I made it to 02:16 my second time.
I love the goofy and fun animations.
I wish I had a better idea of what effect each action was having, but maybe that's part of the game is trying again and again and seeing what works and what not to do.
Thanks for trying and for trying again tomorrow
Thanks for playing :D
Too bad there is no sound and music because other feature is very good.
Thanks for playing :)
This is so relatable which makes the game fun to play, it simple but sweet.
Good Job!
@jni Thank you :) Yeah A/D were debug controlls i forgot to remove ^^'
* run the command line there (Shift righ-click "Run ComamndLine" or "Run Powershell" or something like that)
* copy paste the code in the .bat file "jdk-17.0.2\bin\java.exe -jar DontSleep.jar"
You *should* get an error message display. Hopefully i can figure out why with it.
```
PS C:\Users\lsl\Downloads\DontSleep_Windows_w_Java> jdk-17.0.2\bin\java.exe -jar DontSleep.jar
Hello LWJGL 3.3.0 build 21!
Compile error at particle fragment shader: Fragment shader failed to compile with the following errors:
ERROR: 0:48: error(#132) Syntax error: "f" parse error
ERROR: error(#273) 1 compilation errors. No code generated
Matrices start with: 0
Textures start with: 10
Floats start with: 20
Vec3f start with: 40
Vec4f start with: 60
Exception in thread "main" java.lang.RuntimeException: Invalid Operation (1282)
at window.Window.testOpenGLError(Window.java:216)
at window.Window.loop(Window.java:156)
at window.Window.run(Window.java:55)
at Main.main(Main.java:6)
PS C:\Users\lsl\Downloads\DontSleep_Windows_w_Java>
```
@ukulelefury Thanks. I think i got it. Google told me that some pcs dont like when i declare like "2f" and have to write "2.0" instead :rolling_eyes:
So i changed all my shaders and uploaded them again:
https://github.com/PhoenixofForce/Ludum_Dare_50/releases/tag/v0.5.1
* Download the "alternate_shader.zip"
* delete the *normal* shader folder located in "res/" (so delete "res/shader" or the contents)
* unzip "alternate_shader.zip"
* move the unziped "shader"-Folder (not the "alternate-shader"-Foler) where you deleted the other (do it with the files instead, if you deleted the contents)
```
PS C:\Users\lsl\Downloads\DontSleep_Windows_w_Java> jdk-17.0.2\bin\java.exe -jar DontSleep.jar
Hello LWJGL 3.3.0 build 21!
Compile error at default vertex shader: Vertex shader failed to compile with the following errors:
ERROR: 0:21: error(#202) No matching overloaded function found: textureSize
ERROR: 0:21: error(#160) Cannot convert from: "const float" to: "highp 2-component vector of vec2"
ERROR: error(#273) 2 compilation errors. No code generated
Compile error at text vertex shader: Vertex shader failed to compile with the following errors:
ERROR: 0:27: error(#202) No matching overloaded function found: textureSize
ERROR: 0:27: error(#160) Cannot convert from: "const float" to: "highp 2-component vector of vec2"
ERROR: error(#273) 2 compilation errors. No code generated
Compile error at sleepbar vertex shader: Vertex shader failed to compile with the following errors:
ERROR: 0:21: error(#202) No matching overloaded function found: textureSize
ERROR: 0:21: error(#160) Cannot convert from: "const float" to: "highp 2-component vector of vec2"
ERROR: error(#273) 2 compilation errors. No code generated
Compile error at sleepbar fragment shader: Fragment shader failed to compile with the following errors:
ERROR: 0:25: error(#202) No matching overloaded function found: textureSize
ERROR: 0:25: error(#160) Cannot convert from: "const float" to: "highp 2-component vector of vec2"
ERROR: error(#273) 2 compilation errors. No code generated
Matrices start with: 0
Textures start with: 10
Floats start with: 20
Vec3f start with: 40
Vec4f start with: 60
Exception in thread "main" java.lang.RuntimeException: Invalid Operation (1282)
at window.Window.testOpenGLError(Window.java:216)
at window.Window.loop(Window.java:156)
at window.Window.run(Window.java:55)
at Main.main(Main.java:6)
PS C:\Users\lsl\Downloads\DontSleep_Windows_w_Java>
```

I also appreciate the build w/ Java :)
Great graphics, I like your pixel art, and the fun texts! :wink:
@srynetix Yeah, 3am is always tough. I always start in the morning tho (when i start) ^^
@ollie-d Haha, i thought that would be a funny "easter egg" to add if time was left. And it was : D
Glad you all had fun c:

A chill soundtrack would have made it perfect. I still like it. Especially the art. Keep it up!
@pierce-brooks Yeah, its in good shape, but still got a lot to Do : D Thanks for playing
@seng Sadly currently neither my engine nor my skills allow music :( But its coming. Glad you had Fun tho ^^

Still, had a great time, very chill, great job. Making your own engine is super impressive
@vilix64 Thanks for the info :) I gotta keep that in mind for future releases
@scrawny Yeah, i got this too when developing but figured it would not be that important to fix. I hope it was not too distracting ^^'
@fosf0 @real-flamingicecubegames @thegameoverguy Thank you all for playing and giving feedback : D
I expected that A and D on the keyboard would move the camera sideways, but instead it moved the camera up and down for me? This was a bit odd, but luckily there were the buttons on the screen I could use.
I am also always impressed when people use their own engine. I cannot imagine what kind of trouble it must be to go through all that when I already have a lot of trouble using a pre-made engine >.< Very nice submission to the jam! I had a lot of fun :D
@wuppos Yeah ^^' i gotta remember to remove debug controls for the future. And i definetly had no problems at all rendering a simple square :slight_smile:
Thanks to you for playing
```
PS C:\Users\lsl\Downloads\DontSleep_Windows_w_Java> jdk-17.0.2\bin\java.exe -jar DontSleep.jar
Hello LWJGL 3.3.0 build 21!
Matrices start with: 0
Textures start with: 10
Floats start with: 20
Vec3f start with: 40
Vec4f start with: 60
Exception in thread "main" java.lang.RuntimeException: Invalid Operation (1282)
at window.Window.testOpenGLError(Window.java:216)
at window.Window.loop(Window.java:156)
at window.Window.run(Window.java:55)
at Main.main(Main.java:6)
PS C:\Users\lsl\Downloads\DontSleep_Windows_w_Java>
```