Code Monkey home page Code Monkey logo

calcium's People

Contributors

capostudios avatar cptx032 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

calcium's Issues

Create a Sprite filters

sprite = Sprite(x, y, animations={'running': []})
sprite.dark(level=1)
sprite.light(level=1)

calcium.arcade ?

Hello,

the example platform_system.py use a module called arcade. This module does not exists (platform_system.py raise an ImportError).

What about this module ? Is it a an aborted feature ? Or not yet implemented ?

By the way, for some reason i can't run pong.py and windfarm.py

Otherwise the tool looks great. Thank you for all this work !!

separate sprite class

Today a sprite already has frame animation support, but not all sprites will have animation, so the idea is to create a "flat" sprite, without animation.
So will exists a AnimatedSprite to suport animation. Both classes must be "effectable", like screen class today: I must call MyEffect.process(mysprite) and the sprite will be affected just for that frame.

create a "Scene" class and bind events to it

Today the events are binded to core.GenericWindow, that is, to the Window/terminal it self.
This is not much practical if we have many game states.
So the idea is that you can bind the events to different scenes, so when you switch the scene the binds are "updated".

"Automatic binds" like "ESC" must be made ate scene level

The new schema (in json, just to have an idea) could be:

window = {
    "scenes": [
        {
                "name": "scene_name",
                "binds": [..., ...]
        }
    ],
    "actual_scene": "scene_name"
}

clock functions

create functions in scene class:

  • schedule_interval
  • schedule_once

Effects

  • when active the screen flashes in a specific frequency
  • border screen - to put border in screen
  • reflexion effect (vertical/horizontal)

center screen in terminal

off in screen when the screen have a size less than terminal

create a example "pixel flappy" of 32x32 pixels centering in the screen

show sprites in true terminal colors

now will be used only two ascii chars: filled, half-filled. We can set the two colors different by setting diferent bg and fg colors to characters (\033[38;2;r;g;bm -> fg, \033[48;2;r;g;b - >bg)
https://en.wikipedia.org/wiki/ANSI_escape_code

load from image options

actually the brighter pixels are converted in filled characters, but if you draw things in black in a white background will want that black pixels be converted to filled characters. Just a flag would fix this

create a "calcium apps browser"

search applications made in calcium in github and download them and play them without manually clone or something like that

maybe search projects that are using a "calcium-app" tag? (is possible search projects by tag in github api?)

Error in setup.py

Hi,
I was interessed using your library but when I try to pip install it, I got this error :

Complete output from command python setup.py egg_info:
    error in calcium setup command: 'install_requires' must be a string or list of strings containing valid project/version requirement specifiers; Invalid requirement, parse error at "'=5.0.0'"

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.