cptx032 / calcium Goto Github PK
View Code? Open in Web Editor NEWA ascii/text game library
License: MIT License
A ascii/text game library
License: MIT License
to fix imports aberrations (of examples folder mainly)
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 !!
sprite = Sprite(x, y, animations={'running': []})
sprite.dark(level=1)
sprite.light(level=1)
off in screen when the screen have a size less than terminal
create a example "pixel flappy" of 32x32 pixels centering in the screen
with fill or not
This method doesn't checks if a sprite is completely inside another
create functions in scene class:
sprite = Sprite()
clone = sprite.clone()
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"
}
random inside the area
start using pydoc3
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.
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
Calculates the performance of calculum in creating a scene without plotting to terminal screen. The crazy idea is stream the screen in a websocket
import spritereader as sr
pixels = sr.load('sprite.pxls')
# pixels is a list
This can be made with "core effects". An effect to be applied to sprites called RotateEffect (the same to scale)
this is more fast than PIL.rotate? (benchmark this)
Something like
sprites = CalciumSprite(animation={
'idle': [[...], [...], [...]],
'running': CalciumSprite.get_animation_from_gif('running.gif')
})
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?)
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
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'"
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.