PyWeek 31 challenge: “Cops”

PIT Stop - PyMunk + PyGame Struggles

Posted by yanigisawa on 2021/03/30 21:47

I've made some progress, but I'm running into issues getting the Y coordinates to sync-up between my PyMunk physics objects and the PyGame sprites. I realize their "0" position is different, but I'm still struggling getting the user interactions of moving up and down in sync with the underlying PyMunk Shape defined. 


That said, I've made progress in rendering the `debug_draw` state from PyMunk so I can at least visualize what I've written so far. I'm trying to keep the mechanic fundamentally very simple. The premise is to perform a PIT Maneuver (https://en.wikipedia.org/wiki/PIT_maneuver). The win condition is if the "Bad Guy's" Car reaches a specified turning radius, then the game will reset with (theoretically) harder presets for what the bad guy's car will do between runs. 

The PyMunk physics engine is quite fun to mess around with, and was easy enough to add debug objects to it to see how the objects (cars i.e. top-down rectangles) would interact with each other. I just need much more work to get my PyGame sprite images loading on top of the right places and moving appropriately with the user's input.

Add a comment

Snake Cop - Keeping is hard

Posted by GamerC08 on 2021/03/30 21:25

Since the start of challenge I being to much busy and I have less time to code.


So for now a all read have a base display and a main character but the art of IA is not what I expect, what to expect if I have no experience on art pixel. 

So I'll start to upgrade my enims IA, then work on level think and then in the game text, hope have time. 

Add a comment

Robbers Steal Money - Still Figuring Things Out

Posted by cpaggron on 2021/03/30 20:52

I learned to do some pygame but still trying to figure things out. My partner's great at making pics :D


-cpaggron

Add a comment

Donut Run - Day 3: donuts!!!

Posted by karx on 2021/03/30 19:55

Today, I added the main scoring mechanism of the game, donuts. (because cops eat donuts, hahaha so funny)

First, I drew a sprite using the free pixel art app Piskel. This is what it looks like:

I used the same generation algorithm as the walls and enemies to randomly place donuts around the map, based on the player's level.

I made the score increment when the player touches a donut, and killed donuts when an enemy bullet hits one.

After that, I created an introduction screen and a game over screen. This was where I reached a little issue with the arcade library, it would segfault whenever I tried to draw text. To fix this, I copied the draw_text function from the arcade library, and implemented a fix.

Here's the opening screen:

and the game over screen:


On the opening screen, I created a little function to display a helpful tip that will help the player when playing the game.

'Till Tomorrow!

Add a comment

Cops and Robbers - Day 1 + 2

Posted by JustAnotherCode on 2021/03/30 19:33

Day 1:

Thought about how to make the AI work
Tried to impliment it and failed :/
Made and found some art 

Day 2:

Worked more on the AI and got something at least working
Not too much progress :\

Add a comment

SPI-COP - fixed a path bug, added ForceStanding

Posted by MasterPice on 2021/03/30 19:10

- now - finaly- the bug that gave the  NPCs a wrong position is fixed.. i hope
- added a feature, to make the NPCs stop moving... // will come in handy
- got a nice new idea xD

Add a comment

Wrobers Grab n' Run - Diary update #2: Framework Almost done

Posted by Phantasma on 2021/03/30 18:45

And now for the obligatory diary update.


I got the menu going. Its going to have the following options to select

Start (to play the game)

Options (mainly to turn sound/music on/off)

Credits(To whom I give credit for)

Exit (To exit the game proper)

Navigating the menu will be using the following keys W S to move the arrow to designated spot, space to initialize selected choice.

Tomorrow I have a day off my day job so the entirety of that day will be spent making art gameplay and sound.

Add a comment

Chase - Day 3 Session 1

Posted by Explorer017 on 2021/03/30 17:45

After not being able to do much yesterday, today we focused on giving the player full 360-degrees of movement, instead of just moving them up and down. The next thing I will need to work on is moving the "camera" instead of the player, and it is what I will start working on now.
the game

Add a comment

SPI-COP - day 3

Posted by MasterPice on 2021/03/30 16:43

- made a Manager calss, to take care of the NPCs, mouse..
- added a debugger
- struggled to make the movements right -> thats why there is a dibugger now

- now the NPCs can be dragged by mouse, and go back to theyr "yellow box"

debugging boxes, they arent following theyr path yet
they are not following their path yet... but thats enough for this day

Add a comment

SPI-COP - Options Menu Finished

Posted by Green_boyY on 2021/03/30 16:23

today I finished making the options menu work, now we can fully commit to the game with different settings in mind.how the options Menu looks currently

Add a comment