Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
*.hl
out
setup.ini
docs/theme
docs/
pages/
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "liblemons"]
path = liblemons
url = https://github.com/LemonsFramework/liblemons
26 changes: 17 additions & 9 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
MIT License

Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
Copyright (c) 2024 Lemons Framework

Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

0. You just DO WHAT THE FUCK YOU WANT TO.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
43 changes: 16 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,35 +1,24 @@
> [!CAUTION]
> this repository is VERY old, and a rewrite is going to happen soon.
>
> currently, lemons is using the builtin hashlink extensions for openal, opengl and sdl etc, but they lack a lot of functionality that i want.
>
> oh also the entire redering pipeline sucks and its broken
<img src="art/LogoWithText.png"/>

# <img src="art/tmpLogoWithText.png"/> (old logo)
lemons is a game framework that's built on haxe that provides.. well what a game framework should, a framework to build your games on

idk another haxe game framework smh my head
# installing

this only supports hashlink because fuck you !!
there isnt a haxelib version avalible yet so you'll have to follow the installing from github instructions

code example:
## installing from github
go to your bash shell of choice or command prompt and run

```haxe
package;

import sys.io.File;
```
cd <whereever you want to install lemons in>
git clone --recurse-submodules https://github.com/LemonsFramework/lemons.git
cd lemons
haxelib dev .
```
since `haxelib git` doesent recursivley clone submodules, you have to use this janky fix

import lemons.App;
import lemons.sound.Sound;
you will need to follow the building instructions at the bottom if you're installing it from github

class Main extends App {
override public function init():Void {
var sound:Sound = Sound.createFromBytes(File.getBytes('${Sys.getCwd()}\\res\\testsong.wav'));
sound.volume = 0.75;
sound.loop = true;
sound.play();
}
# building

static public function main()
var app = new Main();
}
```
again, go to your bash shell of choice or command prompt and run `haxelib run lemons rebuild`. oh, and you'll have to have cmake installed.
Binary file modified art/LogoWithText.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
149 changes: 136 additions & 13 deletions art/LogoWithText.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed art/tmpLogo.png
Binary file not shown.
Binary file removed art/tmpLogoWithText.png
Binary file not shown.
5 changes: 4 additions & 1 deletion buildDox.bat
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
haxelib run dox -i docs --title "lemons api reference" -D version "balls" -D website "https://github.com/ThePlank/lemons" -D logo "https://cdn.discordapp.com/attachments/1083070583245373564/1162054095910207528/Untitled12_20231008154638.png" -D themeColor 0xFFFF63 -D textColor 0xFFFF63 -D description "dumb game framework" -D source-path "https://github.com/ThePlank/lemons/tree/main/src"
rem theme will be avalible later when i finish it
haxelib run dox -i docs -o docs -theme docs/theme
cd docs/out
haxelib run snake-server
2 changes: 0 additions & 2 deletions extraParams.hxml
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
-lib hlsdl
-lib hlopenal
-lib format
4 changes: 2 additions & 2 deletions genDocs.hxml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ extraParams.hxml
-p src
-hl dummy.hl
-D gen_docs
-dce no
lemons

-cmd buildDox.bat
# -cmd buildDox.bat
14 changes: 6 additions & 8 deletions haxelib.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@
{
"name": "lemons",
"url" : "https://github.com/ThePlank/lemons/",
"url" : "https://github.com/LemonsFramework/lemons",
"license": "WTFPL",
"tags": ["hl"],
"description": "dumb game framework",
"description": "2d game framework i think",
"version": "1.0.0",
"classPath": "src/",
"releasenote": "initial release, idk what to say uuggghhh *shakes butt*",
"releasenote": "initial release",
"contributors": ["ThePlank"],
"dependencies": {
"format": "",
"hlsdl": "",
"hlopenal": "",
"stb_ogg_sound": ""
}
"format": ""
},
"main": "tools.Main"
}
Binary file added resources/unknown.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
140 changes: 0 additions & 140 deletions src/hl/Format.hx

This file was deleted.

Loading