first commit

This commit is contained in:
Stefano Rossi 2025-07-10 03:34:34 +02:00
commit da53dcc74e
Signed by: chadmin
GPG key ID: 9EFA2130646BC893
110 changed files with 3699 additions and 0 deletions

8
.idea/.gitignore generated vendored Normal file
View file

@ -0,0 +1,8 @@
# Default ignored files
/shelf/
/workspace.xml
# Editor-based HTTP Client requests
/httpRequests/
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml

6
.idea/misc.xml generated Normal file
View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectRootManager" version="2" languageLevel="JDK_19" default="true" project-jdk-name="openjdk-19" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>

8
.idea/modules.xml generated Normal file
View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/SuppaMario.iml" filepath="$PROJECT_DIR$/SuppaMario.iml" />
</modules>
</component>
</project>

6
.idea/vcs.xml generated Normal file
View file

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>

26
LICENSE Normal file
View file

@ -0,0 +1,26 @@
# DON'T BE A DICK PUBLIC LICENSE
> Version 1.1, December 2016
> Copyright (C) 2024 Rossi Stefano
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document.
> DON'T BE A DICK PUBLIC LICENSE
> TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
1. Do whatever you like with the original work, just don't be a dick.
Being a dick includes - but is not limited to - the following instances:
1a. Outright copyright infringement - Don't just copy this and change the name.
1b. Selling the unmodified original with no work done what-so-ever, that's REALLY being a dick.
1c. Modifying the original work to contain hidden harmful content. That would make you a PROPER dick.
2. If you become rich through modifications, related works/services, or supporting the original work,
share the love. Only a dick would make loads off this work and not buy the original work's
creator(s) a pint.
3. Code is provided with no warranty. Using somebody else's code and bitching when it goes wrong makes
you a DONKEY dick. Fix the problem yourself. A non-dick would submit the fix back.

62
README.md Normal file
View file

@ -0,0 +1,62 @@
# SuppaMario
This is a concept for a clone of super Mario.
With the possibility to create your own maps.
![ezgif-2-db46d0ad92.gif](images/ezgif-2-db46d0ad92.gif)
## Description
![Scheme](images/suppamario.png)
You can create you own map modifying the map file:
`\suppaMariov6\build\classes\mappe\map1.txt`
![Scheme](images/suppamario2.png)
- Idle cycle background. Speeding according to mario movement speed
- Mario can move left and right, jump and crouch
- Collide with solid blocks
- Dies when hit by lateral collision with koopa, by deadly blocks (water) or
falling out of the map
- Has dead, jump and crouch animation
- Background and death animation music
- The map is loaded from an external file, you can build with:
- 2 solid block (bricks)
- 1 pass-through block (clouds)
- 1 deadly block (water)
- Implemented 2 walking koopa enemies, they die and disappear on upper
collision with mario
## Requirements
- Java (6 to) 8 (max, recommended)
- NetBeans (highly recommended)
Java Applets have been dropped with Java 9. So you need an older versione to run this project.
Java 8 is the preferred version. Until Java 6 should be ok.
Problems running the project are expected, applets are deprecated and not supported by modern browsers.**
This is a NetBeans Project. Using NetBeans isn't mandatory but recommended for the built-in applet runner.
You can run the GrigliaApplet.java class with netbeans.
[NetBeans Instructions](https://netbeans.apache.org/tutorial/main/kb/docs/java/javase-jdk8/)
Alternatively, you can use IntellijJ IDEA with the [Applet runner plugin](https://plugins.jetbrains.com/plugin/16682-applet-runner) (not tested).
## Installation and run
Clone the repo:
```bash
https://gitlab.com/stefanorossiti/SuppaMario.git
```
Run `SuppaMarioApplet.java` with your preferred IDE (NetBeans is recommended)
using java 8.
## License
All my work is released under [DBAD](https://www.dbad-license.org/) license.

11
SuppaMario.iml Normal file
View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$">
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
</content>
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>

3
applet.policy Normal file
View file

@ -0,0 +1,3 @@
grant {
permission java.security.AllPermission;
};

73
build.xml Normal file
View file

@ -0,0 +1,73 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="suppaMario" default="default" basedir=".">
<description>Builds, tests, and runs the project suppaMario.</description>
<import file="nbproject/build-impl.xml"/>
<!--
There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:
-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-jar: called before JAR building
-post-jar: called after JAR building
-post-clean: called after cleaning build products
(Targets beginning with '-' are not intended to be called on their own.)
Example of inserting an obfuscator after compilation could look like this:
<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>
For list of available properties check the imported
nbproject/build-impl.xml file.
Another way to customize the build is by overriding existing main targets.
The targets of interest are:
-init-macrodef-javac: defines macro for javac compilation
-init-macrodef-junit: defines macro for junit execution
-init-macrodef-debug: defines macro for class debugging
-init-macrodef-java: defines macro for class execution
-do-jar: JAR building
run: execution of project
-javadoc-build: Javadoc generation
test-report: JUnit report generation
An example of overriding the target for project execution could look like this:
<target name="run" depends="suppaMario-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>
Notice that the overridden target depends on the jar target and not only on
the compile target as the regular run target does. Again, for a list of available
properties which you can use, check the target you are overriding in the
nbproject/build-impl.xml file.
-->
</project>

View file

@ -0,0 +1,28 @@
<HTML>
<HEAD>
<TITLE>Applet HTML Page</TITLE>
</HEAD>
<BODY>
<!--
*** GENERATED applet HTML launcher - DO NOT EDIT IN 'BUILD' FOLDER ***
If you need to modify this HTML launcher file (e.g., to add applet parameters),
copy it to where your applet class is found in the SRC folder. If you do this,
the IDE will use it when you run or debug the applet.
Tip: To exclude an HTML launcher from the JAR file, use exclusion filters in
the Packaging page in the Project Properties dialog.
For more information see the online help.
-->
<H3><HR WIDTH="100%">Applet HTML Page<HR WIDTH="100%"></H3>
<P>
<APPLET codebase="classes" code="suppamario/SuppaMarioApplet.class" width=350 height=200></APPLET>
</P>
<HR WIDTH="100%"><FONT SIZE=-1><I>Generated by NetBeans IDE</I></FONT>
</BODY>
</HTML>

View file

View file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 176 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 199 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 561 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 963 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1,004 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 982 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 213 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 B

View file

@ -0,0 +1,39 @@
<!-- saved from url=(0066)http://www.videogamesprites.net/SuperMarioBros1/Scenery/index.html -->
<html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Super Mario Bros. Scenery Sprites</title>
<meta name="description" content="Super Mario Bros. 1 scenery sprites">
</head>
<body bgcolor="#000000" text="#F7D6B5" link="#EC8347" vlink="#E75A10">
<font size="2" face="Courier New"><b>
<center><h2>Super Mario Bros. Scenery Sprites</h2></center>
<hr width="100%" size="1" noshade="" color="#E75A10">
<br>
<a href="http://www.videogamesprites.net/">VideoGameSprites.net</a> &gt; <a href="http://www.videogamesprites.net/SuperMarioBros1/">Super Mario Bros.</a>
<br>
<br><font color="#F7D6B5">
<hr width="100%" size="1" noshade="" color="#E75A10">
<form name="changeColor">
<p><font size="3" face="Courier New"><b>Background Color</b><br><br>
<input type="button" name="colr" value="BLACK" onclick="document.bgColor=&#39;#000000&#39;">
<input type="button" name="colr" value="WHITE" onclick="document.bgColor=&#39;#FFFFFF&#39;">
</font> </p></form>
<hr width="100%" size="1" noshade="" color="#E75A10">
<br>
<img src="./bridge_files/Hill - Small.gif"> <img src="./bridge_files/Hill - Large.gif"> hills<br><br>
<img src="./bridge_files/Tree - Small.gif"> <img src="./bridge_files/Tree - Large.gif"> trees<br><br>
<img src="./bridge_files/Bush - Single.gif"> <img src="./bridge_files/Bush - Double.gif"> <img src="./bridge_files/Bush - Triple.gif"> bushes<br><br>
<img src="./bridge_files/Cloud - Single.gif"> <img src="./bridge_files/Cloud - Double.gif"> <img src="./bridge_files/Cloud - Triple.gif"> clouds<br><br>
<img src="./bridge_files/Waves.gif"> waves<br>
<img src="./bridge_files/Firework1.gif"> <img src="./bridge_files/Firework2.gif"> <img src="./bridge_files/Firework3.gif"> fireworks<br><br>
<hr width="100%" size="1" noshade="" color="#E75A10">
<br>
<img src="./bridge_files/Block.gif"> block<br><br>
<img src="./bridge_files/Ground.gif"> ground<br><br>
<img src="./bridge_files/Bridge.gif"> bridge<br><br>
<img src="./bridge_files/Coin Heaven Cloud.gif"> Coin Heaven cloud<br><br>
<img src="./bridge_files/Coral.gif"> coral<br><br>
<img src="./bridge_files/Giant Mushroom.gif"> giant mushroom<br>
<hr width="100%" size="1" noshade="" color="#E75A10">
</font></b></font></body></html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 158 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 231 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 298 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 476 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 348 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 597 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 835 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 525 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 274 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 359 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 265 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 371 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 298 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 220 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 170 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 224 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 835 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 200 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 525 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 274 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 359 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 359 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 128 B

View file

@ -0,0 +1,28 @@
! Author: BBC Games
!
!
! SuppaMario lvl1
! tile map 200x15
! Legenda:
! = nothing
! b = ground block
! w = wawes
! c = coin heaven cloud
! g = ground
!-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg
gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg
ggggg gggg
ggg gggggggggggc ggggggggggggggggggggggggggggggggggggggggggggg gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg
ggg ggggggg c gggg c c
ggg bbbbbb c c ccccgg
gggggggggg bbbbbb gggggggggggggg ggggggggggggggggggggggggggggggg gggggggggggggggggggggggggggggggggggg
ggg ggggg c c ggg cc c
ggg bbbbb ggg ggggggg ggggggggggggggggggggggggggggggggggggggg gg gggg ggggggggggggggggggg
ggg bbb ggggg
gggc bbbbbbbbbbbbbbbbbbbb b ggggggggggggggggggggg bbbbbb bbbbbbbbbb c c cc c c c c c
ggg ggg gggggggggggggggggggggg ggg bbbbbbb bbbbbbbbbbbbbb
ggg g ggggggggggggggggggggggggggggggggggggggggwwwggggggggbbbbbbbbbbbbbbbbbbgggggggggggggggggggggggggggggggggggggggggggggggggggggggwwwwwwwwwwwwww
gggggggggg gggggwwwwwgg ggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggwwwwwwwggggggggggww
gggggggggg gggggggggggg gggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwwww
!-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

BIN
build/classes/midi/1up.mid Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
build/classes/midi/die.wav Normal file

Binary file not shown.

BIN
build/classes/midi/jump.wav Normal file

Binary file not shown.

BIN
build/classes/midi/lvl1.mid Normal file

Binary file not shown.

BIN
build/classes/midi/star.mid Normal file

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 651 KiB

BIN
images/suppamario.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

BIN
images/suppamario2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

3
manifest.mf Normal file
View file

@ -0,0 +1,3 @@
Manifest-Version: 1.0
X-COMMENT: Main-Class will be added automatically by build

1799
nbproject/build-impl.xml Normal file

File diff suppressed because it is too large Load diff

View file

@ -0,0 +1,8 @@
build.xml.data.CRC32=c7b0c067
build.xml.script.CRC32=245a017c
build.xml.stylesheet.CRC32=f85dc8f2@1.111.0.48
# This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml.
# Do not edit this file. You may delete it but then the IDE will never regenerate such files for you.
nbproject/build-impl.xml.data.CRC32=c7b0c067
nbproject/build-impl.xml.script.CRC32=81cc81d6
nbproject/build-impl.xml.stylesheet.CRC32=12e0a6c2@1.111.0.48

View file

View file

@ -0,0 +1,8 @@
compile.on.save=true
do.depend=false
do.jar=true
do.jlink=false
javac.debug=true
javadoc.preview=true
jlink.strip=false
user.properties.file=C:\\Users\\Administrator\\AppData\\Roaming\\NetBeans\\22\\build.properties

Some files were not shown because too many files have changed in this diff Show more