[QUOTE=Loli;27698038]I got it working with both Java and Mono :smug:[/QUOTE]
Mind explaining how to use it with mono?
I have given up on using it with java
[QUOTE=Downsider;27689041]Some of my first real projects were on the PSP..
[media][URL]http://youtube.com/watch?v=7GaDMSTLWfs[/URL][/media]
[media]http://www.youtube.com/watch?v=dwI0GNmu08M[/media]
Very excited to see the new PSP cracked, I loved the old PSP development scene.[/QUOTE]
Wow, you should totally keep working on the first one, if not for PSP, then for PC or else.
I've spent the past hour or so trying to do a fun exercise in C++. I present the "rushed C# style properties for C++". It's actually not a good idea to use this, as it's probably slower than writing a custom get and set for each member. I wrote all of this in about a half hour, and the rest of my time has been trying to get the protected set and protected get to work
Anyways, here's the header (so far)
[cpp]
#include <tr1/functional>
template <typename T>
class default_get {
public:
T operator ()(T& value) {
return value;
}
};
template <typename T>
class default_set {
public:
virtual ~default_set(void) { }
virtual T& operator ()(T& value) {
this->value = value;
return this->value; }
protected:
T value;
};
template <typename T>
class property {
public:
typedef std::tr1::function<T(T&)> set;
typedef std::tr1::function<T(T&)> get;
property(const T& value,
const get& getter=default_get<T>(),
const set& setter=default_set<T>())
: value(value), getter(getter), setter(setter) { }
property(const get& getter=default_get<T>(),
const set& setter=default_set<T>())
: getter(getter), setter(setter) { }
property(const property<T>& copy) : value(copy.value) { }
get& get_getter(void) { return this->getter; }
set& get_setter(void) { return this->setter; }
property<T>& operator =(property<T>& right) {
T get_val = right.getter(right.value);
this->value = setter(get_val);
return *this;
}
property<T>& operator =(T& right) {
this->value = setter(right);
return *this;
}
operator T(void) {
return this->getter(this->value);
}
private:
get getter;
set setter;
T value;
};
[/cpp]
And here's an example (albeit, an extremely ugly one) with clang's C-Blocks
[cpp]
#include <iostream>
#include "property.hpp"
int main(void) {
property<int> x(4);
property<int> y(^int(int& arg) {
std::cout << "returning: " << arg << std::endl;
return arg;
},
^int(int& arg) {
std::cout << "setting: " << arg << std::endl;
return arg;
});
y = x;
std::cout << x << std::endl;
}
[/cpp]
And the output of the above
[code]
setting: 4
4
[/code]
Is it bad if everything I know about programming I learned from Roblox back in the day?
[editline]27th January 2011[/editline]
Scripting in Lua
Hey,
I'm so happy everything finally works :D
For example, 2^512:
[img]http://anyhub.net/file/1CKI-160ed04ffefc353154c51be8e41d9aa0b19f7989.png[/img]
after bouncing around 20-30 different names, I think we've got a name (at least a temporary one) for our Android game. We're going to poll a lot of people at my school and ask them if a game with that name sounds interesting. I'll post it here if it goes well, otherwise, back to the drawing board.
It's like coming up with the name is harder than the actual coding...
[QUOTE=Richy19;27697979]How the hell do you guys get android development working?
I failed miserably everytime i tried :([/QUOTE]
It's easy to get working, especially so if you use Eclipse and the Android Eclipse plugin.
[url]http://developer.android.com/guide/tutorials/hello-world.html[/url]
Follow every step in that.
I finished my android particle sandbox last night, really pleased with it. I'll make a video of it today. I want to get it up on the market but there's so much shit to wade through (merchant account, market account - taking ages for them to complete my registration).
Oh and every time I try and upload my completed apk, I get this "unable to parse response" shit about if my browser has a JSON addon. I've tried it in firefox and chrome now and niether work. I've found quite a few forum threads with people with the same problem yet there seems to be no solutions anywhere.
As someone who has never read a programming book and (almost) never read a tutorial and never reads code, I don't know what exactly "particles" are.
Are particles just members (if that's what they're called) of a class that update their position, rotation, size, color, whatever according to some constants and then get drawn as either images or.. whatever on the screen? Or is there some other magic going on there?
I should really get a C++/C# book..
You won't find particles in a general programming book, it's a term used in CG to describe a kind of special effect that consists of multiple, usually smaller, models or sprites with rather simplistic behavior.
[url]http://en.wikipedia.org/wiki/Particle_system[/url]
[QUOTE=limitofinf;27704048]Hey,
I'm so happy everything finally works :D
For example, 2^512:
[img_thumb]http://anyhub.net/file/1CKI-160ed04ffefc353154c51be8e41d9aa0b19f7989.png[/img_thumb][/QUOTE]
That is some bigass number you got there sir.
Also why does it say:
num = num oO
[QUOTE=s0ul0r;27710784]That is some bigass number you got there sir.
Also why does it say:
num = num oO[/QUOTE]
Because 2^512 is not an actual number, so I would assume that it's going to calculate the final result.
Hey,
[QUOTE=s0ul0r;27710784]That is some bigass number you got there sir.
Also why does it say:
num = num oO[/QUOTE]
It's evaluating it step by step, like this:
[img]http://anyhub.net/file/1Dd5-90d036a0342cfc24b8d48705ca050d4ffbc972be.png[/img]
Now, you might argue that there is nothing to "evaluate" about a number, but it's just a proof of concept at the moment so no big deal.
[QUOTE=T3hGamerDK;27710905]Because 2^512 is not an actual number, so I would assume that it's going to calculate the final result.[/QUOTE]
No, look it says
13407...
= 13407...
I think it's because there is no algebra (x,y,z etc) to put in. Normally it might say,
(x-1)(x+2) = x^2 + 2x - x -2 or what ever.
I got multi-map functionality to work! The world-map works as well, and I'm very pleased with the result. You can now move between maps, and the world-map gets updated every time you do so, so you can track your progress across the world.
[media]http://www.youtube.com/watch?v=X_SoC5va6Gc[/media]
In the world-map display, the available maps are bullets, and the map you're currently in is a bold bullet. If you enter a new map, the one you were previously in gets underlined so that you can keep track of where you've been.
[QUOTE=spear;27712240]I got multi-map functionality to work! The world-map works as well, and I'm very pleased with the result. You can now move between maps, and the world-map gets updated every time you do so, so you can track your progress across the world.
[media]http://www.youtube.com/watch?v=X_SoC5va6Gc[/media]
In the world-map display, the available maps are bullets, and the map you're currently in is a bold bullet. If you enter a new map, the one you were previously in gets underlined so that you can keep track of where you've been.[/QUOTE]
Is there any diagonal movement? I couldn't see any so I couldn't be sure....
[QUOTE=BlkDucky;27712671]Is there any diagonal movement? I couldn't see any so I couldn't be sure....[/QUOTE]
Pressing a combination of two non-opposite arrow keys gives the impression of diagonal movement - you can go diagonal in one "move" that way, but it's not truly diagonal. If I were to implement diagonal movement (which might happen later on), I'd probably end up using different keys to control movement (ex. wasd with q, e, z, and c). That might get pretty ugly, though... Come to think of it, adding diagonal movement with the arrow keys might work - I'm just a bit ambivalent about it because I don't know how keyboard input is registered/if two keys can be registered at the exact same moment. I think they can, but I'll have to test it out and play around with it.
Numpad is the best movement thing for things.
Finished my Android sandbox game this morning, here's a video I just made.
[media]http://www.youtube.com/watch?v=ceASwmgIARE[/media]
I'll be getting it on the market ASAP.
[QUOTE=Jallen;27713589]Finished my Android sandbox game this morning, here's a video I just made.
[media]http://www.youtube.com/watch?v=ceASwmgIARE[/media]
I'll be getting it on the market ASAP.[/QUOTE]
You have quite small fingers, either that or a large phone.
Also, nice.
[QUOTE=ace13;27713648]You have quite small fingers, either that or a large phone.
Also, nice.[/QUOTE]
It's a 7" tablet. My hands are big lol.
[QUOTE=Jallen;27713589]Finished my Android sandbox game this morning, here's a video I just made.
[media]http://www.youtube.com/watch?v=ceASwmgIARE[/media]
I'll be getting it on the market ASAP.[/QUOTE]
Goddamn i need a new phone. My old one broke so i don't have an excuse anymore, or rather, i do. :v:
Okay guys, which idea sounds better:
Medieval Jetpack Party - Amateur Jetpack Knight
or
Soviet Hovercraft in Vegas
Medieval Jetpack Party in Soviet Vegas
[QUOTE=Jallen;27714265]Medieval Jetpack Party in Soviet Vegas[/QUOTE]
With hovercrafts, too?
In soviet vegas, jetpack party medieval hovercraft YOU!
..that doesnt make any sense
Started screwing around with mercurial, anyone had any particularly poor experiences with it?
Sorry, you need to Log In to post a reply to this thread.