So you wrapped X windows?
Excellent.
So you wrapped X windows?
Excellent.
It's Sublime Text 2 with the Soda Dark theme and Monokai Dark Soda color scheme. The font is Ubuntu Mono.
Whenever I have to do anything with X, I look at the SFML source. It is way more informative and useful than the "documentation".
I noticed a map piece position generation error that caused alot of troubles with collisions and some more stuff, so it actually took a while to figure out how to change the vertice generation. Now to figure out how to create 4 bounding boxes around the player, each turning when the player moves and each representing a side and then checking on how to move the player. Damn i hate collisions.
Also, is it 'vertice' or 'vertex'? Have i been saying it wrong all the time?
Vertex in singular, vertices in plural.
Well shit![]()
To add on this: The only windowing library that does fullscreen windowing correctly for games is
SDL 2. The rest just steal the focus and break alt+tabbing and whatnot from the window manager, while SDL 2 lets the window manager manage fullscreen support.
Yea... about that:
I'm having some problems with spritebatches in love
Edited:
Those lines are there regardless of the tileset, and whatever I do argegeggehgh
Wrong scaling filter?
Interesting. SDL 1 and SFML 1 & 2 don't do that.
After browsing the source, I saw that GLFW uses the window manager fullscreen method, just like SDL 2.
I love glfw soooo much, its way better then trying to do it my self or having to include a larger project like sdl or sfml.
Try adding 0.5 to every coordinate.
Also, how do I create .webm movies?
Just finished up a script to tell me what song is playing in iTunes.
Github link if you want to fork it or something:
https://github.com/iryw/Playing
To simply say,
1. Record video.
2. Download Miro Video Converter.
3. Use Miro to convert video into WebM.
4. Download Dropbox.
5. Paste video into Dropbox 'Public' folder.
6. Copy video file's public link from Rightclick->Dropbox->Copy Public Link.
7. Paste link in (vid)(/vid) tags. (Replace '()'s with '[]'s)
I found GLFW to be perfect, except for the fact that it doesn't have a function to get the window's position. Weird that the person who made it forgot about that!
Why not write it yourself and make a pull request?
Hopefully it won't come to that. im not good with computer![]()
If you have ffmpeg you can use this:
But seeing as your on windows your probably better getting Miro ConverterCode:#!/bin/sh resolution=460x225 fps=15 ffmpeg -i $1 -f webm -vcodec libvpx -acodec libvorbis -ar 44100 -ab 64000 -b 1000k -r $fps -s $resolution -maxrate 2000k -pass 1 -y /dev/null -async $fps $2.webm ffmpeg -i $1 -f webm -vcodec libvpx -acodec libvorbis -ar 44100 -ab 64000 -b 1000k -r $fps -s $resolution -maxrate 2000k -pass 2 -async $fps $2.webm
I found GLFW to be perfect, except for the fact that it doesn't have any kind of debugging information what so ever. Apparently she's fixed that in v3 though.
What do you need the window position for?
Gonna learn Java the hard way
![]()
Regarding Java, I thought about something.. There's been a lot of talk about Java VM being stack-based (somehow slower?) and Lua and Parrot using register-based VM. So my question is this: Is Java VM faster than Parrot VM? I'm talking about the virtual machines themselves, not the languages that run on them. Because Java has been implemented in Parrot, so if Parrot performs better, I'd totally try programming Java in Parrot, just for the kicks.
We had to do this at school.
Luckily I had gVim and love working on a CLI
Why didn't I use XNA before, it's so nice to use :D Took about 15 minutes to get a teapot loading and drawing with a normal shader. Wonder if XNA 5.0 will be DirectX 10/11... Geometry shaders would be nice.
Vim + CLI = Multilanguage IDE. Works wonders.
Writing a flash screenvideo encoder.
Does anyone have a simpler explanation of this? http://gafferongames.com/game-physic...your-timestep/
I honestly don't think you can get much simpler than that.
I doubt we will ever see XNA 5.0
Here's an alternative explanation?
http://www.koonsolo.com/news/dewitters-gameloop/
I want to go back to java but I know I'll kill myself if I have to deploy anything ever again
I think its the fact he uses t and dt, also does it mean that every drawn object needs to be times by the accumulator?
Edited:
Also started working on a little framework for OpenGL to wrap Image loading (via SOIL), window creation and input(via GLFW) and 3d maths(via GLM).
The result is this:
#include <iostream> #include <soglf/BaseProgram.hpp> #include <soglf/Window.hpp> #include <soglf/WindowSettings.hpp> using namespace SOGLF; class Program : public BaseProgram { public: Program(){} ~Program(){} virtual bool Initialize() { ///Init some stuff here SOGLF::WindowSettingsClass::Settings.Title = "Test Window"; SOGLF::WindowSettingsClass::Settings.Width = 1024; SOGLF::WindowSettingsClass::Settings.Height = 576; SOGLF::WindowSettingsClass::Settings.OGLMajor = 2; SOGLF::WindowSettingsClass::Settings.OGLMinor = 1; ///Initialize base class at the end return BaseProgram::Initialize(); } virtual bool LoadContent() { ///Load content here return true; } virtual void Update() { ///Update stuff here } virtual void Draw() { SOGLF::WindowClass::Window.Clear(); ///Draw stuff here SOGLF::WindowClass::Window.Display(); } }; int main() { Program p; if(p.Initialize()) if(p.LoadContent()) p.Run(); return 0; }
It reminds me of a mishmash between XNA and SFML
Creating a (evil) programming language in Ruby for an assignment.
test.evil:
$ ruby wmd.rb test.evil:Code:plan NoteThat(A, B) print(A, ": ", B, "\n"). finished. NoteThat("Hello", "World"). NoteThat("5+5", 5+5).
(Yes, I know about the redundant string literals in the output. It's because I'm cheating at the moment and running the ruby print function directly)Code:Initializing Weapons of Mass Destruction. Executing file test.evil... Parsing program... Program parses to: #<EvilStatements:0x7f159ac8b228 @statements=[#<EvilPlan:0x7f159acab0a0... Running program. "Hello": "World" "5+5": 10 Stopping system. We hope you enjoyed this bout of world domination.
Edit:
Added static typing and a better parsed program output
test.evil:
$ ruby wmd.rb test.evil:Code:plan Math(string A, int B) print(A, "=", B, "\n"). finished. plan NoteThat(string A, string B) print(A, ": ", B, "\n"). finished. NoteThat("Hello", "World"). Math("5+5", 5+5). NoteThat("5/0.5", 5/0.5). # Will cause a crash
Dunno where all those empty lines are coming from, but it's not that big an issue.Code:Initializing Weapons of Mass Destruction... Executing file test.evil... Parsing program... Program parses to: plan Math(string A, int B) print(A, "=", B, "\n"). finished. plan NoteThat(string A, string B) print(A, ": ", B, "\n"). finished. NoteThat("Hello", "World"). Math("5+5", 5+5.). NoteThat("5/0.5", 5/0.5.). Running program. "Hello": "World" "5+5"=10 ERROR! Mismatching type for argument B; int given, string expected Stopping system. We hope you enjoyed this bout of world domination.
If you ever add numerical literal suffixes make sure you add MILLIONDOLLARS in the mix.
I keep telling you I'll show you how to properly deploy
First publicly-available custom EDGE map:
http://willkirkby.me/uploads/edge/edge_wk_helix.zip
edit: install.txt refers to a file "mapping.xml".. this is inside /levels in the game's install dir.
this is really impressive! are you going to release tools / documentation on how to make these?
I tried to make ambient occlusion, but it came out as some kind of funky border detector:
Guess it needs some more work.
-shnip-