Code Monkey home page Code Monkey logo

zlatnaspirala / cross-k Goto Github PK

View Code? Open in Web Editor NEW
7.0 4.0 1.0 117.2 MB

Visual App-Game Engine Tool CrossK based on kivy 2.0 Scene editor , Assets editor , Package . Don't panic don't react.

License: GNU General Public License v3.0

Python 99.19% Batchfile 0.38% Shell 0.44%
engine wip python3 debugger kivy-framework gui tools ui-components open-source-project open-source-community cross-k visual-editor scene-management kivy android macos multiplatform visual-code

cross-k's Introduction

Cross-K project

Based on kivy 2.0 framework (Python3)

Based on kivy 2.0 python framework. GPL-3.0 License with available source code.
CrossK is a small but conspiratorial app engine based on kivy 2 / opengles 2.0 in background.
Created to make future fast and quick.

Objective:

- Create multiplatform target builds with real time net driver.
Basic : 2D UI visual app creator. Future features player, networking, 3d/2d canvas based engine.
Because html5 is excluded for now from this story maybe some real time networking makes fit for 
all platforms. In basic we can create server-client native application for any platform (desktops, android)
- Create server part with also visual GUI approach.
Strong implementation and relationship between creating server database entity with client
automatic adaptation in preview mode.

This is the beginning of a beautiful friendship

Video 10 min app demostration

https://www.youtube.com/watch?v=Ci8GNd3FDHw&ab_channel=javascriptfanatic

Screenshot Basic usage

  • Left is Scene list and assets list scrollbars

  • Label details box

  • Images example

Installation

    1. After cloning this project only need to install python (current used 3.9.5 python version), pip on you computer. Allow adding env variable during installation. Install Docker on your system, i use version 20.10.8, build 3967b7d After installation check in terminal docker -v.
    1. Run this pre-installation.bat
    1. You need first time to create kivy_venv:

Windows command line [Only first time]

  python -m pip install --upgrade --force-reinstall pip
  python -m pip install --upgrade pip setuptools virtualenv
  python -m virtualenv kivy_venv
    1. Activate env [you need to activate env every time before start to work on it]

    Windows command

    kivy_venv\Scripts\activate

    Bash command

    source kivy_venv/Scripts/activate
    
    kivy_venv/Scripts/activate
  • Now you can install last version of kivy 2.1.0 framework.

You can try this windows installation script install-win.bat You can try this macox installation script install-macos.sh You can try this linux installation script install-ubuntu.sh

Run Engine:

python crossk.editor

Package System

[WINDOWS]

Pack Application for windows10 with GUI command.

Manual you can package whole engine not just application project.

kivy_venv/Scripts/python.exe -m PyInstaller --onefile --name CROSSK_PROJECT1 --distpath packages/projectTest --workpath .cache/ main.py

[ANDROID]

STRUCTURE

(non project files) => Files from marked folder are not in active dependency of this software. (Auto generated) => Usually dont edit dont use it (VisualCode/debugger) => You can find help script for python debugger from MS Visual Code Editor.

├── .cache/                      (Auto generated)
├── .vscode/                     (VisualCode/debugger)
├── inactive/                    (not project files)
├── projects/                    (Auto generated - Project files)
├── main.py                      (App Instance - PackageProduction)
├── crossk.editor                (Engine Editor Instance - This is python file)
├── engine/
|   ├── assets/
|   ├── common/
|   |   └── assetsEditor.py
|   |   └── assetsEditorOperation.py
|   |   └── commons.py
|   |   └── enginePackage.py           (Popup GUI for windows, linux, macos packing)
|   |   └── enginePackageAndroid.py    (Popup GUI for android packing)
|   |   └── modification.py
|   |   └── operationBox.py
|   |   └── operationButton.py
|   |   └── operationLabel.py
|   |   └── operationsPicture.py
|   ├── editor/
|   |   └── layout.py
|   |   └── networking.py            For now kivy support only curl (http request)
|   |   └── resources.py
|   |   └── scripter.py              Future visual node sub editor,text script for now
|   |   └── resourcesGUIContainer.py
|   |   └── sceneGUIContainer.py     Visual Editor Asset GUI box
|   ├── config.py                    (Engine editor config)
|   ├── editor_main.py               Main Engine File
|   ├── app_main.py                  Main Final App File [Used for package proccess]
|   ├── kivy_venv/                   (Auto generated - env libraries)
|   ├── shader-editor/               (non project files)

[CROSSK-STATUS-LIST]

ACTUAL VERSION [no release] BETA

BETA VERSION [0.5.0] STATUS

[EDITOR]

 - Add option solution for dimension ref system
   (use pixels, percents or combine)

 - Add option solution for frameLayout and 
   position hint also.
   (use pixels, percents or combine)

 - Manage scene element
     - Details box with save options
     - SceneContainer to select and preview render elements
       in left side of engine window -scroll added
     - AssetsContainer to select and preview assets items
       in left side of engine window -scroll added

 - Remove elements
 - Add Element type:
       - Button element
       - Label element
       - CheckBox element
       - Picture Clickable
       - Layouts (dinamic with props) element
 - Layouts - Handle sub components
 - Layouts ( Details commands:
                      - Add button
                      - Add Label
                      - Add layout
                      - add checkbox)
 - CrossK Scripter, Basic script bind attacher for live (app) buttons.

[ASSETS EDITOR]

 - Operation ( Type of Asset:
                          - imageResource,
                          - fontResource
                          - JSONResource - read only root keys
 - OperationAdd

[PACKAGE-SYSTEM]

 - Package for windows                             [SUPPORTED]
 - Package for Linux                               [SUPPORTED]
 - Package for android                             [SUPPORTED][DOCKER]
 - Package for macOS                               [NOTESTED]
 - Package for iOS                                 [NOTESTED]

[PACKAGE-ANDROID]

 - Preparing automatisation for window docker apk build  [WIP]
 - Test kivy solution                               [NOTESTED]
 - Test canvas solution (if ti posible)             [NOTESTED]
 - Test opengles2/3 in native canvas manir          [NOTESTED]

Android

First implementation for windows building android apk... wip [0.5.0] You need to have Docker app on your mashine also to pull zlatnaspirala/crossk-pack:beta If yor already run pre-installation.bat you probably no need for this line.

 docker pull zlatnaspirala/crossk-pack:beta

cross-k's People

Contributors

aster-nikolalukic avatar zlatnaspirala avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cross-k's Issues

Installation error in Windows 10

Hello. Could you place on the Internet a ready-made Docker image with all the stuffing installed, if transferring from computer to computer is possible in principle? Because I couldn't install it myself.
Or I ask you to advise how you can solve the problem.

I recorded the video showing problems when running a bat file.
https://youtu.be/8MqFPGLFX1Y

In the log file below, at first I did not enter the command in the right place:
kivy_venv\Scripts\activate
But then I fixed it.

`C:\Users\admin>docker -v
Docker version 20.10.14, build a224086

C:\Users\admin>python -m pip install --upgrade --force-reinstall pip
Collecting pip
Using cached pip-22.0.4-py3-none-any.whl (2.1 MB)
Installing collected packages: pip
Attempting uninstall: pip
Found existing installation: pip 22.0.4
Uninstalling pip-22.0.4:
Successfully uninstalled pip-22.0.4
Successfully installed pip-22.0.4

C:\Users\admin>python -m pip install --upgrade pip setuptools virtualenv
Requirement already satisfied: pip in c:\python39\lib\site-packages (22.0.4)
Requirement already satisfied: setuptools in c:\python39\lib\site-packages (56.0.0)
Collecting setuptools
Downloading setuptools-62.1.0-py3-none-any.whl (1.1 MB)
---------------------------------------- 1.1/1.1 MB 2.2 MB/s eta 0:00:00
Requirement already satisfied: virtualenv in c:\python39\lib\site-packages (20.13.0)
Collecting virtualenv
Downloading virtualenv-20.14.1-py2.py3-none-any.whl (8.8 MB)
---------------------------------------- 8.8/8.8 MB 6.9 MB/s eta 0:00:00
Requirement already satisfied: platformdirs<3,>=2 in c:\python39\lib\site-packages (from virtualenv) (2.4.1)
Requirement already satisfied: filelock<4,>=3.2 in c:\python39\lib\site-packages (from virtualenv) (3.4.2)
Requirement already satisfied: distlib<1,>=0.3.1 in c:\python39\lib\site-packages (from virtualenv) (0.3.4)
Requirement already satisfied: six<2,>=1.9.0 in c:\python39\lib\site-packages (from virtualenv) (1.16.0)
Installing collected packages: virtualenv, setuptools
Attempting uninstall: virtualenv
Found existing installation: virtualenv 20.13.0
Uninstalling virtualenv-20.13.0:
Successfully uninstalled virtualenv-20.13.0
Attempting uninstall: setuptools
Found existing installation: setuptools 56.0.0
Uninstalling setuptools-56.0.0:
Successfully uninstalled setuptools-56.0.0
Successfully installed setuptools-62.1.0 virtualenv-20.14.1

C:\Users\admin>python -m virtualenv kivy_venv
created virtual environment CPython3.9.5.final.0-64 in 9487ms
creator CPython3Windows(dest=C:\Users\admin\kivy_venv, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=C:\Users\admin\AppData\Local\pypa\virtualenv)
added seed packages: pip==21.3.1, setuptools==60.5.0, wheel==0.37.1
activators BashActivator,BatchActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator

C:\Users\admin>python crossk.editor
python: can't open file 'C:\Users\admin\crossk.editor': [Errno 2] No such file or directory

C:\Users\admin>kivy_venv\Scripts\activate

(kivy_venv) C:\Users\admin>python crossk.editor
C:\python39\python.exe: can't open file 'C:\Users\admin\crossk.editor': [Errno 2] No such file or directory

(kivy_venv) C:\Users\admin>`

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.