Skip to content

Commit

Permalink
add grass
Browse files Browse the repository at this point in the history
  • Loading branch information
nearnshaw committed Jun 18, 2020
1 parent b651790 commit d04adc8
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 5 deletions.
Binary file not shown.
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 POAP-booth/models/FloorBaseGrass_01/thumbnail.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
31 changes: 26 additions & 5 deletions POAP-booth/src/game.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,17 @@ import { GuestBook } from './guestbook'

export let sceneMessageBus = new MessageBus()

// GUESTBOOK

let guestBook = new GuestBook(
{
position: new Vector3(10, 0, 6),
},
'test'
)

// POAP BOOTH

let POAPBooth = new Dispenser(
{
position: new Vector3(8, 0, 8),
Expand All @@ -15,6 +26,8 @@ sceneMessageBus.on('activatePoap', () => {
POAPBooth.activate()
})

// POAP BANNER

let POAPBanner = new Entity()
POAPBanner.addComponent(new Transform()).position = new Vector3(6, 0, 8)
POAPBanner.addComponent(new GLTFShape('models/poap/POAP_Banner.glb'))
Expand All @@ -29,9 +42,17 @@ POAPBanner.addComponent(
)
)

let guestBook = new GuestBook(
{
position: new Vector3(10, 0, 6),
},
'test'
// FLOOR

const entity = new Entity('entity')
engine.addEntity(entity)
entity.addComponentOrReplace(
new GLTFShape('models/FloorBaseGrass_01/FloorBaseGrass_01.glb')
)
entity.addComponentOrReplace(
new Transform({
position: new Vector3(8, 0, 8),
rotation: new Quaternion(0, 0, 0, 1),
scale: new Vector3(1, 1, 1),
})
)

0 comments on commit d04adc8

Please sign in to comment.