Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Berserker

Pages: [1] 2 3 ... 8
1
Other Games / Re: [Contest] Win ANY one game *Support Indiefort*
« on: July 04, 2013, 10:18:38 am »
I love Indiefort! :)

2
Life Advice / Re: Dwarf Fortress on Windows Surface?
« on: May 22, 2013, 06:57:48 am »
Go to the start menu and start typing "on-screen keyboard" and you'll find it. (Or alternatively follow the steps on this video).

3
I've heard rumors about a website that you can upload a 3D modeling file to that allows people to view your model, rotate and zoom around it, but can't recall the name.

sketchfab.com and p3d.in can do that.

4
Creative Projects / Re: Programming Help Thread (For Dummies)
« on: March 13, 2013, 11:19:29 am »
If I remember correctly, the first argument of String.split is a regular expression, and "." would mean splitting at any character.

Try escaping the dot character like this:
Code: [Select]
loadInstance.split("\\.");
This should work also if you import java.util.regex.Pattern first:
Code: [Select]
loadInstance.split(Pattern.quote("."));

5
Life Advice / Re: Dwarf Fortress on Windows Surface?
« on: March 07, 2013, 08:49:58 am »
Ah thanks guys.  I dream of the day where they make dwarf fortress playable with all features on a *portable device. 

That's already possible. Dwarf Fortress runs on my Acer Iconia W510 at 100 FPS with default settings.



Playing with the on-screen keyboard is a bit slower than playing with a physical keyboard, but it works well enough.
The Iconia W510 comes with an attachable keyboard, so it's possible to play with that also.

edit: Migrants and their pets arrived, there are also some wolverines and ravens. The average FPS is 80 now.

6
Life Advice / Re: Where to begin with programming this?
« on: February 27, 2013, 04:19:04 am »
EDIT: Hmm, when I try to replicate your code I get syntax errors at the 'print' stage.
You are probably using Python 3. Try adding parentheses after the print statement like this:
Code: [Select]
print("and I like " + preferance[random.randint(0,1)])

7
General Discussion / Re: if self.isCoder(): post() #Programming Thread
« on: February 19, 2013, 01:49:06 pm »
Python already has a module called time, maybe person.py is using that instead of the time.py you created?

8
Creative Projects / Re: Have we any Python users here?
« on: December 22, 2012, 04:58:47 am »
That's pretty good for a first game. I did a similar game when I was learning Python.

Here are some notes about the game, and the source code:

The game crashes when you type a command that doesn't have spaces.
Spoiler: Traceback (click to show/hide)
The game crashed when I won a battle in the second room. The library.zip didn't contain fulltest.py, but I guess current_room somehow became None.
Spoiler: Traceback (click to show/hide)

Some kind of help command would be handy.

I recommend writing class names in CamelCase to distinguish them from variable and function names.

You can clear the screen with os.system("cls").

9
Creative Projects / Re: Have we any Python users here?
« on: December 21, 2012, 02:04:38 pm »
The core of the problem is that when you move to the second room, it replaces the attributes of the first room with the attributes from the second room, which means that the first room doesn't exist anymore, and you have two identical rooms.

One way to fix it would be making a variable that points to the current room, and making the roomhandler return the next room, and replacing the current room with the returned room.

Something like this (I also replaced the recursive start call with a loop):

Spoiler: fulltest.py (click to show/hide)

Spoiler: roomhandler.py (click to show/hide)

10
Other Games / Re: End of the world Giveaway
« on: December 20, 2012, 01:24:20 pm »
Berserker

The Pickpocket. Because having a monkey partner is cool.

11
General Discussion / Re: if self.isCoder(): post() #Programming Thread
« on: November 20, 2012, 10:00:08 am »
Dictionary or a list would be a good way to do that like mendonca and Max said, but if you want variables for some reason, you could do this:

Code: [Select]
for i in range(100):
    globals()['id' + str(i)] = person()

now you have global variables from id0 to id99 that contain persons. You could use locals() instead of globals(), but modifying local variables like that is not a good idea according to Python documentation.

12
General Discussion / Re: if self.isCoder(): post() #Programming Thread
« on: November 20, 2012, 02:24:40 am »
Make a new surface, fill it with desired color, make it transparent and put it on the sprite with Blit. I've never used SDLDotNet, but after looking at the docs, I think you can do it with something like this:
Code: [Select]
Surface overlay = new Surface(32,32);
overlay.Fill(color);
overlay.AlphaBlending = true;
overlay.Alpha = 128;

sprite.Blit(overlay, new Point(0,0));

13
Other Games / Re: Dark Souls
« on: November 13, 2012, 05:02:40 pm »
Is there any restrictions on who can invade you? I was invaded by a quite powerful player today. I tried to find a hiding place, hoping that he won't find me, but eventually he comes and we just circle around each other for awhile. Then I kick him and strike him, barely doing any damage. I hit him again and he parries and kills me in one strike with his flaming sword and does some sort of facepalm gesture.

14
Creative Projects / Re: Random Things you drew/shopped/made/etc.
« on: November 11, 2012, 03:43:16 am »
Kirjastalon Salissa
I don't usually care about poetry, but I found this intriguing. From what I understood, you are trying to learn finnish?

15
General Discussion / Re: if self.isCoder(): post() #Programming Thread
« on: November 06, 2012, 11:31:08 am »
Yes, I tested it. The update in Player replaces the update that it inherits from Animation regardless of the parameters.

Pages: [1] 2 3 ... 8