Worlde
http://wordle.net/gallery/wrdl/260205/Ludum_Dare
Some thing that auto-generates word bubbles!
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)
http://wordle.net/gallery/wrdl/260205/Ludum_Dare
Some thing that auto-generates word bubbles!
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
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.
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.
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.
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.

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.
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, homework, yet yay, other things coming up to compensate for my lack of a finished Mini-LD #3 entry. Look forward to…
And also, going back through things, Towlr is awesome. I emailed it to my friends. Buahahaha!
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.
I’ve named my “tool” ChipmunkLand!
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.
I’ve been thinking about Mini-LD #3. I’ve decided I want to make one of these:
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!
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…
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.