longcatlover

LD26

I’m in! (I think!)

Hello! I am joining the Ludum Dare Compo/Jam this year!
Hi, I am joining the Ludum Dare this year as my first year! I am planning to join the compo, unless I run out of time(which I am prone to doing), in which case I will enter my game in the Jam. I think that I am going to make a text based game, because they are fun! the problem is, I am tied between 2 languages, Java and C++. I know more Java, but C++ is easier to manipulate with the console, using SYSTEM() and also the cout << and cin >> syntax’s. anyway, I hope that you all have a fun time, and good luck!

Physical Tools:
– Notebook for planning
– computer(I know, what a shocker!)

Tools:
– Eclipse/Code::Blocks (still don’t know if I should use Java or C++….)

Art Tools:
– Paint.NET for graphics if I need them

Sound Tools:
– sfxr for sounds if I need them (if you don’t know what sfxr is, google it! its helpful!)

Language(s):
– Java or C+++…can’t decide… :P

6

This entry was posted on Tuesday, April 16th, 2013 at 5:52 pm and is filed under LD #26. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

To all Java Text-Based game makers!

Hello! I am planning to make a text-based game this year in the Ludum Dare, and I realized how lazy I am…so lazy that I find it hard to keep typing “System.out.println(“walri rock!”)”, so I thought of this:

In the beginning of your main class, make 2 methods, a “say” method and a “take” method, these will work as the cin and count in C++, the say method would be the following:

public static void say(String message){
System.out.println(say);
}

And make the take method the following:

public static void take(String takeTo){
Scanner sc = new Scanner(System.in);
takeTo = sc.nextLine();
}

And TA-DA!!! I am stating now though, that I have NOT tested the take method…Anyhow, you would use the code like this:

//This is a simple intake/output thingy majogger
String input = "";
say("Say something!");
take(input);
say("You said: " + input + "!");

Fell free to use any of this code, and Good Luck to all!!!!!

Comments

pirate-rob
17. Apr 2013 · 11:26 UTC
Wow, I never knew java user input was this easy, rather helpful, thanks!
17. Apr 2013 · 14:03 UTC
The take method will not work – you can’t use Strings as an output in Java because they are immutable. Your sample will always output “You said: !”
bitcrusher
17. Apr 2013 · 14:28 UTC
Your say method won’t work. Try…
bitcrusher
17. Apr 2013 · 14:43 UTC
Have your take method return a String:
LlamaHarmer
17. Apr 2013 · 16:14 UTC
You thought about using the Console?
SuperDisk
17. Apr 2013 · 17:57 UTC
The “take” method won’t work. First, you’re modifying a reference, and you’re not freeing the Scanner sc, causing a memory leak.
EatenAlive3
20. Apr 2013 · 22:15 UTC
For take, try:
Shadow12345
20. Aug 2013 · 23:32 UTC
Hey! what about sysout?

Hmmm…..

I cant decide between 4 languages/dev softwares to use for the Ludum Dare!!! anyone else still stuck?

Comments

GranTurismo
21. Apr 2013 · 12:47 UTC
Think what you know the best, and it will be the answer :)
JoeCool17
21. Apr 2013 · 14:44 UTC
What 4 are you considering?

If you’re looking to work more on art/music or want to do well, go with the easiest for you, the one that you can develop the fastest on (for instance, if you’re considering pygame, go with it.)

If you’re looking for a challenge or want to work on programming, go with the one you most want to learn more about. LD will help you learn *much* faster than any tutorial or documentation could.

Well now I feel stupid

Hey guys….uhh…I am going to sound like a retard for asking this, but what does minimalism mean? would that be like making basically pong? making something with minimal shizwah in it? thanks.

 

Wish me luck!

1o hours left and I am scrapping my game. I am starting all over. wish me luck, I’ll need it!