Drunk as fuck

Random irrelevance that just didn't fit into other forums. Talk about anything.

Moderator: Talkative People

Post Reply
User avatar
Falco Girgis
Elysian Shadows Team
Elysian Shadows Team
Posts: 10294
Joined: Thu May 20, 2004 2:04 pm
Current Project: Elysian Shadows
Favorite Gaming Platforms: Dreamcast, SNES, NES
Programming Language of Choice: C/++
Location: Studio Vorbis, AL
Contact:

Drunk as fuck

Post by Falco Girgis »

So Kendall bought a bottle of chapmage, and I just had several beers. I've decided that it's time to sit the fuck down and dev for the day (afer playing Twilight Princess for quite awhile). Just thought that I should mention that the Elysian Shadows engiune is clearly being worked on. If you would like proof, here's my current fun ction I'm working on:

Code: Select all

const static int positionMaxIterations = 100;
	const static float penetrationEpsilon = 0.001f;
	Vector2 pointOfContact, velocityChange[2];
	float rotationAmount[2];
	float maxPenetration;
	int iterations = 0;
	int currentRigidBody = 0;
	int currentContact = 0;

	while(iterations < positionsMaxIterations) {
		maxPenetration = penetrationEpsilon;
		currentRigidBody = -1;

		for(unsigned int i = 0; i < currentLevel->currentArea->rigidBody.size(); ++i) {
			for(unsigned int j = 0; j < currentLevel->currentArea->rigidBody[i]->collisionContact.size(); ++j) {
				if(currentLevel->currentArea->rigidBody[i]->collisionContact[j].penetration > maxPenetration) {
					maxPenetration = currentLevel->currentArea->rigidBody[i]->collisionContact[j].penetration;
					currentRigidBody = i;
					currentContact = j;
				}
			}
		}
		if(currentRigidBody == -1) break;

		//MATCH AWAKE STATE?
		//c[index].matchAwakeState();

		currentLevel->currentArea->rigidBody[currentRigidBody]->collisionContact[currentContact].ApplyPositionChange(velocityChange, rotationAmount);

		for(unsigned int i = 0; i < currentLevel->currentArea->rigidBody.size(); ++i) {
			for(unsigned int j = 0; j < currentLevel->currentArea->rigidBody[i]->collisionContact.size(); ++j) {
				if(currentLevel->currentArea->rigidBody[i]->collisionContact[j].body[0] == currentLevel->currentArea->rigidBody[currentRigidBody]->collisionContact[currentContact].body[0]) {

				}
				else if(currentLevel->currentArea->rigidBody[i]->collisionContact[j].body[0] == currentLevel->currentArea->rigidBody[currentRigidBody]->collisionContact[currentContact].body[1]) {

				}

				if(currentLevel->currentArea->rigidBody[i]->collisionContact[j].body[1]) {
					if(currentLevel->currentArea->rigidBody[i]->collisionContact[j].body[1] == currentLevel->currentArea->rigidBody[currentRigidBody]->collisionContact[currentContact].body[0]) {

					}
					else if(currentLevel->currentArea->rigidBody[i]->collisionContact[j].body[1] == currentLevel->currentArea->rigidBody[currentRigidBody]->collisionContact[currentContact].body[1]) {

					}

				}
			}
		}
	}

I'm not disucussing what the code is or what I'm doing. I'll probably delete this topic when I sober up. =Also, I'm trying to get enough shit done so that I, personally, will be impressed with ESRev2. If I'm not impressedw ith my own work, you arent seeing it. :D
User avatar
Big Grizzle
Chaos Rift Cool Newbie
Chaos Rift Cool Newbie
Posts: 61
Joined: Wed Sep 02, 2009 1:07 pm
Current Project: 2d side scrolling shooter.
Favorite Gaming Platforms: The SNES rules all!!! Super Aleste baby!
Programming Language of Choice: Python
Location: London, UK
Contact:

Re: Drunk as fuck

Post by Big Grizzle »

LMFAO!!!

An unorthodox approach to coding. Nonetheless good luck!
"Simplicity is the ultimate sophistication." - Leonardo da Vinci
http://caveofgrizzle.blogspot.com/
User avatar
hurstshifter
ES Beta Backer
ES Beta Backer
Posts: 713
Joined: Mon Jun 08, 2009 8:33 pm
Favorite Gaming Platforms: SNES
Programming Language of Choice: C/++
Location: Boston, MA
Contact:

Re: Drunk as fuck

Post by hurstshifter »

GyroVorbis wrote: I'll probably delete this topic when I sober up
THIS

lulz
"Time is an illusion. Lunchtime, doubly so."
http://www.thenerdnight.com
User avatar
Milch
Chaos Rift Junior
Chaos Rift Junior
Posts: 241
Joined: Sat Jul 11, 2009 5:55 am
Programming Language of Choice: C++
Location: Austria, Vienna

Re: Drunk as fuck

Post by Milch »

You are not the only one.
I also code everytime I'm drunk :lol:
Follow me on twitter!
User avatar
short
ES Beta Backer
ES Beta Backer
Posts: 548
Joined: Thu Apr 30, 2009 2:22 am
Current Project: c++, c
Favorite Gaming Platforms: SNES, PS2, SNES, SNES, PC NES
Programming Language of Choice: c, c++
Location: Oregon, US

Re: Drunk as fuck

Post by short »

I vote leave it
My github repository contains the project I am currently working on,
link: https://github.com/bjadamson
User avatar
Singleton
Chaos Rift Newbie
Chaos Rift Newbie
Posts: 26
Joined: Tue Jan 05, 2010 10:32 pm
Favorite Gaming Platforms: SNES, PC
Programming Language of Choice: C\++,x86\64 assembly
Location: Maya temple, Brazil
Contact:

Re: Drunk as fuck

Post by Singleton »

GyroVorbis wrote:I'll probably delete this topic when I sober up.
LOL
GyroVorbis wrote:=Also, I'm trying to get enough shit done so that I, personally, will be impressed with ESRev2. If I'm not impressedw ith my own work, you arent seeing it. :D
You really is a sadistic bastard lol
What a funny looking child... Wait, it's a dog!
User avatar
avansc
Respected Programmer
Respected Programmer
Posts: 1708
Joined: Sun Nov 02, 2008 6:29 pm

Re: Drunk as fuck

Post by avansc »

^, or just someone that wants to be proud of their work?
Some person, "I have a black belt in karate"
Dad, "Yea well I have a fan belt in street fighting"
User avatar
RyanPridgeon
Chaos Rift Maniac
Chaos Rift Maniac
Posts: 447
Joined: Sun Sep 21, 2008 1:34 pm
Current Project: "Triangle"
Favorite Gaming Platforms: PC
Programming Language of Choice: C/C++
Location: UK
Contact:

Re: Drunk as fuck

Post by RyanPridgeon »

Jesus, Mary and Joseph.
Ryan Pridgeon
C, C++, C#, Java, ActionScript 3, HaXe, PHP, VB.Net, Pascal
Music | Blog
User avatar
trufun202
Game Developer
Game Developer
Posts: 1105
Joined: Sun Sep 21, 2008 12:27 am
Location: Dallas, TX
Contact:

Re: Drunk as fuck

Post by trufun202 »

Damnit! I miss drunken coding. It's always fun to leave myself comments for the next day. ;)
-Chris

YouTube | Twitter | Rad Raygun

“REAL ARTISTS SHIP” - Steve Jobs
User avatar
programmerinprogress
Chaos Rift Devotee
Chaos Rift Devotee
Posts: 632
Joined: Wed Oct 29, 2008 7:31 am
Current Project: some crazy stuff, i'll tell soon :-)
Favorite Gaming Platforms: PC
Programming Language of Choice: C++!
Location: The UK
Contact:

Re: Drunk as fuck

Post by programmerinprogress »

I tried to code drunk infront of friends once... the code didn't work but my friends were actually relatively impressed I could focus on keyboard still :lol:
---------------------------------------------------------------------------------------
I think I can program pretty well, it's my compiler that needs convincing!
---------------------------------------------------------------------------------------
And now a joke to lighten to mood :D

I wander what programming language anakin skywalker used to program C3-PO's AI back on tatooine? my guess is Jawa :P
User avatar
Lord Pingas
Chaos Rift Regular
Chaos Rift Regular
Posts: 178
Joined: Thu Dec 31, 2009 9:33 am
Favorite Gaming Platforms: NES, SNES, Nintendo 64, Dreamcast, Wii
Programming Language of Choice: C++
Location: Hiding In My Mum's Basement With My Pokemon Cards

Re: Drunk as fuck

Post by Lord Pingas »

Shit, I got to try that. :shock:
User avatar
zeid
Chaos Rift Junior
Chaos Rift Junior
Posts: 201
Joined: Fri Apr 24, 2009 11:58 pm

Re: Drunk as fuck

Post by zeid »

I'll probably delete this topic when I sober up.
... Am I to assume your still not sober. Good effort :)
I tried to code drunk infront of friends once... the code didn't work but my friends were actually relatively impressed I could focus on keyboard still
I once coded up something for a uni assignment absolutely shitfaced (1st year shannanigan). It was a fair amount of lines, and because I couldn't get it to compile I just kept typing. After falling off my chair because the damn room wouldn't hold still I decided that I wasn't going to be able to get it to work in that state. I came back to it the next day with a nasty hangover and was actually pretty impressed that my errors were a couple of missing semi-colans, and an inability to spell things the same twice, but somehow my logic and syntax was perfect. I made a few little corrections and saved myself an afternoon of coding headaches... Substituted with a real headache.

This bizzare anomily is not undocumented; Ballmer Peak

But remember kids, coding drunk is bad, falling off your chair hurts and no one likes waking up to find out they did something they would regret... Like posting on a forum about how drunk you are :P
Axolotl Pop!
Image
Or, try it for free.

For many more free games online visit www.sam-zeid.com
User avatar
Innerscope
Chaos Rift Junior
Chaos Rift Junior
Posts: 200
Joined: Mon May 04, 2009 5:15 pm
Current Project: Gridbug
Favorite Gaming Platforms: NES, SNES
Programming Language of Choice: Obj-C, C++
Location: Emeryville, CA
Contact:

Re: Drunk as fuck

Post by Innerscope »

zeid wrote: This bizzare anomily is not undocumented; Ballmer Peak

But remember kids, coding drunk is bad, falling off your chair hurts and no one likes waking up to find out they did something they would regret... Like posting on a forum about how drunk you are :P
Oh yes, a blood alcohol concentration level of .1337% that's about a six pack of beer. :)
Current Project: Gridbug
Website (under construction) : http://www.timcool.me
User avatar
eatcomics
ES Beta Backer
ES Beta Backer
Posts: 2528
Joined: Sat Mar 08, 2008 7:52 pm
Location: Illinois

Re: Drunk as fuck

Post by eatcomics »

Now you see there's a curve to this... ok, so there is a specific point at which one's BAC is perfect for coding... So you can't just give a programming team a year's worth of beer and say get to coding... You have to control the experiment. But alcohol can be good for coding :D
Image
User avatar
MrDeathNote
ES Beta Backer
ES Beta Backer
Posts: 594
Joined: Sun Oct 11, 2009 9:57 am
Current Project: cocos2d-x project
Favorite Gaming Platforms: SNES, Sega Megadrive, XBox 360
Programming Language of Choice: C/++
Location: Belfast, Ireland
Contact:

Re: Drunk as fuck

Post by MrDeathNote »

Drunk coding is such a bad idea. I've tried it quite a few times because i keep convincing myself that ill do a better job than the time before, never really works out. I always wake up, look at my code and wonder how a retarded chimp got into my room and danced all over my keyboard because thats the only way my code got that fucked.
http://www.youtube.com/user/MrDeathNote1988

Image
Image

"C makes it easy to shoot yourself in the foot. C++ makes it
harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup
Post Reply