Search found 12 matches

by Xeno
Thu Jul 28, 2011 6:09 pm
Forum: Programming Discussion
Topic: My Own Lua Graphics Thing
Replies: 29
Views: 5114

Re: My Own Lua Graphics Thing

I'm wondering if a Lua compiler would be possible. Not something like luac, that just turns the Lua code into bytecode, which the interpreter does anyways. I'm thinking something like ghc. Wouldn't that make Lua just as fast as C? HELL. FUCKING. NO. There's more to speed than just turning something...
by Xeno
Tue Sep 14, 2010 11:40 am
Forum: Programming Discussion
Topic: .bin to .iso
Replies: 5
Views: 637

Re: .bin to .iso

I'm not 100% sure, but I think you can just create a new text file in the following format:

Code: Select all

FILE “theNameOfYourFile.bin” BINARY
TRACK 01 MODE1/2352
INDEX 01 00:00:00
and save it as a .cue
by Xeno
Mon Sep 13, 2010 12:27 pm
Forum: Programming Discussion
Topic: .bin to .iso
Replies: 5
Views: 637

Re: .bin to .iso

bchunk is the tool you're looking for in order to convert a .bin & .cue into an iso.

sudo apt-get install bchunk if you're on debian / ubuntu.
by Xeno
Mon May 31, 2010 10:04 pm
Forum: Programming Discussion
Topic: Debug class
Replies: 6
Views: 751

Re: Debug class

I believe that when using variadic functions there must be at least one other parameter to the function, however you could change your dbg.print to act like printf by making the first argument a string which holds placeholders such as %s, then you can use vsnprintf to automagically replace the place...
by Xeno
Mon May 24, 2010 6:16 am
Forum: Programming Discussion
Topic: SDL VS SFML
Replies: 25
Views: 2825

Re: SDL VS SFML

SFML may be written in c++ but it's just as easy to incorporate SDL into a c++ project in an OO manner. You will see yourself writing wrapper classes that look similar to SFML. Also for everyone saying SDL only has software rendering, well you can pass the SDL_HWSURFACE flag to change that, or alte...
by Xeno
Mon May 24, 2010 4:04 am
Forum: Programming Discussion
Topic: SDL VS SFML
Replies: 25
Views: 2825

Re: SDL VS SFML

It's personal preference imo. SFML may be written in c++ but it's just as easy to incorporate SDL into a c++ project in an OO manner. Also for everyone saying SDL only has software rendering, well you can pass the SDL_HWSURFACE flag to change that, or alternatively the SDL_OPENGL flag, and then use ...
by Xeno
Sat Sep 26, 2009 9:18 am
Forum: Programming Discussion
Topic: How do I get rid of stdafx.h?
Replies: 6
Views: 809

Re: How do I get rid of stdafx.h?

I've not used Visual Studio with c++ but try adding:

Code: Select all

using namespace std;
or put std:: infront of the cout / cin

Code: Select all

#include <iostream>

int main()
{
   std::cout << "Hello World!\n";
   std::cin.get();
   return 0;

}
Edit: I was beaten to it :P
by Xeno
Thu Sep 24, 2009 2:40 am
Forum: Game Development
Topic: Ace of Space - First Full C++/SDL Game
Replies: 42
Views: 5650

Re: Ace of Space - First Full C++/SDL Game

Awesome game, definitely my favourite out of the entries :) It is a pain to compile on Linux though, as some of your includes have lowercase names, whereas the actual filenames start with uppercase, also the resources folder is missing from the source so even after I got it to compile on Linux it se...
by Xeno
Tue Aug 11, 2009 10:54 pm
Forum: General/Off-Topic
Topic: math hw question
Replies: 15
Views: 1056

Re: math hw question

I thought I would have a go at this, although my method was similar to Avansc's I figured it might help out to post how I did it. Ok, so firstly I made a diagram like so: http://img190.imageshack.us/img190/7893/poolqwj.jpg Since the question tells you the pool's area is 1800m^2 then you know that L*...
by Xeno
Sun Jul 26, 2009 12:06 pm
Forum: General/Off-Topic
Topic: Hello World
Replies: 5
Views: 886

Re: Hello World

Linux FTW! though I'm not a huge fan of KDE. I've got ubuntu on my desktop (with awesomeWM) and also an ubuntu file server with 128MB RAM that doesn't run X11 :P Anyway, have fun with your server & Linux. Personally I think it's way better than Windows the only problem being alot of programs I u...
by Xeno
Tue Jul 07, 2009 9:33 pm
Forum: General/Off-Topic
Topic: Official "Hello, World! (I'm new!)" thread
Replies: 821
Views: 624176

Re: Official "Hello, World! (I'm new!)" thread

maybe destructable terrain since that looks pretty fun. It is. But finding an efficient fill algo [for circles, to fill in 'transparent'] can be a real pain. I did this once; I actually had a 32x32 map that I scaled up to 640x480, shooting a projectile created a hole in the map. I wound up doing pe...
by Xeno
Thu Jul 02, 2009 1:17 pm
Forum: General/Off-Topic
Topic: Official "Hello, World! (I'm new!)" thread
Replies: 821
Views: 624176

Re: Official "Hello, World! (I'm new!)" thread

Hello, I've been following the AiGD series and lurking the forums for some time now but this is my first time posting. After being somewhat inspired I learned the basics of SDL and made a simple pong clone (emphasis on simple) with pseudo-realistic physics which is available here for Linux and Windo...