Skip to content

Commit

Permalink
Created a new original Super Mario Bros UI demo
Browse files Browse the repository at this point in the history
  • Loading branch information
saifkhichi96 committed Jan 17, 2021
1 parent d7ac621 commit 1369faa
Show file tree
Hide file tree
Showing 72 changed files with 137 additions and 51 deletions.
8 changes: 4 additions & 4 deletions demo/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="co.aspirasoft.android.demo">
package="dev.aspirasoft.apis.tiled.demo">

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme" tools:ignore="GoogleAppIndexingWarning">
android:theme="@style/AppTheme"
tools:ignore="GoogleAppIndexingWarning">

<activity android:name=".TileMapActivity">
<activity android:name=".MarioDemo">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>

</application>

</manifest>
13 changes: 13 additions & 0 deletions demo/src/main/assets/mario.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|a|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uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|a|a|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|uu|
34 changes: 0 additions & 34 deletions demo/src/main/java/co/aspirasoft/android/demo/TileMapActivity.kt

This file was deleted.

110 changes: 110 additions & 0 deletions demo/src/main/java/dev/aspirasoft/apis/tiled/demo/MarioDemo.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
package dev.aspirasoft.apis.tiled.demo

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import dev.aspirasoft.apis.tiled.TiledView
import java.io.BufferedReader
import java.io.InputStreamReader

class MarioDemo : AppCompatActivity() {

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_demo)

var reader: BufferedReader? = null
try {
reader = BufferedReader(InputStreamReader(assets.open("mario.txt"), "UTF-8"));

// do reading, usually loop until end of file reading
var map = ""
var line = reader.readLine()
while (line != null) {
map += line + "\n"
line = reader.readLine()
}

val mapData = arrayOf(map)
arrayOf(R.id.tiledView).withIndex().forEach { (index, id) ->
val tiledView = findViewById<TiledView>(id)
createLookupMap().forEach { (id, image) -> tiledView.addImage(id, image) }
tiledView.post {
tiledView.setData(mapData[index])
}
tiledView.setOnTileClicked { c: Int, r: Int ->
val char = tiledView[c, r]
val fruits = listOf("e", "n", "o")
if (char in fruits) {
tiledView[c, r] = ""
}
}
}
} catch (ex: Exception) {
//log the exception
} finally {
if (reader != null) {
try {
reader.close();
} catch (ex: Exception) {
//log the exception
}
}
}
}

private fun createLookupMap(): HashMap<String, Int> {
val map = HashMap<String, Int>()
map["a"] = R.drawable.t_mario_a
map["b"] = R.drawable.t_mario_b
map["c"] = R.drawable.t_mario_c
map["d"] = R.drawable.t_mario_d
map["e"] = R.drawable.t_mario_e
map["f"] = R.drawable.t_mario_f
map["g"] = R.drawable.t_mario_g
map["h"] = R.drawable.t_mario_h
map["i"] = R.drawable.t_mario_i
map["j"] = R.drawable.t_mario_j
map["k"] = R.drawable.t_mario_k
map["l"] = R.drawable.t_mario_l
map["m"] = R.drawable.t_mario_m
map["n"] = R.drawable.t_mario_n
map["o"] = R.drawable.t_mario_o
map["p"] = R.drawable.t_mario_p
map["q"] = R.drawable.t_mario_q
map["r"] = R.drawable.t_mario_r
map["s"] = R.drawable.t_mario_s
map["t"] = R.drawable.t_mario_t
map["u"] = R.drawable.t_mario_u
map["v"] = R.drawable.t_mario_v
map["w"] = R.drawable.t_mario_w
map["x"] = R.drawable.t_mario_x
map["y"] = R.drawable.t_mario_y
map["z"] = R.drawable.t_mario_z
map["aa"] = R.drawable.t_mario_aa
map["bb"] = R.drawable.t_mario_bb
map["cc"] = R.drawable.t_mario_cc
map["dd"] = R.drawable.t_mario_dd
map["ee"] = R.drawable.t_mario_ee
map["ff"] = R.drawable.t_mario_ff
map["gg"] = R.drawable.t_mario_gg
map["hh"] = R.drawable.t_mario_hh
map["ii"] = R.drawable.t_mario_ii
map["jj"] = R.drawable.t_mario_jj
map["kk"] = R.drawable.t_mario_kk
map["ll"] = R.drawable.t_mario_ll
map["mm"] = R.drawable.t_mario_mm
map["nn"] = R.drawable.t_mario_nn
map["oo"] = R.drawable.t_mario_oo
map["pp"] = R.drawable.t_mario_pp
map["qq"] = R.drawable.t_mario_qq
map["rr"] = R.drawable.t_mario_rr
map["ss"] = R.drawable.t_mario_ss
map["tt"] = R.drawable.t_mario_tt
map["uu"] = R.drawable.t_mario_uu
map["vv"] = R.drawable.t_mario_vv
map["ww"] = R.drawable.t_mario_ww
map["xx"] = R.drawable.t_mario_xx
return map
}

}
Binary file added demo/src/main/res/drawable/t_mario_a.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/src/main/res/drawable/t_mario_aa.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/src/main/res/drawable/t_mario_b.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/src/main/res/drawable/t_mario_bb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/src/main/res/drawable/t_mario_c.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/src/main/res/drawable/t_mario_cc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/src/main/res/drawable/t_mario_d.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/src/main/res/drawable/t_mario_dd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/src/main/res/drawable/t_mario_e.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/src/main/res/drawable/t_mario_ee.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/src/main/res/drawable/t_mario_f.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/src/main/res/drawable/t_mario_ff.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/src/main/res/drawable/t_mario_g.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/src/main/res/drawable/t_mario_gg.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/src/main/res/drawable/t_mario_h.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/src/main/res/drawable/t_mario_hh.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/src/main/res/drawable/t_mario_i.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/src/main/res/drawable/t_mario_ii.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/src/main/res/drawable/t_mario_j.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/src/main/res/drawable/t_mario_jj.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/src/main/res/drawable/t_mario_k.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/src/main/res/drawable/t_mario_kk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/src/main/res/drawable/t_mario_l.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/src/main/res/drawable/t_mario_ll.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/src/main/res/drawable/t_mario_m.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added demo/src/main/res/drawable/t_mario_mm.png
Binary file added demo/src/main/res/drawable/t_mario_n.png
Binary file added demo/src/main/res/drawable/t_mario_nn.png
Binary file added demo/src/main/res/drawable/t_mario_o.png
Binary file added demo/src/main/res/drawable/t_mario_oo.png
Binary file added demo/src/main/res/drawable/t_mario_p.png
Binary file added demo/src/main/res/drawable/t_mario_pp.png
Binary file added demo/src/main/res/drawable/t_mario_q.png
Binary file added demo/src/main/res/drawable/t_mario_qq.png
Binary file added demo/src/main/res/drawable/t_mario_r.png
Binary file added demo/src/main/res/drawable/t_mario_rr.png
Binary file added demo/src/main/res/drawable/t_mario_s.png
Binary file added demo/src/main/res/drawable/t_mario_ss.png
Binary file added demo/src/main/res/drawable/t_mario_t.png
Binary file added demo/src/main/res/drawable/t_mario_tt.png
Binary file added demo/src/main/res/drawable/t_mario_u.png
Binary file added demo/src/main/res/drawable/t_mario_uu.png
Binary file added demo/src/main/res/drawable/t_mario_v.png
Binary file added demo/src/main/res/drawable/t_mario_vv.png
Binary file added demo/src/main/res/drawable/t_mario_w.png
Binary file added demo/src/main/res/drawable/t_mario_ww.png
Binary file added demo/src/main/res/drawable/t_mario_x.png
Binary file added demo/src/main/res/drawable/t_mario_xx.png
Binary file added demo/src/main/res/drawable/t_mario_y.png
Binary file added demo/src/main/res/drawable/t_mario_z.png
Binary file removed demo/src/main/res/drawable/tl_e_pickup_eggplant.png
Diff not rendered.
Binary file removed demo/src/main/res/drawable/tl_f_fence.png
Diff not rendered.
Binary file removed demo/src/main/res/drawable/tl_g_platform_top.png
Diff not rendered.
Binary file removed demo/src/main/res/drawable/tl_ha_finish_a.png
Diff not rendered.
Binary file removed demo/src/main/res/drawable/tl_hb_finish_b.png
Diff not rendered.
Binary file removed demo/src/main/res/drawable/tl_hc_finish_c.png
Diff not rendered.
Binary file removed demo/src/main/res/drawable/tl_hd_finish_d.png
Diff not rendered.
Binary file removed demo/src/main/res/drawable/tl_i_pipe.png
Diff not rendered.
Binary file removed demo/src/main/res/drawable/tl_l_ladder.png
Diff not rendered.
Binary file removed demo/src/main/res/drawable/tl_m_pipe_bottom.png
Diff not rendered.
Binary file removed demo/src/main/res/drawable/tl_n_pickup_banana.png
Diff not rendered.
Binary file removed demo/src/main/res/drawable/tl_o_pickup_tomato.png
Diff not rendered.
Binary file removed demo/src/main/res/drawable/tl_p_pipe_top.png
Diff not rendered.
Binary file removed demo/src/main/res/drawable/tl_s_sign.png
Diff not rendered.
Binary file removed demo/src/main/res/drawable/tl_t_steel.png
Diff not rendered.
Binary file removed demo/src/main/res/drawable/tl_w_platform.png
Diff not rendered.
9 changes: 9 additions & 0 deletions demo/src/main/res/layout/activity_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<dev.aspirasoft.apis.tiled.TiledView
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:custom="http://schemas.android.com/apk/res-auto"
android:id="@+id/tiledView"
android:layout_width="match_parent"
android:layout_height="match_parent"
custom:orientation="horizontal"
custom:allowManualScroll="true"/>
14 changes: 1 addition & 13 deletions demo/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
@@ -1,15 +1,3 @@
<resources>
<string name="app_name">Demo</string>
<string name="demo_map">
.i.............................................................................................\n
.m........n.o.e.e.o.n..................o....o........n..e..n..o..o..n..e..e....................\n
.....lgg......................o.ggg.e..n....n..................................................\n
.....l.....p..........s.......g.....g..e....e.......n..o..e..n..n..............................\n
.....loo...g..tttt....t.......n.ggg.n..............................e.e.e.e.....................\n
.....gggg...eetee....tt.......g.....g.tttttttt....................ggggggggg....................\n
.............ete....ttt.......e.ggg.o.t......t...................gwn.n.n.nw....................\n
gggggg..ggggggtooo.tttt.......g.....g.t......t.....ggggggggggggggw..o.o.o.w.............AB.....\n
..nn......nn..ttttttttt...............t...................................w.....fffff...CD.....\n
ggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggggg
</string>
<string name="app_name">Tiled API (Demo)</string>
</resources>

0 comments on commit 1369faa

Please sign in to comment.