You've already forked Pandona-Engine
初始化提交
This commit is contained in:
29
template-example/sence/sence2/index.pe
Normal file
29
template-example/sence/sence2/index.pe
Normal file
@@ -0,0 +1,29 @@
|
||||
<sence>
|
||||
<div class="test-element">Hello PE Engine!</div>
|
||||
</sence>
|
||||
|
||||
<script>
|
||||
window.onLoad(()=>{
|
||||
console.log("Simple test scene loaded")
|
||||
})
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.test-element {
|
||||
width: 200px;
|
||||
height: 100px;
|
||||
background-color: #4CAF50;
|
||||
color: white;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
position: absolute;
|
||||
top: 100px;
|
||||
left: 100px;
|
||||
border: 2px solid #45a049;
|
||||
border-radius: 4px;
|
||||
font-family: Arial, sans-serif;
|
||||
font-size: 18px;
|
||||
font-weight: bold;
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user