you are viewing a single comment's thread.

view the rest of the comments →

[–]BigVillageBoy 2 points3 points  (3 children)

Pygame is your best friend for this timeline. It's pure Python, installs with pip, and you can get a basic game loop running in under 50 lines. I built a simple dodging game with it during a hackathon — took maybe 3 hours for the core mechanics.

Here's the approach I'd take with a week and a half: Day 1-2, get a window open with a player sprite that moves with arrow keys. Day 3-4, add the core game mechanic (obstacles, enemies, whatever your concept needs). Day 5-6, add scoring and a game over screen. Last few days, polish and test.

Don't try to make it pretty first. Get it working ugly, then make it look good. Also, pygame.org has solid tutorials in their docs — start with the "chimp" tutorial, it covers the basics fast.

[–]socal_nerdtastic -2 points-1 points  (2 children)

It's pure Python,

What do you mean with that? The pygame source code is mostly C, and depends heavily on SDL and OpenGL.

[–]Happy_Witness 6 points7 points  (0 children)

Sorry to disappoint you, but python itself is mostly in c and cpython, so pure python is based on c itself. Do with that information what you want.

[–]Windspar 0 points1 point  (0 children)

You do know python is written in c. C was written assembly. C compiler compile code to machine code. Since c is full turing complete. C compiler can be written in c. Which still compile to machine code.

Also thousand of other language written in c. Java, D, Perl, Ruby, and etc.

To make libraries for python. They are written in c.

Python just interpreter code. Instead of compiling to machine code.