brentaureli / supermario Goto Github PK
View Code? Open in Web Editor NEWSource Code from my Creating Super Mario Bros YouTube Tutorials
Home Page: https://www.youtube.com/playlist?list=PLZm85UZQLd2SXQzsF-a0-pPF6IWDDdrXt
Source Code from my Creating Super Mario Bros YouTube Tutorials
Home Page: https://www.youtube.com/playlist?list=PLZm85UZQLd2SXQzsF-a0-pPF6IWDDdrXt
Hi there
The code has not been updated to your latest revision in the videos. I am trying to find the part where you clear the enemies from the arrays. My code is failing when i kill an enemy. Turtles show up when i fire a ball. and my JVM crashes.
Please help
According to this video ( http://www.youtube.com/watch?v=rc62hFksKo4 ) the camera only moves forward.
According to this video ( http://www.youtube.com/watch?v=rc62hFksKo4 ) when Mario hits an enemy, a label with the points value is displayed above the enemy position and animated for a short period of time.
None of these files work any more... very frustrating.
When falling in a pit, Mario should die.
Also when falling from the ground at the beginning and at the end of the level, Mario should die.
If you get the first mushroom at the beginning of the level and get the second one at the end of the level without being hit by an enemy, mario grows 2 times.
Hello @BrentAureli,
I think it would be a real benefit to refactor the Mario Class using the State Design Pattern as it is explained here : http://gameprogrammingpatterns.com/state.html
Regards,
M
Hi guys, I keep getting the same problem over again anytime i use the getframe i.e. setRegion(walkAnimation.getKeyFrame(stateTime, true));
Getting this long error..
Error:(33, 8) Gradle: error: no suitable method found for setRegion(Object)
method TextureRegion.setRegion(Texture) is not applicable
(argument mismatch; Object cannot be converted to Texture)
method TextureRegion.setRegion(TextureRegion) is not applicable
(argument mismatch; Object cannot be converted to TextureRegion)
Any ideas?
The breaking of a block should be animated.
Hello @BrentAureli,
I think it would also be a real improvement to the code using the Command Design Pattern as it is explained here : http://gameprogrammingpatterns.com/command.html
Regards,
M
According to this document ( http://themushroomkingdom.net/smb_breakdown.shtml ), the point value for given after killing an enemy is not correct (see Enemy point chart paragraph).
The world timer doesn't stop when it reaches 0.
And Mario doesn't die when world time equals 0.
How does Mario finish the game and go to the next stage?
When Mario is small and hits a block, the block doesn't break but bounces.
The block bouncing animation should be implemented.
In the code snippet below, it says incompatible types for region where i have marked asterisk, for some reason it only recognises it as java.lang.object.
public TextureRegion getFrame(float dt){
currentState = getState();TextureRegion region; switch(currentState){ case JUMPING: region = marioJump.getKeyFrame(stateTimer); *********** break; case RUNNING: region = marioRun.getKeyFrame(stateTimer, true); *********** break; case FALLING: case STANDING: default: region = marioStand; break; }
If you hit the up key several times, Mario jumps repeatedly and consequently flies.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.