Join #ludumdare on irc.afternet.org
Ludum Dare 13 :: December 5th-7th Weekend :: Theme :: ???

Sign In | Write your Journal
Home | Planet Ludum | Rules Wiki | Mailing List
Ludum Dare 12 Final Results NOW AVAILABLE

Click HERE for the Ludum Dare 12 entries image grid
(to be included in the image grid, you must upload an image to the blog)


SpaceManiac's Archive

Worlde

Posted by SpaceManiac
Tuesday, October 21st, 2008

http://wordle.net/gallery/wrdl/260205/Ludum_Dare

Some thing that auto-generates word bubbles!

Collisions

Posted by SpaceManiac
Monday, October 6th, 2008

I need help with collision code. I want to keep the player from falling through floors, pretty much. Help?

EDIT: Okay, I’ve got some good collision detection, but there’s something wrong with my moving code.

bool checkCollision(SDL_Rect &movable, double &vx, double &vy, SDL_Rect solid, bool move) {
int moveLeft = movable.x;
int moveTop = movable.y;
int moveRight = moveLeft + movable.w;
int moveBottom = moveTop + movable.h;

int solidLeft = solid.x;
int solidTop = solid.y;
int solidRight = solidLeft + solid.w;
int solidBottom = solidTop + solid.h;

int clipLeft = max(moveLeft, solidLeft);
int clipTop = max(moveTop, solidTop);
int clipRight = min(moveRight, solidRight);
int clipBottom = min(moveBottom, solidBottom);

if(clipLeft == clipRight || clipTop == clipBottom)
return false;

if(!move)
return true;

int clipWidth = clipRight - clipLeft;
int clipHeight = clipBottom - clipTop;

if(clipWidth solidX) {
// moving to right
movable.x += solidRight - moveLeft;
} else {
// moving to left
movable.x -= moveRight - solidLeft;
}
} else {
// moving along y axis
vy = 0;
int moveY = moveTop + movable.h / 2;
int solidY = solidLeft + solid.h / 2;
if(moveY > solidY) {
// moving to bottom
movable.y += solidBottom - moveTop;
} else {
// moving to top
movable.y -= moveBottom - solidTop;
}
}

return true;
}

Please help! If you’re interested in seeing what’s happening, here’s the program: http://files.chocoboheaven.com/uploads/Guests/files/85267_PaintWorld.zip

Calling it a weekend

Posted by SpaceManiac
Sunday, October 5th, 2008

It’s not completely finished, but PaintWorld is as finished as it’s going to be within the deadline, which will happen in about 30 seconds.

http://files.chocoboheaven.com/uploads/Guests/files/PaintWorld.zip

Warning: the files are directly in this zip and not in a subfolder. If you want them in a subfolder, like Bleck does (stares at Bleck), the new zip is at http://files.chocoboheaven.com/uploads/Guests/files/87528_PaintWorld.zip

Go on, play it! I want to make the deadline, and so will edit in explanations. If anything doesn’t work, please tell me. I will begin working on the postcompo version now.

Well, there’s level selection/preview, view moving, a functional world, a you win screen, a you lose screen even though you can’t lose just yet, and that kind of stuff. Arrow keys to move, escape to exit.

Still working on my game

Posted by SpaceManiac
Sunday, October 5th, 2008

I’m still working on my game, but in the meantime here’s my level, which I have finished.

A small cave-type thing. You start in the top-midsection, and have to get under the lava by going through the water. Something like that.

I think I want my game to work a little like Hamumu’s. There will be black for walls, white for open space, start/end goals, and some other things, but if the color doesn’t match those, the properties of the open space are modified, such as slowing you down or speeding you up, that kind of thing.

Everything but the gameplay

Posted by SpaceManiac
Saturday, October 4th, 2008

I’ve randomly titled my entry PaintWorld! So far everything but the gameplay works.

The level selection screen, my first-ever real GUI!

Gameplay at the moment - nothing really.

The winnerdom screen is to remain a secret!

And you may or may not be playing as a robot/kitty/both.

That map thing

Posted by SpaceManiac
Saturday, September 27th, 2008

In case you still care, I found a solution to mrfun’s problem with requiring a wordpress template (http://www.ludumdare.com/compo/2008/09/07/where-is-the-world-are-you/). You need to insert Javascript that adds an event listener to the document’s onLoad and onUnload events. I’ll explain in more detail and in a cross-browser way in just a moment…

– EDIT –

Ok, first get core.js out of this archive: core.zip

Use a <script> tag to load it into the page (this can be anywhere on the page)

After the load/unload functions have been defined, add this code:

<script>
Core.addEventListener(window, “load”, load);
Core.addEventListener(window, “unload”, GUnload);
</script>

And you’re set.

Compensation

Posted by SpaceManiac
Saturday, September 13th, 2008

Well, I didn’t get a tool done for Mini-LD #3, but here’s some Flash movies instead. A total of four: FireSim, Run Around, Yayguy, and Yerfworks.
Fire!
I didn’t find a direct-linking file hosting thing, but I did find a really nice non-direct-linking one. Get the compensation here!

Source code is included.

Hosting?

Posted by SpaceManiac
Thursday, September 11th, 2008

Anyone know of a good direct-linking free file hosting thing, or could help me with one? I need a place to put my stuff…

Bleh, but yet yay.

Posted by SpaceManiac
Monday, September 8th, 2008

Bleh, homework, yet yay, other things coming up to compensate for my lack of a finished Mini-LD #3 entry. Look forward to…

  • A Flash movie thing,
  • A Half-finished Flash game,
  • Maybe my modifications to the Chipmunk demos,
  • and something I’m not publicly announcing yet, but those who have been on #ludumdare recently may have experienced…

And also, going back through things, Towlr is awesome. I emailed it to my friends. Buahahaha!

ChipmunkLand died

Posted by SpaceManiac
Sunday, September 7th, 2008

I gave up on making it load files, and in the first place it was never much of a tool. So, yeah. I gave up. Maybe I’ll release my modifications to the Chipmunk Demos, or something.

On an unrelated note, I self-congratulaified myself.

ChipmunkLand Compiles & Runs!

Posted by SpaceManiac
Saturday, September 6th, 2008

I’ve named my “tool” ChipmunkLand!

ChipmunkLand runs!

It can’t load files yet, but it does say “Usage: … filename” if you don’t give it a command line argument. I’m sticking to command line arguments because I’ve never made a usable GUI before. I’m using OpenGL and Glut so I can just use the drawing code from the Chipmunk Demos.

Thoughts on Mini-LD #3

Posted by SpaceManiac
Wednesday, September 3rd, 2008

I’ve been thinking about Mini-LD #3. I’ve decided I want to make one of these:

  • A C++ wrapper library around an older C library,
  • An editor/loader/file format for data in Chipmunk, a physics library
  • An editor for a game with a concept of levels but no level editor (or at least finished)

I’ve started already on one of the first one - a set of classes to simplify interaction with the SDL graphics library.

The last one I’ve made before - and for a Ludum Dare entry! The Castle Smash Map Editor has a thread at the Hamumu Forums, but all the download links there are invalid. I don’t have a real website to put it on, so unless you people have any ideas, you can download it from MediaFire here. The zip actually includes Castle Smash, because that’s just the way I did things.

I think, given the current state of things, that I will go for the second choice. Good luck to everyone else who participates, and have fun!

Strange Warnings When Compiling

Posted by SpaceManiac
Monday, August 25th, 2008

Well, this is kind-of compo related, as I’m devoloping my library thing the wiki says I can have. I keep getting these warnings when compiling:

1>c:\program files\microsoft visual studio 8\vc\include\xlocnum(590) : warning C4312:
‘type cast’ : conversion from ‘uintptr_t’ to ‘void *’ of greater size
1> c:\program files\microsoft visual studio 8\vc\include\xlocnum(566) : while
compiling class template member function ’std::istreambuf_iterator<_Elem,_Traits>
std::num_get<_Elem,_InIt>::do_get(_InIt,_InIt,std::ios_base &,std::ios_base::iostate
&,void *&) const’
1> with
1> [
1> _Elem=char,
1> _Traits=std::char_traits,
1> _InIt=std::istreambuf_iterator>
1> ]
1> c:\program files\microsoft visual studio 8\vc\include\xlocnum(1367) : see
reference to class template instantiation ’std::num_get<_Elem,_InIt>’ being compiled
1> with
1> [
1> _Elem=char,
1> _InIt=std::istreambuf_iterator>
1> ]
1>c:\program files\microsoft visual studio 8\vc\include\xlocnum(590) : warning C4312:
‘type cast’ : conversion from ‘uintptr_t’ to ‘void *’ of greater size
1> c:\program files\microsoft visual studio 8\vc\include\xlocnum(566) : while
compiling class template member function ’std::istreambuf_iterator<_Elem,_Traits>
std::num_get<_Elem,_InIt>::do_get(_InIt,_InIt,std::ios_base &,std::ios_base::iostate
&,void *&) const’
1> with
1> [
1> _Elem=wchar_t,
1> _Traits=std::char_traits,
1> _InIt=std::istreambuf_iterator>
1> ]
1> c:\program files\microsoft visual studio 8\vc\include\xlocnum(1373) : see
reference to class template instantiation ’std::num_get<_Elem,_InIt>’ being compiled
1> with
1> [
1> _Elem=wchar_t,
1> _InIt=std::istreambuf_iterator>
1> ]

Anyone know what’s going on, or how to fix it? I’m using SDL and VC++ 2005 Express.

And also, anyone know an easy way to keep <pre> tags inside the column thing? I had to find where it went over and make my own line breaks… And I don’t know if it’ll still look right if you have a different screen resolution. Thanks in advance!

EDIT: Aiee! I give up… I’ll just use some other type of formatting…

Help?

Posted by SpaceManiac
Saturday, August 23rd, 2008

I program games and stuff so I thought I would register on this site, but how do I judge? I can’t find the button. Thanks!


All posts, images, and comments are owned by their creators.