Code Monkey home page Code Monkey logo

pygame's Introduction

Pygame

Simple games created with the pygame module

pygame's People

Contributors

danielchang2002 avatar

Stargazers

 avatar  avatar  avatar Eric9400 avatar  avatar Reasad Zaman avatar Emmanuel Akpan avatar  avatar Joel Brigida avatar  avatar  avatar Vitalii Gerasimov avatar  avatar  avatar maliangrui avatar Thu Thai avatar Tony avatar Owura_qu avatar  avatar LeoSu avatar  avatar

Watchers

Owura_qu avatar  avatar danilo avatar

pygame's Issues

Please help m8 thanks :) ๐Ÿ‘

Hi m8 thanks a lot for the code and the video I would like to make your minesweeper a little more like the classic windows version (adding a menu, countdown, reset button etc)

The think is that I think I can code the logic for that but I am terrible at pygame :P

I a struggling to find a way to add some real estate on the window (to add the reset button counter etc) without needing to rewrite the code you made...

to put it simply

Now it looks like this:
https://i.imgur.com/OPKC91A.png

I need it to look like this:
https://i.imgur.com/iS2zMA9.png

Why am I asking for help since in the 2ns screenshot it seems that I have done it?

Well it was just a trick it doesnt work (I just added +100 on self.sizeScreen[1] on line 19

and also set topleft (0, 100) instead of (0.0) on line 54.

but that just messes up with the way it handle flags/clicks

def handleClick(self, position, flag):
        index = tuple(int(pos // size) for pos, size in zip(position, self.pieceSize))[::-1]
        self.board.handleClick(self.board.getPiece(index), flag)                   

in particular essentially as far as mouseclicks go the board hasnt change position so if I click on the 1,1 square(of the 2nd screenshot) the 2,1 square gets clicks

and I cant figure a way to just make a window that's slightly bigger than a given matrix :/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.