[QUOTE=turb_;22232113]No. Make all those options properties if they aren't already, so you can do shit like:
[code]
new UIMenu {
Left = 0,
Top = 0,
Title = "foobar"'
};
[/code][/QUOTE]
Ok, how would I go about setting up something like this, where you can set properties in the arguments to the constructors? Haven't experienced that before.
[editline]02:37PM[/editline]
Ugh disregard that I misread the { as a (
Null, is it true that you fell into a huge bowl of nootropic soup when you were a baby?
Obelix is a long ancestor of Null, the family's just switched from brawn to brains :P
Once, I sucked a dick. There were no balls to lick because they haven't dropped yet. It was null's.
Wait, what?
[img]http://img684.imageshack.us/img684/1241/level2early.jpg[/img]
An early picture of level 2.
The LÖVE site is (kind of) up, with a new host (me).
For now, only the forums are available.
If you still get redirected to some broken version clear your DNS cache[1] and do a hard refresh in your browser[2].
1: Open cmd.exe and execute the command ipconfig /flushdns (Linux and Mac doesn't have DNS cache)
2: Ctrl+F5
[QUOTE=blankthemuffin;22233353]Once, I sucked a dick. There were no balls to lick because they haven't dropped yet. It was null's.[/QUOTE]
:raise:
I am/was working on a Perlin noise generator. To be honest I used libnoise after I learnt about noise generation, but I wrote my own gradient creator with that supports arbitrary number of colors. I know it is not very complex, but I am still proud of it.
Some pics:
[URL=http://img688.imageshack.us/i/image1vtt.jpg/][IMG]http://img688.imageshack.us/img688/8178/image1vtt.th.jpg[/IMG][/URL]
[URL=http://img156.imageshack.us/i/imageagan.jpg/][IMG]http://img156.imageshack.us/img156/8633/imageagan.th.jpg[/IMG][/URL]
[URL=http://img37.imageshack.us/i/imagebdm.jpg/][IMG]http://img37.imageshack.us/img37/590/imagebdm.th.jpg[/IMG][/URL]
[URL=http://img198.imageshack.us/i/image1fm.jpg/][IMG]http://img198.imageshack.us/img198/1115/image1fm.th.jpg[/IMG][/URL]
These all use the same input, only the colors and values associated with them are adjusted.
Now I am trying to use these to create animations, but the code is quite slow so I might take a go at optimizing it first.
[QUOTE=thelinx;22233847]The LÖVE site is (kind of) up, with a new host (me).
For now, only the forums are available.
If you still get redirected to some broken version clear your DNS cache[1] and do a hard refresh in your browser[2].
1: Open cmd.exe and execute the command ipconfig /flushdns (Linux and Mac doesn't have DNS cache)
2: Ctrl+F5[/QUOTE]
Did those aliens go away? or are they still abducting our server cows?
I'm sorry, I can't hear what you're saying over the sound of warfare right next to me.
Right now, I'm in the LÖVE trenches and we are still under attack by the aliens.
We have reclaimed part of the forums but we still need to make a final push to reclaim the wiki.
That unfortunately wont happen until tomorrow since the rude admiral went missing and left a note he'll be back tomorrow.
We've suffered some casualties in the reclaiming of the forums, such as the avatars all being brutally murdered. Poor souls.
Are any of the STL containers circular? Trying to identify this container. In the loop it checks if the next iterator is the start and ends if it is. So I am assuming it is circular.
[QUOTE=nullsquared;22234037]:raise:[/QUOTE]
Sorry null, you were collateral damage there. I was trying to highlight the frankly ridiculous level of hero worship this section and in particular this thread generates.
Seriously guys, settle down.
[QUOTE=high;22234434]Are any of the STL containers circular? Trying to identify this container. In the loop it checks if the next iterator is the start and ends if it is. So I am assuming it is circular.[/QUOTE]
Nope?
Maybe it's something like a reverse iterator or they are looping from end to front
[QUOTE=high;22234434]Are any of the STL containers circular? Trying to identify this container. In the loop it checks if the next iterator is the start and ends if it is. So I am assuming it is circular.[/QUOTE]
Which container are you trying to identify?
And, no, none of the SC++L (not STL) containers are circular. Boost probably has some, though.
[QUOTE=thelinx;22234327]That unfortunately wont happen until tomorrow since the rude admiral went missing and left a note he'll be back tomorrow.
We've suffered some casualties in the reclaiming of the forums, such as the avatars all being brutally murdered. Poor souls.[/QUOTE]
But my family reside in the wiki! I hope they're ok.. :(
[QUOTE=nullsquared;22232188]You can use XML comments in the code to generate documentation: [url]http://msdn.microsoft.com/en-us/magazine/cc302121.aspx[/url][/QUOTE]
I don't have access to the source code. It's a compiled closed-source API I'm using that I'd like to document manually.
[editline]06:25PM[/editline]
Thanks anyway though.
[QUOTE=r4nk_;22234714]Nope?
Maybe it's something like a reverse iterator or they are looping from end to front[/QUOTE]
Scratch that :P. The list has a reference to the container so that's why. It keeps checking if the element it is on is a pointer to the container.
I think it might be a dictionary though.
Adding a menu to my FPS game. :v:
[QUOTE=Canary;22233693][img]http://img684.imageshack.us/img684/1241/level2early.jpg[/img]
An early picture of level 2.[/QUOTE]
Is the lightning pre-generated or are you using AO?
Also, what engine is that?
[QUOTE=CarlBooth;22236752]I don't have access to the source code. It's a compiled closed-source API I'm using that I'd like to document manually.[/quote]
In that case, I don't really know of anything good :|
I'm working on a 2D games engine, at the moment it's running a little top-down RPG, but it's pretty flexible so I see no reason why you couldn't use it for a platformer too. I KNOW my sprites suck, I've got a friend who is making up some better ones for me, these are just placeholders so I know that my code works.
[img]http://dl.dropbox.com/u/99601/mushroomshot.jpg[/img]
I think the next thing to get working is the sound (Then the inventory, combat and dialouge!) Does anyone know a good way of getting sounds to work in VB.NET? I've never done a project requiring sound before.
My.Computer.Audio.Play(path/to/sound.wav)
I've been playing around with Android-development at the university this week. I've never done any java-programming before but with Eclipse doing everything for me it wasn't really that hard. :v:
My first application was like an alarm, but instead of alarming at a certain time it alarms when you enter a selected area.
I'm using the Google Maps API to show the map, then you just touch and drag to select the target area.
Next week I'm going to create some kind of Friend-Finder application that gives you a message when a friend is in the same area.
PROGRESS PICS ! YAY
[IMG]http://dl.dropbox.com/u/3591152/images/screenshot39.jpg[/IMG]
[IMG]http://dl.dropbox.com/u/3591152/images/screenshot40.jpg[/IMG]
If you look close enough, you may see my shitty water implementation
Sure is Supreme Commander. (Not that there's anything wrong with that)
[QUOTE=s0ul0r;22237457]Is the lightning pre-generated or are you using AO?
Also, what engine is that?[/QUOTE]
It's both I think, in that pick the lighting hadn't been rendered though.
It's on the Unreal 3 Engine.
Fun fact: MSVC supports a - instead of a / for options. This can lead to some amusing things like the following
[code]gcc -o someobjectfile.obj -c somcppfile.cpp[/code]
Replace gcc with cl.exe and you get the same result (an object file :woop:)
On a related note, I'm extremely close to finishing 0.3 for the build system (which fyi, has been renamed bit).
One major change has been the removal of calling and importing python directly. Just create a bitfile in your base directory. In addition, I've removed the word "add" from nearly every function name. No more verbosity!
For instance, in 0.2 you would need to do something like [code]x.add_define('Define1', 'Define2')[/code]
But now do [code]x.define('define1', 'define2')[/code]
I'll be entering testing for msvc shortly, but as of right now cc (gcc, tcc, and pcc) based compilers work almost perfectly. (I say almost because I haven't broken it yet, but I'm sure some of you could)
You can grab the current revision [url=http://github.com/sahchandler/bit]here[/url]
[QUOTE=dezek;22237737]Next week I'm going to create some kind of Friend-Finder application that gives you a message when a friend is in the same area.[/QUOTE]
I don't know if you care, but Google Latitude does that already.
Here's the Text-Based Game:
[code]
#include <stdio.h>
#include <tchar.h>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <cmath>
#include <string>
using namespace std;
string name;
string reply;
char strnew[255];
// Death func
int death();
// The sections
int s1();
int s1torch();
int s1zombie();
int s1pit();
int s1as();
int s2();
int s2back();
int s2wall();
int s3();
// Deciders
int retID(string caseR);
int retID2(string caseR);
int retID3(string caseR);
int retID4(string caseR);
int retID(string caseR)
{
if (caseR == "NORTH" || caseR == "north" || caseR == "North") {
return 1;}
if (caseR == "SOUTH" || caseR == "south" || caseR == "South") {
return 2; }
if (caseR == "WEST" || caseR == "west" || caseR == "WEST") {
return 3; }
}
int retID2(string caseR)
{
if (caseR == "TORCH" || caseR == "Torch" || caseR == "torch") {
return 1;}
if (caseR == "SOUTH" || caseR == "South" || caseR == "south") {
return 2; }
if (caseR == "WEST" || caseR == "West" || caseR == "west") {
return 3; }
if (caseR == "NORTH" || caseR == "North" || caseR == "north") {
return 4;
}
}
int retID3(string caseR)
{
if (caseR == "SOUTH" || caseR == "South" || caseR == "south") {
return 1; }
if (caseR == "WEST" || caseR == "West" || caseR == "west") {
return 2; }
if (caseR == "NORTH" || caseR == "North" || caseR == "north") {
return 3; }
}
int retID4(string caseR)
{
if (caseR == "SOUTH" || caseR == "South" || caseR == "south") {
return 1; }
if (caseR == "WEST" || caseR == "West" || caseR == "west") {
return 2; }
if (caseR == "WALL" || caseR == "Wall" || caseR == "wall") {
return 3; }
}
// greeting
int main()
{
cout << "Greetings! Welcome to the Turnip Role Playing Game! \n I am the Dungeon Master! Let's begin! \n What is your first name? \n";
cin >> name;
system("cls");
cout << "Okay, " << name << ", let's get down to buisness! \n PRESS ENTER TO CONTINUE";
system("pause >Nul");
s1();
}
// First part of the adventure
int s1()
{
system("cls");
cout << "You awake in a dark area. The drip of water fills echos throughout the dark corridor. Your choices to move are North, South, or West.\n <ANSWER IN ALL CAPS, ONE WORD> \n";
cin >> reply;
switch(retID(reply))
{
case 1:
s1torch();
break;
case 2:
s1zombie();
break;
case 3:
s1pit();
break;
default:
cout << "You can't do that!";
system("pause >Nul");
s1();
}
return 0;
}
// TORCH GET :D
int s1torch()
{
system("cls");
cout << "You stumble northward, only to trip on a long object. Upon further investigation, you find out that it is a TORCH. \n You can go NORTH, WEST, SOUTH, or TORCH.\n";
cin >> reply;
switch(retID2(reply))
{
case 1:
s2();
break;
case 2:
s1();
break;
case 3:
s1as();
break;
default:
cout << "You cannot do that!";
system("pause >Nul");
s1torch();
}
return 0;
}
int s2()
{
system("cls");
cout << "You grab the torch and it magically lights up. You can see the stone walls and floors, signifying you're in a dungeon. \n Your options are NORTH, WEST, and SOUTH. \n";
cin >> reply;
switch(retID3(reply))
{
case 1:
s2back();
break;
case 2:
s1pit();
case 3:
s1as();
break;
default:
cout << "You cannot do that!";
}
}
int s2back()
{
cout << "You return back to the room you originally started in. You see a strange indentation in the EAST WALL. \n Your options are SOUTH, WEST, or WALL. \n";
cin >> reply;
switch(retID4(reply))
{
case 1:
s1zombie();
break;
case 2:
s1pit();
break;
case 3:
s2wall();
break;
default:
cout << "You cannot do that!";
}
}
// Death
int s1as()
{
cout << "You head west, leaving the torch behind. You begin to explore the area you are in. Suddenly you hear the sound of a sword unsheathing, and feel someone - or something's - presence. A katana rips through your abdomen, leaving our halved on the floor.";
system("pause >Nul");
death();
}
int s1zombie()
{
system("cls");
cout << "You cautiously walk southbound. You hear a strange moaning from behind you. Before you have a chance to react, a ZOMBIE jumps on top of you. You can feel the flesh being ripped from your bones as you draw your last breath...";
system("pause >Nul");
death();
return 0;
}
int s1pit()
{
system("cls");
cout << "You walk towards the West. You begin to hear the crunch of leaves. \n Just as you begin to wonder why you hear the crunch of leaves in a dark area, you begin to fall. And fall... And fall. \n Your screams of both terror and joy (You did enjoy Ye Olde Rollercoasters as a child) are quashed by spikes at the bottom of the pit.";
system("pause >Nul");
death();
return 0;
}
// Death Func
int death()
{
system("cls");
cout << "Congratulations! You have died. Press enter to return to the beginning!";
system("pause >Nul");
system("cls");
s1();
}
/* CREDITS:
Lead programmer: ME
Troubleshooter: Firehawk
Beta Testers: ME , Michael "Meow" Gervais
*/
[/code]
:biggrin:
Sorry, you need to Log In to post a reply to this thread.