Coder Social home page Coder Social logo

fegaria's People

Contributors

fergusgriggs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Forkers

evoxalien geritwo

fegaria's Issues

Some errors

I'm running the game on Python2
If it's intended to run on Python3 only, please state it in the readme.

line 1331: list indices must be integers, not float
I used int() around the indices.
This goes for most of the times you use the "mapData" matrix.
You did it too in line 508

line 1385: range() integer end argument expected, got float
"heartNum" is saved as a "ciel" of something: this doesn't make it int, I guess.
So again I used int() to fix

line 190
super().__init__(pos,"bird",vel)
TypeError: super() takes at least 1 argument (0 given)
I'm new to Python, but I think you need to write:
NPC.__init__(self, pos, "bird", vel)

I did a fix to these, if needed I can make a pull request.

The same problem with indices goes for some image loading:
img=images[240+math.floor((self.blocks[i][j].maxintegrity-self.blocks[i][j].integrity)/self.blocks[i][j].maxintegrity*9)]
math.floor doesn't return an int, but a float, so I'm still getting error for these.

Player Jitter

Firstly Physics is hard..

I think the player jitter is coming from your grounded logic, and the subsequent corrections to player pos in the collision loops.

I tinkered with it for a while, if you stop applying gravity once you're rested on a surface you can keep the player jitter free, however you have to find the right place in your game loop to change the grounded to false if the player steps off a surface or jumps. (Jump is the easy one out of the two)

I'm happy to help!

I found your game listed on https://www.pygame.org/news and popped in to check it out earlier.

Crashes after pressing "U"

Played for a while, pressed all down and low row key, when started to press keys of high alphabetic row from left to right, game crashed on "U" key

Traceback (most recent call last):
  File "fegararia v0.05.py", line 2187, in <module>
    p.kill()
  File "fegararia v0.05.py", line 1174, in kill
    self.changeItem("copper coin",["coin"],-copper)
TypeError: changeItem() takes 3 positional arguments but 4 were given

Does not run (Python 2.7.12 or 3.5.2)

Hin thanks for sharing this, interesting to learn from!

I cloned the repository and are trying to run the game using both python2 and 3; output is:

Spawning stone...
Traceback (most recent call last):
File "fegararia v0.05.py", line 1962, in
CAM.Map.generateTerrain(0)
File "fegararia v0.05.py", line 454, in generateTerrain
ore(1,6,None,(425,500),(6,CHUNKNUMX*CHUNKSIZE-6),1)
File "fegararia v0.05.py", line 556, in ore
ore(val,size-1,(pos[0]+1,pos[1]),None,None,back)
File "fegararia v0.05.py", line 556, in ore
ore(val,size-1,(pos[0]+1,pos[1]),None,None,back)
File "fegararia v0.05.py", line 556, in ore
ore(val,size-1,(pos[0]+1,pos[1]),None,None,back)
File "fegararia v0.05.py", line 558, in ore
ore(val,size-1,(pos[0],pos[1]-1),None,None,back)
File "fegararia v0.05.py", line 556, in ore
ore(val,size-1,(pos[0]+1,pos[1]),None,None,back)
File "fegararia v0.05.py", line 556, in ore
ore(val,size-1,(pos[0]+1,pos[1]),None,None,back)
File "fegararia v0.05.py", line 556, in ore
ore(val,size-1,(pos[0]+1,pos[1]),None,None,back)
File "fegararia v0.05.py", line 549, in ore
if mapData[pos[1]][pos[0]][0]>0:
IndexError: list index out of range

FPS issue

The game is really nice, but it needs to be optimized
looking forward for updates

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.