Giter Site home page Giter Site logo

space-fighters's Introduction

Hi! I'm Priyansh Mehta

Typing SVG

guilyx | Twitter guilyx's LinkdeIN

name: Priyansh
located_in: India
education: Currently 2nd year Computer Science Student from IIIT Jabalpur
past experiences: 
  - ["Collabrator "@Oppia","2022-present"]
  - ["Team Member", "Bitbyte(The Programming Club) IIITDMJ", "2022-present"]
  - ["Mentor", "Global Pahtfinder", "2019-2021"]

code: ["Javascript", "Python", "Java", "PHP","C","C++"]
askMeAbout: ["web dev", "tech", "Open Source", "Books"],
technologies: {
        backEnd: {
            js: ["Node", "Express"],
        },
        frontEnd: ["Angular","Tailwind","Typescript"]
        databases: ["mongo", "MySql"],
        misc: ["Firebase", "open-cv", "php"]
    },

hobbies: ["Reading", "Wrinting", "Fabrication", "IoT"]

I love connecting with different people so if you want to say hi, I'll be happy to meet you more! ๐Ÿ˜Š

๐Ÿ› ๏ธ My favorite tools

๐Ÿ‘จโ€๐Ÿ’ป Programming and markup languages

Bash C C++ CSS HTML Java JavaScript LaTeX Markdown Node.js PHP Python SQL TypeScript

๐Ÿงฐ Frameworks and libraries

Arduino Bootstrap Cordova Discord.py Express.js GitHub Actions PHPUnit Pytest React Angular

๐Ÿ—„๏ธ Databases and cloud hosting

GitHub Pages Heroku MongoDB MySQL Notion

Recent Activity โšก

  1. ๐Ÿ—ฃ Commented on #16960 in oppia/oppia
  2. ๐Ÿ—ฃ Commented on #17210 in oppia/oppia
  3. ๐Ÿ—ฃ Commented on #16982 in oppia/oppia
  4. ๐Ÿ—ฃ Commented on #16960 in oppia/oppia
  5. ๐Ÿ—ฃ Commented on #17678 in oppia/oppia
  6. ๐Ÿ—ฃ Commented on #17699 in oppia/oppia
  7. ๐Ÿ—ฃ Commented on #17423 in oppia/oppia
  8. ๐Ÿ—ฃ Commented on #17423 in oppia/oppia
  9. ๐Ÿ—ฃ Commented on #17214 in oppia/oppia
  10. ๐Ÿ’ช Opened PR #17678 in oppia/oppia

Some Stats ๐Ÿ’ช

From: 16 October 2022 - To: 18 March 2023

Total Time: 302 hrs 14 mins

TypeScript    157 hrs 56 mins >>>>>>>>>>>>>------------   52.26 %
HTML          53 hrs 10 mins  >>>>---------------------   17.59 %
JavaScript    24 hrs 1 min    >>-----------------------   07.95 %
SCSS          16 hrs 47 mins  >------------------------   05.55 %
Python        15 hrs 50 mins  >------------------------   05.24 %
C++           8 hrs 4 mins    >------------------------   02.67 %

space-fighters's People

Contributors

danimorales97 avatar priyansh61 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

space-fighters's Issues

Game crashes due to empty laser list

File "/home/priyansh/Python2/projects/space-invaders/main.py", line 268, in <module> menu() File "/home/priyansh/Python2/projects/space-invaders/main.py", line 260, in menu main() File "/home/priyansh/Python2/projects/space-invaders/main.py", line 248, in main redraw_window () File "/home/priyansh/Python2/projects/space-invaders/main.py", line 201, in redraw_window menu() File "/home/priyansh/Python2/projects/space-invaders/main.py", line 260, in menu main() File "/home/priyansh/Python2/projects/space-invaders/main.py", line 239, in main player.move_laser(enemies,4) File "/home/priyansh/Python2/projects/space-invaders/main.py", line 106, in move_laser self.lasers.remove(laser) ValueError: list.remove(x): x not in list

Error Generation:

The error is generated whenever you continuosly press the space bar to shoot the lasers.

Attempted Fixes :

Tried making if else statement so that the laser is not removed from the list when the size of the list is less than a particular size but this doesn't fix the issue.

error in loading images from the path

Genenrated Error

Traceback (most recent call last): File "/home/priyansh/Python2/projects/space-invaders/code/main.py", line 49, in <module> MENU = pygame.image.load(MENU_path) FileNotFoundError: No such file or directory: '/home/priyansh/Python2/projects/space-invaders/code/././assets/menu.png

Errror Fix:

Use this

directory = os.path.dirname(os.path.abspath(__file__)) MENU_path = os.path.join( directory, "../assets/menu.png")

instead of

MENU_path = os.path.join( os.path.abspath(__file__)), "../assets/menu.png")

Question

  • is this happening on my system only ??
  • Why is the error generateid??

Hello

I saw your repository exploring for an open source project that used pygame. My intention is to help you with this project as well as help others with theirs and continue learning along the way. For now, I forked your repo and I'll be adding commits to it. When I feel like I did substantial changes I will make a pull request. I already tried your game and it's nice. However, I think together we can improve it and learn from each other while at it.

I hope you are okay with me helping,
Cheers.

New branch

Hi

I made a new branch in my fork repo called sprites. I did it that way to maintain the original approach you had, because I did massive changes in that new branch. I remade your game but with a different approach, sprites. I don't know if you know about them or how to work with them but I wanted to recommend that you take a look into my approach. I think it's more readable and easier to maintain.

Next I'm going to add score and highscore. Also I thought about introducing new types of enemies, you can see that in enemy.py and maybe give them a health system or something.

I think you can create a new branch and merge mine. That way you can keep your original branch in case you want to continue working with that approach. Feel free to make some changes and show them to me or suggest any ideas for more things we can implement.

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.