What I learned today or “Pygame does not like to be deepcopy()ed”
I haven’t said this till now but: I’m in. Sight. Again. Started like five times already, never finished anything.
For anyone who really cares: Python 3.2, Pygame, Paint.NET, maybe something for the music later
Now for the interesting part:
Even though I never finished anything before, this time around I have gotten pretty far. I dislike the theme, but I had a good idea, so I am have my destination already set.
I don’t want to spoil too much, but it involves an open(automatic chunkloading:check), a procedurally generated world(Perlin Noise and terrain generator: check), knights(check) and castles (no check
) I am really proud of what I achieved today even though I was still sleeping the first six hours (LD starts at 2:00am here) and a request for help (Stepfather: can u pls help me for an hour. pls? 3.5 hours later….) kind of took longer than expected.
WORK DONE:
- I have implemented a working rendering engine and a working collision detection, which stoped me from finishing the first three or so times
- I have written a generator that gives me new chunks on demand.
- I have pixeled the most important things in a “good-enaugh” kind of fashion, so I don’t have to worry about that for now
WHAT I LEARNED UP UNTILL NOW:
- Generating a 4400*4400 Perlin Noise array is not a good idea with an unoptimised algorythm in an interpreted language 😀
- Pygame.Rects don’t like to be deepcopy()ed
- Pygame.Surfaces don’t like to be deepcopy()ed
- Pygame does not like copy.deepcopy()
- PYGAME DOES NOT LIKE COPY.DEEPCOPY()
TODO:
- Remove all remaining lines containing deepcopy that stop me from getting a showable resul
- Enemys
- Weapons
- Fog(shouldn’t be more than half an hour)
- Types
- Castles
- Special Abilities
- Soundeffects and maybe some music. Might fool around with the Chuck Programming Language again (Procedual Sounds and whatnot), but if time is short, I will use some other tools. Probably the one everyone is using to generate soundeffects
- Become insane becaus Hotline Miami OST is playing on repeat
Should better go back to work now, procastination way too much time making this post 😉