Giter VIP home page Giter VIP logo

2d-survival's People

Contributors

amp9312 avatar capalmer1013 avatar jarvl avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

2d-survival's Issues

bug: error when going too low

Traceback (most recent call last):
  File "C:\Users\cpalmer\Documents\GitHub\2d-survival\src\main.py", line 168, in draw
    self.background.draw(
  File "C:\Users\cpalmer\Documents\GitHub\2d-survival\src\gameObjects.py", line 319, in draw
    BASE_BLOCK * self.tiles[x][y][0],
                 ~~~~~~~~~~~~~^^^
IndexError: list index out of range

steps to reproduce:

  • walk to the bottom of the world

bear attack mechanics

have the bear lose interest if the player isn't moving. stop attacking after a certain amount of time.

generalize collision detection

list of tuples of (type, type) and implement collide(type) method for both to handle their collision logic
in the collision checking function just do a nested loop of all objects of type a and type b and run their collision logic

add item despawn

add ttl attribute on dropped, or spawned items (not things like placed brick) so that after the ttl the item can despawn

Add generator nodes

add ResourceNode class to make a place that new objects will spawn within a radius around so resources aren't as randomly distributed in the map

Add doors

Allow user who places a door to pass through it but nobody else

Add occlusion culling for object logic

add culling for executing logic every frame only if objects are in frame

  • add occasional update that can round robin-like only execute game logic for a handful of objects when they are close to the frame
  • should update more frequently the closer they are to the camera view
  • update every frame when in camera view
  • store number of updates since last updated
  • when update needs to happen just run update function that many times (could cause problems with collision detection) (don't want bears walking through walls when they're out of frame)

sign executables

figure out how to sign executables and set that up

possibly related. figure out how to not have the executables not show up as a virus

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.