Coder Social home page Coder Social logo

demooni's Introduction

Source code for my homepage

Accessible at https://sjaks.iki.fi/.

Development

In the root directory of this repository, you can run

python -m http.server

to serve the website with a simple http server.

demooni's People

Contributors

elguitar avatar sjaks avatar wiljami avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

elguitar wiljami

demooni's Issues

Add daemon handshake "scene"

Description
Demons a.k.a daemons. In my opinion it could be nice if there was a some kind of handshake between the daemons before the packet "pakeetti" is sent to another daemon. This could also simulate for instance TLS handshake.

Some other movement could also be added to daemons :)

Code review

The code has started becoming quite hard to read. The following steps should be taken to make the code look cleaner and readable.

  • Make all variable and function names follow the naming scheme (demooni, pakeetti, ...)
  • Add docstrings and comments
  • Check for unused functionality and streamline complicated parts
  • Optimize images and assets

So far, I have found the following:

  • There are unwanted variable names: newInterval, i, net
  • uhmaaApiinaJumalaa function should be made modular so that other types of such entities could be spawned
  • Daemon killing functions need documentation

Also, are poistaDemooninPoloku and demooninIndeksi used? I cannot find any calls to them. @elguitar do you know if they can be removed from the code?

Write a new README

Possible users may be confused what this program is. Maybe there should be a better README.md file with a description, use case example and some screenshots and possibly installation instructions.

Demoonis start following the pakeetti

When the timeout inside of tapaDemooni hasn't run out and tapaKaikki has been executed either by pressing the SOS-button or Monkey God, the last spawned demooni starts to follow the packet.

In doggo mode the ball should be controllable

When thinking about it, it makes no sense that the dogs would toss the ball around with each other. I suggest the ball should move around either following the mouse cursor or be tossed around with mouse clicks.

Optimize code

Not everyone has top of the line computer able to run the demanding graphics. There should be a mode where you enable basic ascii characters as the entities on the screen instead of the high quality images.

The first demooni is immortal

The first demooni cannot be killed because its kuolevainen value had to be set to false because the first demooni needs to exists for the program to work.

Maybe the first one shouldn't be a demooni at all because a reititysdemooni doesn't create the pakeetti in the first place.

The first spawned item could be a computer, for instance. In case of dogs, this doesn't work very well. Could the first demooni just be invisible?

Give Monkey God more lethal abilities

The Monkey God now explodes all of the daemons when it spawns. This is great but it cannot kill the attacking daemons. Maybe there should be a RNG that kills some of the daemons while the Monkey God is alive.

Demons should possess others

Demons are known for their ability to possess other creatures. Now and then they should take over monkeys and dogs and possess them to do some kind of demonic action instead of their normal monkey or doggo behavior.

Dog option

There should be an option where the demons are replaced by dogs and the packet by a ball. The dogs should then chase after the ball as it moves across the screen.

Make the Monkey God more powerful-looking

The Monkey God is very powerful but doesn't look like that. Maybe he/she should have some animation?
Shouldn't all the killed daemons become explosions when they are destroyed by the God?

Demoonis start chasing the pakeetti after a kill

When at least one demooni is killed, the others start following the pakeetti.

Is this a feature of bug? The demoonis should have some random movement around their anchor (ravistaDemooneja). This is probably caused by removing the demooni from the page but not clearing it's coordinates from the coordinate array (poloku).

Does @elguitar have ideas how to fix this?

Sound effects

Dogs should bark as they frolic across the screen. This would serve as a good audio cue to the user that something is happening.

This was mentioned in #1 already, but it was declared to be out of scope.

Monkey mode

Not everybody likes dogs. There should be a monkey mode with bananas. Monkeys also should have a thumb, while dogs don't have a thumb. There should be two kinds of monkeys: Helper monkeys and monkey companions.

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.