Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - zorexx

Pages: [1]
1
Hello everyone,

Since SFML 2 will be released soon, and with the change in the naming convention, I thought this would be a good time to update all my 3 SFML projects - SFMLTheora, sfMod, and sfMidi.

Of course, I will have to change the code to reflect the changes in SFML 2, I will also change my naming convention to follow SFML2.

Aside from that, there are few changes I'm considering, mostly general stuffs which has nothing specific to any of the 3 libraries.


1. Exception handling:
I used to hate these try-catch stuffs since they were a hassle and can get really messy and meddlesome at times, but recently after programming in C# and Java, I find that they aren't that bad at all, and can be really handy at times.

Currently, the 3 libraries handle errors by simply returning false. I've definitely faced some design problems since constructors can't have a return value, but those were somewhat solved without much problem. (I did know that exceptions could easily solve my problem, but as I mentioned above, I didn't like exceptions at that time).

The drawback to this is that I can't get more info on the error (i.e. why it failed). While this may not be a problem for most case, I do think it will prove to be very useful for debugging purposes. (I debug by placing std::cout<<123 or std::cout<<"lol"; at suspicious places all this time  ;))

I'm not too sure about this, but with exceptions, the code on the user-end would probably look much cleaner and organized (at least I hope it will be).
However, it will also, at the same time, make your code longer:
Code: [Select]
if (!vid.Load("video.ogg"))
  return 1;
will become
Code: [Select]
try {
  vid.Load("video.ogg")
}
catch (exception ex) {
  // handle exception
}

So, tell me which do you prefer (and would like to see in the next version of the 3 libraries above, as well as any future SFML projects I may write) by voting above, and if possible, tell me your reasons, or at least say something about it.  :D


2. Namespace
Currently, the namespaces I use for each projects are their respective project names, SFMLTheora for SFMLTheora, sfMod for sfMod, sfMidi for sfMidi.

I've been thinking of changing SFMLTheora to something shorter, and might as well shorten the other 2 as well (or are they good enough as is?)

Here are what I currently have in mind:
- sfth for SFMLTheora
- sfmo for sfMod
- sfmi for sfMidi

Another alternative for sfMod and sfMidi would be sfmod and sfmidi respectively, which do you prefer?

Edit: Another suggestion by Nexus for the namespace of SFMLTheora: sftheora
If I decide to go with sftheora, I will most probably change the project name to sfTheora as well, to match the namespace and the other 2 libraries.

It would be great if I can hear some opinions on this as well, especially for sfmo and sfmi.

2
SFML projects / SolidShaper + Box2D + SFML
« on: March 20, 2012, 06:19:00 pm »
So, I wrote an application a while ago (SolidShaper: http://www.zorexxlkl.com/solidshaper), and I'm currently working on a sample for it which uses SFML and Box2D.

Basically it's an application that allows you to create shapes for use in collision detection/physics engines. In other words, with this application, you can create shapes directly for your physics engine without using some workarounds like loading from svg files.

This sample demonstrates loading shape from an ssf file into Box2D bodies and displaying it with SFML shapes.
Properties for bodies and shapes can be set from SolidShaper directly, including density, friction, color, etc.

Here's a video of it in action:


Source code available here:
http://www.zorexxlkl.com/files/downloads/SSFBox2DTest-1.0.1.zip

3
SFML projects / sfMidi 1.1 - Play MIDI in SFML
« on: February 24, 2012, 07:18:33 pm »
What is sfMidi?
sfMidi is a static library for playing MIDI files with SoundFont 2 in SFML.
sfMidi uses FluidSynth (http://sourceforge.net/apps/trac/fluidsynth/) to load SoundFont 2 and MIDI files.

GitHub repository:
https://github.com/eXpl0it3r/sfMidi

Hand over to new maintainer:
After a long period of inactivity, I have decided to hand over this project to eXpl0it3r.
Please checkout the GitHub repository for the latest updates on this project.

(click to show/hide)

4
SFML projects / sfMod 1.1 - Play module files in SFML
« on: October 29, 2011, 12:59:42 pm »
What is sfMod?
sfMod is a static library for playing module files (tracker musics) in SFML.
sfMod uses libmodplug, and can play any format that is supported by libmodplug.

GitHub repository:
https://github.com/eXpl0it3r/sfMod

Hand over to new maintainer:
After a long period of inactivity, I have decided to hand over this project to eXpl0it3r.
Please checkout the GitHub repository for the latest updates on this project.

5
SFML projects / sfTheora 1.4 - Play videos in SFML
« on: March 25, 2011, 05:07:27 am »
What is sfTheora?
sfTheora (previously known as SFMLTheora) is a static library for loading and playing Theora videos on SFML with the help of libtheoraplayer (http://libtheoraplayer.sourceforge.net/).

GitHub repository:
https://github.com/eXpl0it3r/sfTheora

Hand over to new maintainer:
After a long period of inactivity, I have decided to hand over this project to eXpl0it3r.
Please checkout the GitHub repository for the latest updates on this project.

6
SFML projects / Suol - A Puzzle Game, Completed and Released!
« on: March 02, 2011, 05:48:18 pm »




Introduction:
Suol is a puzzle game. The game Suol takes place in the afterlife. After seeing so many people having troubles passing on due to regrets and negative feelings binding them to Earth, Suol decides to help them by talking to them and "solving" their problems.

The player will take control of Suol and help people pass on by solving their "Puzzle of the Heart".


Blog post link:
http://www.zorexxlkl.com/2011/03/suol-completed-and-released.html


Updates:
27/3/2011: Fixed a bug (game exploit, noticeable in Suol, Part Two, and Suol, Part Four)


Download:
Installer (Recommended):
http://hotfile.com/dl/114020851/b6fdaed/Suol.exe.html

Zip Package:
http://hotfile.com/dl/114020783/165d9cc/Suol.zip.html


Screenshots:






Pages: [1]